I am trying to separate samples to individual VCF files from a multisample VCF file.
What is the correct way to remove rows that are not present in the sample in the resulting VCF with SelectVariants?
I have found out that by using "--sample-name" I can separate the columns (individual samples), which is fine, but the output still contains all rows present in the original multisample file. With "--remove-unused-alternates" I can set the ALT col values to "." and then do my own grep filtering. Surely there is a better way?
I am suspecting "--drop-genotype-annotation" might work, but I have not been able to figure out what the argument string should look like.
Please sign in to leave a comment.