SAM file quality check without converting into BAM
0
0
Entering edit mode
4.9 years ago
vaish01kv • 0

How to check if the sequences have aligned properly using SAM file before converting it into BAM.? Are there any tools which can read/process SAM file?

TIA.

Alignment SAM • 2.5k views
ADD COMMENT
2
Entering edit mode

Why wouldn't you convert it to bam?

ADD REPLY
0
Entering edit mode

To check if the reads are properly aligned.

ADD REPLY
0
Entering edit mode

As you hopefully do not do that by eye, it does not matter what format the file is. BAM is preferred as mentioned below.

ADD REPLY
0
Entering edit mode

I couldn't generate BAM as the process stops when it reaches 57GB of BAM file saying broken pipe. I wanted to check if the generated SAM file is complete.

ADD REPLY
0
Entering edit mode

Please share the command. BAM is smaller than SAM. THe simplest command is

aligner... | samtools view -o out.bam

ADD REPLY
0
Entering edit mode

Thank you!! I generated SAM using bwa mem. My fastq files are large. 24 GB zipped file each reads, which ended up generating 259GB of sam file. I have used the above mentioned command now. It says 25hrs of run (Approx).

ADD REPLY
0
Entering edit mode

Thank you so much. But the input file is BAM for the link you have mentioned.

ADD REPLY
0
Entering edit mode

Please read the docs:

This tool reports on the validity of a SAM or BAM file relative to the SAM format specification.

Still, BAM is preferred as it is compressed and index-able.

ADD REPLY

Login before adding your answer.

Traffic: 1850 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6