File "/home/seq/anaconda3/envs/ntm/bin/ntm-profiler", line 322, in <module>
args.func(args)
File "/home/seq/anaconda3/envs/ntm/bin/ntm-profiler", line 120, in main_profile
results.update(pp.run_profiler(args))
File "/home/seq/anaconda3/envs/ntm/lib/python3.8/site-packages/pathogenprofiler/cli.py", line 37, in run_profiler
results = bam_profiler(
File "/home/seq/anaconda3/envs/ntm/lib/python3.8/site-packages/pathogenprofiler/profiler.py", line 42, in bam_profiler
bam_obj.flagstat()
File "/home/seq/anaconda3/envs/ntm/lib/python3.8/site-packages/pathogenprofiler/bam.py", line 89, in flagstat
run_cmd(f"samtools flagstat -O json {self.bam_file} > {tmpfile}")
File "/home/seq/anaconda3/envs/ntm/lib/python3.8/site-packages/pathogenprofiler/utils.py", line 391, in run_cmd
raise ValueError("Command Failed:\n%s\nstderr:\n%s" % (cmd,stderr.decode()))
Value:
Command Failed:
set -u pipefail; samtools flagstat -O json ./6468baa2-af8e-4517-b20e-a1ef79bfdba2.bam > 81de7f71-41c3-4a48-84bc-422ad23838f4
stderr:
flagstat: invalid option -- 'O'
Usage: samtools flagstat [options] <in.bam>
--input-fmt-option OPT[=VAL]
Specify a single input file format option in the form
of OPTION or OPTION=VALUE
-@, --threads INT
Number of additional threads to use [0]
ntm-profiler error report
Traceback:
Value: