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

Clean up number of computations performed #11

Open
ajlee21 opened this issue Feb 13, 2019 · 0 comments
Open

Clean up number of computations performed #11

ajlee21 opened this issue Feb 13, 2019 · 0 comments

Comments

@ajlee21
Copy link
Contributor

ajlee21 commented Feb 13, 2019

  1. Create separate function for Venn
  2. Use pandas functions instead of for loop to create dataframes with high weight genes and metadata

explore_HighWeight_genes.py

weight = weight.assign(hw_mean=weight.mean(axis=0),
hw_std=weight.std(axis=0))

threshold_high_df = weight.hw_mean + (2 * weight.std)
threshold_low_df = weight.hw_mean - (2 * weight.std)

HW_metadata_df = pd.concat([weight.loc[:, ['hw_mean', 'hw_std']],
threshold_high_df,
threshold_low_df])

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