Filter pileup file for completeness
1
0
Entering edit mode
8.2 years ago
AP ▴ 100

Hi all,

Is there a straightforward way to filter a pileup file for completeness using samtools (or other programs)? I would like to exclude sites based on the proportion of missing data (e.g. SNP present in 80% of the samples). Basically, I want to do the same than what vcftools --maxmissing does but on a pileup file instead of a VCF file.

Any help would be greatly appreciated! Thanks!

samtools pileup filter completeness • 1.4k views
ADD COMMENT
0
Entering edit mode
7.6 years ago
AP ▴ 100

6 months later: simply filter your pileup file using a grep command, removing lines that have a relatively low coverage. For instance: grep -vw '[0-5]' A.mpileup > B.mpileup will remove all lines with coverage below 5.

ADD COMMENT

Login before adding your answer.

Traffic: 2507 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6