I am trying to use Spolpred2, which I gather is implemented in tb-profiler, but I run into an error when the input is a fasta file
$ tb-profiler spoligotype --fasta $AMR_PRJS/assemblies/mtuberculosis/production/fasta/DRR290121.fasta
[11:34:05] INFO Using ref file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.fasta db.py:594
INFO Using gff file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.gff db.py:594
INFO Using bed file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.bed db.py:594
INFO Using version file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.version.json db.py:594
INFO Using json_db file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.dr.json db.py:594
INFO Using variables file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.variables.json db.py:594
INFO Using spoligotype_spacers file: db.py:594
/well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.spoligotype_spacers.txt
INFO Using spoligotype_annotations file: db.py:594
/well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.spoligotype_list.csv
INFO Using bedmask file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.mask.bed db.py:594
INFO Using barcode file: /well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/share/tbprofiler//tbdb.barcode.bed db.py:594
Traceback (most recent call last):
File "/well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/bin/tb-profiler", line 562, in <module>
args.func(args)
File "/well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/bin/tb-profiler", line 244, in main_spoligotype
"spoligotype":tbp.spoligotype(args),
File "/well/aanensen/users/afk289/conda/skylake/envs/tbprofiler/lib/python3.10/site-packages/tbprofiler/spoligotyping.py", line 11, in spoligotype
result = fa2spoligotype(args.fasta,args.files_prefix,args.conf,threads=args.threads,max_mem=args.ram,kmer_counter=args.kmer_counter)
TypeError: fa2spoligotype() got an unexpected keyword argument 'kmer_counter'
Cleaning up after failed run
ERROR tb-profiler:58
################################# ERROR #######################################
This run has failed. Please check all arguments and make sure all input files
exist. If no solution is found, please open up an issue at
https://github.com/jodyphelan/TBProfiler/issues/new and paste or attach the
contents of the error log (tbprofiler.errlog.txt)
###############################################################################
When I look at this definition of fa2spoligotype , I can see that it doesn't need the kmer_counter argument. On the other hand the function spoligotype does feed the kmer_counter argument.
I installed tb-profiler with conda as described, and I am attaching the tbprofiler.errlog.txt:
Hello,
I am trying to use Spolpred2, which I gather is implemented in tb-profiler, but I run into an error when the input is a fasta file
When I look at this definition of fa2spoligotype , I can see that it doesn't need the
kmer_counter
argument. On the other hand the function spoligotype does feed thekmer_counter
argument.I installed tb-profiler with conda as described, and I am attaching the tbprofiler.errlog.txt:
Thanks for your help!