This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Can I remove all variants in a vcf file that have 0/0 for PRS calculation?

I am calculating the PRS from a single sample in a vcf file.

I got the sample by filtering it out of a large dataset from 1000genomes, so there are many variants with 0/0 in it.

My question is now: Can I somehow remove all variants with 0/0 and does removing them affect the PRS score I calculate? Even though its only 1 sample in the file, it is very large which makes it difficult to work with and is possibly even responsible for some errors I am encountering during PRS calculation. (That's why I wanted to remove the variants with 0/0)

prs vcf

Dear Patrick, please elaborate on what is your 'PRS calculation'. Only then can we assist. Please share relevant code and/or programs that you are using.

I am using the tool 'pgsc_calc' to calculate PRS scores for individuals using the PGS-Catalog.

In terms of code, I don't really have any code since its just a command line tool where you input a vcf file and the PGS-Catalog you want to use and get the PRS for all samples in that vcf. In my case, I am only gonna have 1 sample in the vcf file so 1 PRS score should be calculated

1 answer

Use bcftools view - e 'COUNT (GT="RR")=0'

( not tested)

Log in to answer this question.