Hi,
I'm trying to clean a bam file, by deleting reads that failed QC (for instance), and writing a new bam file. When I run the following test command:
I get the following error:
From googling the error message, every post I've read says "use the -t reference.tsv option" or "use the -T reference.fasta option". The problem is, this data is for a metagenome, and consequently there is no reference genome. Fortunately, this is samtools version 0.1.18, and the program doesn't abort (unlike samtools 0.1.16) when it prints this error, but I just wanted to let the world know that -t/-T is not required nor desired in some cases.
If someone could update the man page for samtools to reflect that, and maybe eliminate or clarify the actual error message, that would be great.
Thanks!
I'm trying to clean a bam file, by deleting reads that failed QC (for instance), and writing a new bam file. When I run the following test command:
Code:
samtools view -h dirty.bam | samtools view -bS - > clean.bam
Code:
[samopen] no @SQ lines in the header.
If someone could update the man page for samtools to reflect that, and maybe eliminate or clarify the actual error message, that would be great.

Thanks!
Comment