| 1 |
# This is a record of comparisons made in the cyvcf2 paper. These vcf filenames are now different and may not work to run the tests |
| 2 |
chrom=22 |
| 3 |
|
| 4 |
if [[ ! -e ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz ]]; then |
| 5 |
wget ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20130502/ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz |
| 6 |
fi |
| 7 |
if [[ ! -e ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz.tbi ]]; then |
| 8 |
wget ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20130502/ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz.tbi |
| 9 |
fi |
| 10 |
|
| 11 |
echo "#bcftools" |
| 12 |
time bcftools filter -e "N_ALT != 1 || QUAL < 20 || maf[0]>0.05" ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz | grep -cv ^# |
| 13 |
|
| 14 |
echo "#cyvcf2" |
| 15 |
time python filter-cyvcf2.py ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz |
| 16 |
|
| 17 |
echo "#pysam" |
| 18 |
time python filter-pysam.py ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz |
| 19 |
|
| 20 |
echo "#pyvcf" |
| 21 |
time python filter-pyvcf.py ALL.chr${chrom}.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz |