Thanks a lot ! This is great.
I've toyed a bit with Coovar and it seems really complete. I just need to sort out the multiple output files and see how double mutations affecting a codon are shown.
I'll try your script later today. If I understand correctly, the command line should look like this: -k myVCFfile -tmpdir tmp/ -R myfastafile.fa -B theBAMfiles.bam The script doesn't need the informations stored in the GTF/GFF ? How does it deals with multiple samples on a VCF file ? My VCF file is like that :
chr1_17928_SNP Gcin01g04980 NON_SYNONYMOUS NON_SYNONYMOUS[T](gene:Bcin01g04980|transcript:Bcin01g04980.1|P->S:225) C T C/C C/C C/C C/C C/C C/T 234 233 232 219 233 221 234 233 232 219 233 23 0 0 0 0 0 198
hr1_1792869_SNP Gcin01g04980 NON_SYNONYMOUS NON_SYNONYMOUS[T](gene:Bcin01g04980|transcript:Bcin01g04980.1|P->L:225) C T C/C C/T C/T C/T C/T C/T 240 236 233 220 232 220 240 96 66 80 30 25 0 140 166 140 202 194
But I guess I will have to reorder/clean it. :)
You could have a look at GATK ReadBackedPhasing tool and the --maxGenomicDistanceForMNP argument https://software.broadinstitute.org/gatk/documentation/tooldocs/current/org_broadinstitute_gatk_tools_walkers_phasing_ReadBackedPhasing.php
I'd better state that you'll need the original Bam as well.
Thanks! I don't have access to GATK just yet, but I'll have a look if I can get it. It seems very promising indeed. Cheers,