Parse error at line.....
1
0
Entering edit mode
4.2 years ago

Hi I am trying to convert sam file to bam file and encountered this problem . Not sure how to troubleshoot, Can someone help please as I am very new to bioinformatics

samtools view -S -b aln2.sam > aln2.bam
[W::sam_read1] Parse error at line 753646
[main_samview] truncated file.
alignment • 2.2k views
ADD COMMENT
3
Entering edit mode
4.2 years ago
ATpoint 85k

The file is corrupted, repeat alignment. That is the most robust option. When you do pipe directly into samtools.

alignment_code (...) | samtools view -o aln2.bam
ADD COMMENT
0
Entering edit mode

hey thanks it worked :D

ADD REPLY
0
Entering edit mode

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.
Upvote|Bookmark|Accept

ADD REPLY
0
Entering edit mode

Hey thanks genomax . I am still new so this small information is also useful for me :D

ADD REPLY

Login before adding your answer.

Traffic: 1160 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