Closed nvnieuwk closed 10 months ago
commands
gunzip -c sample-joint-gatk-haplotype-joint.vcf.gz \
| bcftools view -f 'PASS,.' \
| vcfallelicprimitives -t DECOMPOSED --keep-geno \
| sed 's/ID=AD,Number=./ID=AD,Number=R/' \
| vt decompose -s - \
| vt normalize -n -r genome.fa - \
| awk '{ gsub("./-65", "./."); print $0 }' | sed -e 's/Number=A/Number=1/g' \
| bgzip -c > sample-joint-gatk-haplotype-joint-decompose.vcf.gz
decompose and normalisation can also be done by bcftools
if more convenient. I'm not really sure the other commands are still relevant.
Allright thanks! I'll have a look when I start working on this
Added in #150
Description of feature
Add normalization and decomposing to VCF2DB