jodyphelan / TBProfiler

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

error: argument --snp_dist: expected one argument #290

Closed ryobon-dev closed 1 year ago

ryobon-dev commented 1 year ago

Hi,

I tried to run --snp_dist but encountered the error in below.

Could you help me to resolve this issue ?

(tb-profiler) kansensho@MAC:/mnt/d/RIT_fastq_20221213_MTBseq$ tb-profiler version

TBProfiler version 4.4.2 (tb-profiler) kansensho@MAC:/mnt/d/RIT_fastq_20221213_MTBseq$ tb-profiler profile -1 FY27KIH243_S11_R1.fastq.gz -2 FY27KIH243_S11_R2.fastq.gz -t 16 -p FY27KIH243 --txt --spoligotype --call_whole_genome --snp_dist usage: tb-profiler profile [-h] [--read1 READ1] [--read2 READ2] [--bam BAM] [--fasta FASTA] [--vcf VCF] [--platform {illumina,nanopore,pacbio}] [--db DB] [--external_db EXTERNAL_DB] [--prefix PREFIX] [--csv] [--txt] [--pdf] [--docx DOCX] [--output_template OUTPUT_TEMPLATE] [--add_columns ADD_COLUMNS] [--dir DIR] [--mapper {bwa,minimap2,bowtie2,bwa-mem2}] [--caller {bcftools,gatk,freebayes,pilon,lofreq}] [--calling_params CALLING_PARAMS] [--kmer_counter {kmc,dsk}] [--min_depth MIN_DEPTH] [--af AF] [--reporting_af REPORTING_AF] [--coverage_fraction_threshold COVERAGE_FRACTION_THRESHOLD] [--missing_cov_threshold MISSING_COV_THRESHOLD] [--suspect] [--spoligotype] [--call_whole_genome] [--snp_dist SNP_DIST] [--no_trim] [--no_flagstat] [--no_clip] [--no_delly] [--threads THREADS] [--ram RAM] [--verbose {0,1,2}] [--temp TEMP] [--version] tb-profiler profile: error: argument --snp_dist: expected one argument (tb-profiler) kansensho@MAC:/mnt/d/RIT_fastq_20221213_MTBseq$

jodyphelan commented 1 year ago

Hi @ryobon-dev ,

The --snp_dist flag expects a integer argument. For example --snp_dist 20. This will then store all distances <= 20 between pairs of samples.

ryobon-dev commented 1 year ago

Thanks for your quick response.

I still have a problem on this. I have attached the error log.

Thanks,

From: Jody Phelan @.> Sent: Monday, July 3, 2023 7:06 PM To: jodyphelan/TBProfiler @.> Cc: ryobon-dev @.>; Mention @.> Subject: Re: [jodyphelan/TBProfiler] error: argument --snp_dist: expected one argument (Issue #290)

Hi @ryobon-dev https://github.com/ryobon-dev ,

The --snp_dist flag expects a integer argument. For example --snp_dist 20. This will then store all distances <= 20 between pairs of samples.

— Reply to this email directly, view it on GitHub https://github.com/jodyphelan/TBProfiler/issues/290#issuecomment-1617787201 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ASU6F6X6AG7DKQHVXGS6S53XOKKQDANCNFSM6AAAAAAZ3FHMQQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ASU6F6RWDQGG33Y6U757IOLXOKKQDA5CNFSM6AAAAAAZ3FHMQSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTANV4UC.gif Message ID: @. @.> >

tb-profiler error report

ryobon-dev commented 1 year ago

Hi,

With your comment, I run the command " tb-profiler profile -1 FY27KIH243_S11_R1.fastq.gz -2 FY27KIH243_S11_R2.fastq.gz -t 16 -p FY27KIH243 --txt --snp_dist 20".

Everything about snp_dist is fine now ! Thanks for your great support.