Hi,
the script "reads_to_ctg_map.py" fails at sam sort stage and give the following message"
Convert SAM to BAM... Done.
Time elapsed for SAM to BAM conversion: 0:03:52.958605
Sort BAM...Traceback (most recent call last):
File "/home/malabady/Programs/local/scaffolding-tools/BESST/scripts/reads_to_ctg_map.py", line 319, in
tmp_path, args.bwa_path, args.clear)
File "/home/malabady/Programs/local/scaffolding-tools/BESST/scripts/reads_to_ctg_map.py", line 186, in bwa_mem
pysam.sort(bwa_output + ".bam", output_path)
File "/usr/local/lib/python2.7/dist-packages/pysam/utils.py", line 65, in call
"\n".join(stderr)))
pysam.utils.SamtoolsError: 'samtools returned with error 1: stdout=, stderr=[bam_sort] Use -T PREFIX / -o FILE to specify temporary and final output files\n\nUsage: samtools sort [options...] [in.bam]\n\nOptions:\n\n -l INT Set compression level, from 0 (uncompressed) to 9 (best)\n\n -m INT Set maximum memory per thread; suffix K/M/G recognized [768M]\n\n -n Sort by read name\n\n -o FILE Write final output to FILE rather than standard output\n\n -T PREFIX Write temporary files to PREFIX.nnnn.bam\n\n -@, --threads INT\n\n Set number of sorting and compression threads [1]\n\n --input-fmt-option OPT[=VAL]\n\n Specify a single input file format option in the form\n\n of OPTION or OPTION=VALUE\n\n -O, --output-fmt FORMAT[,OPT[=VAL]]...\n\n Specify output format (SAM, BAM, CRAM)\n\n --output-fmt-option OPT[=VAL]\n\n Specify a single output file format option in the form\n\n of OPTION or OPTION=VALUE\n\n --reference FILE\n\n Reference sequence FASTA FILE [null]\n'
Any suggestions what is wrong?
Thanks
Magdy
Hi,
the script "reads_to_ctg_map.py" fails at sam sort stage and give the following message"
Convert SAM to BAM... Done.
Time elapsed for SAM to BAM conversion: 0:03:52.958605
Sort BAM...Traceback (most recent call last):
File "/home/malabady/Programs/local/scaffolding-tools/BESST/scripts/reads_to_ctg_map.py", line 319, in
tmp_path, args.bwa_path, args.clear)
File "/home/malabady/Programs/local/scaffolding-tools/BESST/scripts/reads_to_ctg_map.py", line 186, in bwa_mem
pysam.sort(bwa_output + ".bam", output_path)
File "/usr/local/lib/python2.7/dist-packages/pysam/utils.py", line 65, in call
"\n".join(stderr)))
pysam.utils.SamtoolsError: 'samtools returned with error 1: stdout=, stderr=[bam_sort] Use -T PREFIX / -o FILE to specify temporary and final output files\n\nUsage: samtools sort [options...] [in.bam]\n\nOptions:\n\n -l INT Set compression level, from 0 (uncompressed) to 9 (best)\n\n -m INT Set maximum memory per thread; suffix K/M/G recognized [768M]\n\n -n Sort by read name\n\n -o FILE Write final output to FILE rather than standard output\n\n -T PREFIX Write temporary files to PREFIX.nnnn.bam\n\n -@, --threads INT\n\n Set number of sorting and compression threads [1]\n\n --input-fmt-option OPT[=VAL]\n\n Specify a single input file format option in the form\n\n of OPTION or OPTION=VALUE\n\n -O, --output-fmt FORMAT[,OPT[=VAL]]...\n\n Specify output format (SAM, BAM, CRAM)\n\n --output-fmt-option OPT[=VAL]\n\n Specify a single output file format option in the form\n\n of OPTION or OPTION=VALUE\n\n --reference FILE\n\n Reference sequence FASTA FILE [null]\n'
Any suggestions what is wrong?
Thanks
Magdy