So as everyone who uses bwa knows, the sampe function outputs a file in sam format. What I want to do is somehow convert that sam file to a bam file in some sort of pipe? It seems easy to implement, but I keep getting an error from samtools.
cat file.sam | samtools view -Sb
that does not work!
cat file.sam | samtools view -Sb
that does not work!
Comment