jodyphelan / TBProfiler

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

Cannot profile the nanopore file #362

Closed thanadon1437 closed 6 months ago

thanadon1437 commented 6 months ago

Hi Jody,

I have 2 different nanopore .fastq.gz files (barcode57 and barcode34) and those 2 came from using cat command.

The barcode57 can profile properly with tb-profiler profile -1 [filename].fastq.gz --platform nanopore --prefix [filename] --csv

Screenshot 2567-05-13 at 11 49 24

but barcode34 using the same command got stuck in the variant calling process at 5%.

Screenshot 2567-05-13 at 11 47 33

I attached all the files here and also error file from barcode34 here.

barcode34.fastq.gz

barcode57.fastq.gz

barcode34.errlog.txt

Thanadon

jodyphelan commented 6 months ago

Hi @thanadon1437

I think it is getting stuck due to the error rate with nanopore. Try to increase the minimum allele frequency for the variant calling to to be more appropriate for the nanopore error rate and run faster (e.g. --af 0.4,0.7).

I'll add make sure the default values are overriden with some sensible defaults in the next release

thanadon1437 commented 6 months ago

Hi @thanadon1437

I think it is getting stuck due to the error rate with nanopore. Try to increase the minimum allele frequency for the variant calling to to be more appropriate for the nanopore error rate and run faster (e.g. --af 0.4,0.7).

I'll add make sure the default values are overriden with some sensible defaults in the next release

I am quite new here.

Can you show me a command how to set --af? and also how to update the version into 6.2.1 directly from github since conda package website is 6.2.0 conda install tb-profiler

jodyphelan commented 6 months ago

Sure, your command should be:

tb-profiler profile -1 barcode34.fastq.gz --platform nanopore --prefix barcode34 --csv --af 0.4,0.7

If you want to update, you can simple just run conda install tb-profiler=6.2.1 when you are in the right environment. There seems to be a bit of a technical problem with bioconda at the moment so v6.2.1 is currently not available. This will hopefully be fixed soon.

thanadon1437 commented 6 months ago

Thank you, now I can profile it and keep trying to change the --af parameter to get the result that I found on IGV but I still cannot get it in the TB-profiler report on the following region.

There are 2 suspected mutations that I found on IGV. Do you have any idea how to change the parameters to get those 2 variants in the TB-profiler report?

Screenshot 2567-05-13 at 16 51 07

The sample is originally from the targeted seq using the Nanopore platform.

P.S. Since I don't want to mess this issue with my personal bioinformatic questions. Would you mind giving me the unofficial contact route like Discord or something where you can reply in your free time?

jodyphelan commented 6 months ago

No worries, send me a message with your email through https://jodyphelan.github.io/ and I'll get in touch via email.

thanadon1437 commented 6 months ago

There are 2 suspected mutations that I found on IGV. Do you have any idea how to change the parameters to get those 2 variants in the TB-profiler report?

Screenshot 2567-05-13 at 16 51 07

The sample is originally from the targeted seq using the Nanopore platform.

Thank you, I already sent a message.

By the way, do you have an idea how to make the positions in the picture to report in the TB-profiler report? because right now I cannot perform annotation those variants.