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

simulate_genotype_call_dataset creates alleles as byte strings #1222

Open
hyanwong opened this issue Jun 7, 2024 · 1 comment
Open

simulate_genotype_call_dataset creates alleles as byte strings #1222

hyanwong opened this issue Jun 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hyanwong
Copy link

hyanwong commented Jun 7, 2024

ds = sg.simulate_genotype_call_dataset(n_variant=2, n_sample=4, missing_pct=0, phased=True, seed=1)
for i, alleles in enumerate(ds['variant_allele'].values):
    print(f"Site {i}: {alleles}")

Alleles are e.g. [b'T' b'C'] (dtype |S1). I was expecting them to be dtype <U1. Is this intentional?

@jeromekelleher
Copy link
Collaborator

I think this is a bug, which is probably related to:

@jeromekelleher jeromekelleher added the bug Something isn't working label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants