Hello,
I am trying to use your script to phase targeted genes form some samples. I followed your tutorial to generate the different files with GATK then whatshap. However I am not sure to really understand your script using bcftools consensus. (For now I am running the different .sh .py for 1 sample).
The script extract_phase_bcftools.sh is suppose to generate 1 fasta file per gene including 2 sequences (1 per allele; e.g. Sample-gene01.phased.fasta)?
But to run haplonerate.py I need the gtf file form whatshap and 2 fasta files containing sequences for 1 or more genes. So these input fasta are not the same that the output of extract_phase_bcftools.sh?
Thanks for the help.
Nicolas
Hello,
I am trying to use your script to phase targeted genes form some samples. I followed your tutorial to generate the different files with GATK then whatshap. However I am not sure to really understand your script using bcftools consensus. (For now I am running the different .sh .py for 1 sample).
The script extract_phase_bcftools.sh is suppose to generate 1 fasta file per gene including 2 sequences (1 per allele; e.g. Sample-gene01.phased.fasta)?
But to run haplonerate.py I need the gtf file form whatshap and 2 fasta files containing sequences for 1 or more genes. So these input fasta are not the same that the output of extract_phase_bcftools.sh?
Thanks for the help.
Nicolas