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

Add 3 functions to simulate genotypes/allele counts for quick protyping #281

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hardingnj
Copy link
Collaborator

Three simple functions that return dask objects.

Unsure how to generalise to return in-memory objects if required.

@pep8speaks
Copy link

pep8speaks commented Jul 23, 2019

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

return GenotypeDaskArray(g)


def simulate_allele_counts_array(n_variants, n_samples, p=(0.95, 0.05), ploidy=2):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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):



def simulate_genotypes(n_variants, n_samples, p=(0.95, 0.05), ploidy=2):
"""generate genotypes from a random distribution
Copy link
Contributor

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.

@hardingnj hardingnj changed the title WIP Add 3 functions to simulate genotypes/allele counts for quick protyping Add 3 functions to simulate genotypes/allele counts for quick protyping Nov 5, 2019
@hardingnj
Copy link
Collaborator Author

Revisited after a hiatus, apologies for that. Ready for review.

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.

3 participants