Please help me with the samtools. I used the command of "./samtools view -b –u /home/seta/software/files1_1/8_test.sam | samtools sort -@ 7 -m 10G -T temp.bam -o 8_test.bam" for converting the SAM mapping file (generated by bowtie2) to BAM followed by sorting. But after few second, it gives me an error that “sort: invalid option -- 'T'
[bam_header_read] EOF marker is absent. The input is probably truncated.
[bam_header_read] invalid BAM binary header (this is not a BAM file).
Segmentation fault (core dumped)”
This is my first experience on samtools, even reading the corresponding manual did not help me much. I would be highly appreciated for your help to figure out the error and solve it.