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

Displaying alleles when using sgkit.display_genotypes(ds) #1240

Open
hyanwong opened this issue Jul 25, 2024 · 0 comments
Open

Displaying alleles when using sgkit.display_genotypes(ds) #1240

hyanwong opened this issue Jul 25, 2024 · 0 comments

Comments

@hyanwong
Copy link

When calling sgkit.display_genotypes(ds), I get a list of zeros and ones, but no clue as to what these correspond to. IMO it would be nice to have an extra column at the end of the display that gives the allele list to which the genotypes correspond?

samples    S0   S1   S2
variants                 alleles
0         0|1  1|0  1|1  A,T
1         0|0  0|1  0|1  ...
2         0|1  0|1  0|1
3         0|0  0|0  1|0
4         0|0  0|1  1|0
5         0|0  1|0  1|0
6         0|0  1|1  1|0
7         0|0  1|0  1|1
8         0|0  1|1  1|0
9         0|1  0|0  1|1

If not, some other way to show the actual alleles would be useful, e.g.

samples    S0   S1   S2
variants                
0         A|T  T|A  T|T
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