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

Now denovo_phospho can contain missing mutations #244

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

pablosanchezizquierdo
Copy link
Collaborator

fix #243, now denovo_phoshop might contain missing mutations from mutlist, since we are not processing all of them anymore.

Comment on lines 740 to 745
if mutation in aggregated_df.columns:
restype_resnum_kinase = row['restype_resnum_kinase']
if pd.isna(row['WT']) and not pd.isna(row[mutation]) and row['sas_sc_rel'] > 20:
gain_of_function[mutation].append(restype_resnum_kinase)
elif not pd.isna(row['WT']) and pd.isna(row[mutation]):
loss_of_function[mutation].append(restype_resnum_kinase)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make more sense to pre-filter mutations so that you don't have to cycle over the full list, even though you consistently skip some? e.g.

available_mutations = list(set(mutations).intersection(set(aggregated_df.columns))
...
for mutation in available_mutations:
...

@mtiberti mtiberti merged commit 6876608 into main Apr 17, 2024
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

Successfully merging this pull request may close these issues.

denovo_phoshpo crash if it does not contain data for mut in mutlist
2 participants