-
Notifications
You must be signed in to change notification settings - Fork 54
Add 3 functions to simulate genotypes/allele counts for quick protyping #281
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
base: master
Are you sure you want to change the base?
Conversation
|
Hello @hardingnj! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-11-05 15:34:04 UTC |
allel/simulate/simulate.py
Outdated
| return GenotypeDaskArray(g) | ||
|
|
||
|
|
||
| def simulate_allele_counts_array(n_variants, n_samples, p=(0.95, 0.05), ploidy=2): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def simulate_allele_counts_array(n_variants, n_samples, p=(0.95, 0.05), ploidy=2): | |
| def simulate_genotype_allele_counts(n_variants, n_samples, p=(0.95, 0.05), ploidy=2): |
allel/simulate/simulate.py
Outdated
|
|
||
|
|
||
| def simulate_genotypes(n_variants, n_samples, p=(0.95, 0.05), ploidy=2): | ||
| """generate genotypes from a random distribution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest capitalize and full stop like regular sentence, also for parameters.
|
Revisited after a hiatus, apologies for that. Ready for review. |
Three simple functions that return
daskobjects.Unsure how to generalise to return in-memory objects if required.