Skip to content

Selecting only a subset of individuals for writing the vcf but getting n-1 individuals #3132

Answered by petrelharp
sroy0802 asked this question in Q&A
Discussion options

You must be logged in to vote

I think this last point is the problem - see my answer above. Said another way, you're passing in a list of 100 nodes (i.e., chromosomes) to simplify; and by chance two of those happen to be in the same individual; so what happens is that you get 98 individuals with only one chromosome left and one individual with both chromosomes.

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@molpopgen
Comment options

Comment options

You must be logged in to vote
2 replies
@sroy0802
Comment options

@petrelharp
Comment options

Comment options

You must be logged in to vote
10 replies
@hyanwong
Comment options

@sroy0802
Comment options

@hyanwong
Comment options

@petrelharp
Comment options

Answer selected by hyanwong
@hyanwong
Comment options

@sroy0802
Comment options

@petrelharp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants