Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chemical consistency] double check score calculation #4

Open
oolonek opened this issue Feb 3, 2021 · 0 comments
Open

[chemical consistency] double check score calculation #4

oolonek opened this issue Feb 3, 2021 · 0 comments
Assignees

Comments

@oolonek
Copy link
Member

oolonek commented Feb 3, 2021

# %% Chemical consistency reweighting
dt_isdb_results['Superclass_cf_score'] = dt_isdb_results.apply(
lambda x: 1 if x.Superclass_cf_DNP == x.Superclass_cf_DNP_consensus else 0, axis=1)
dt_isdb_results['Class_cf_score'] = dt_isdb_results.apply(
lambda x: 2 if x.Class_cf_DNP == x.Class_cf_DNP_consensus else 0, axis=1)
dt_isdb_results['Subclass_cf_score'] = dt_isdb_results.apply(
lambda x: 3 if x.Subclass_cf_DNP == x.Subclass_cf_DNP_consensus else 0, axis=1)
dt_isdb_results['Parent_Level_1_cf_score'] = dt_isdb_results.apply(
lambda x: 4 if x.Parent_Level_1_cf_DNP == x.Parent_Level_1_cf_DNP_consensus else 0, axis=1)

@oolonek oolonek self-assigned this Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant