jodyphelan / TBProfiler

Profiling tool for Mycobacterium tuberculosis to detect ressistance and strain type from WGS data
GNU General Public License v3.0
104 stars 43 forks source link

tb-profiler error report #280

Closed psj1722 closed 1 year ago

psj1722 commented 1 year ago

tb-profiler error report

I'm hoping to run tb_profiler as tb-profiler profile -1 1603_R1.fq.gz -2 1603_R2.fq.gz -p prefix --call_whole_genome but I can't seem to get that working. The following is the error:

jodyphelan commented 1 year ago

Hi @psj1722 ,

Looks like there is an issue with the samtools flagstat output format. Do you know which version of samtools you have installed? (samtools --version )?

Could you also run the profiling command with --no_clean added? You should then have a bam file in your directory which you can run samtools flagstat -O json <bam_file>. If you could do that and then post the output here.

Thanks!

psj1722 commented 1 year ago

Hi @jodyphelan ,

Many thanks for your reply. After adjusting the version of tb-profiler from 4.0.0 to 4.0.1, It seems that samtools run successfully but occurs a new problem. Then I tried to upgrade samtools and bcftools to 1.12 by mamba install -c conda-forge -c bioconda, but it will downgrade tb-profiler to 2.8.14. However tb-profiler 2.8.14 did not have the option --call_whole_genome

tb-profiler error report