Question: Truncated File, When Converting Sam To Bam
0
gravatar for Jianfengmao
8.3 years ago by
Jianfengmao310
Jianfengmao310 wrote:

Dear BioStarers,

When I convert my sam file to bam file, I got "truncated file" in prompt, and also "[sam_read1] reference '503821040998320619' is recognized as '*'". It is no such problem, when I converted other sam files to bam using the same reference, here is "../Alyrref.folded.fa.fai". Now, I do not know what I can do next.

So, I need to get helps from you. What have happened? Is it a serious problem? Can I still use this truncated file for pileup? Thanks in advance.

My command and the prompt:

$ samtools view -bht ../Alyrref.folded.fa.fai map.list.sam > map.list.bam
[sam_header_read2] 1099 sequences loaded.
[sam_read1] reference '503821040998320619' is ecognized as '*'.
[main_samview] truncated file.
bam sam conversion • 7.2k views
ADD COMMENTlink modified 8.3 years ago by Allpowerde1.2k • written 8.3 years ago by Jianfengmao310
1

I suggest you edit your question and include the last few lines of your SAM file - it sounds like the last line in the file is truncated, but maybe something else is going on. Use the tail command to get the final lines, e.g. "tail -3 map.list.sam".

ADD REPLYlink written 8.3 years ago by Bio_X2Y3.6k
1
gravatar for Allpowerde
8.3 years ago by
Allpowerde1.2k
Allpowerde1.2k wrote:

I remember that I had a similar problem a while ago. In my case it was because the sam file was faulty: bwa was terminated because the qsub time allocation was just too short for the massive amount of data that came from this particular lane (cluster density was way too high). Running your mapping program again to get an intact sam file might solve this problem.

ADD COMMENTlink written 8.3 years ago by Allpowerde1.2k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1348 users visited in the last hour