How to reconstruct reads or bam file from pileup
1
0
Entering edit mode
4.6 years ago
SSK ▴ 10

Hi !

I made bam file and pileup file by using samtools, and I deleted this bam file because of its size. However, I found that I need to get some information about my data such as number of reads.

Therefore, I want to ask

(1) Can I reconstruct fastq or bam file from pileup file?

or

(2) Can I get some information related to mapped reads data from pileup file?

Thanks !

alignment bam mpileup samtools • 1.4k views
ADD COMMENT
0
Entering edit mode
4.6 years ago
h.mon 35k

No you can't recontruct the fastq or bam from the pileup file, as each mapped read is shredded into one base per reference position.

But yes, you can get some information, such as coverage per reference position, proportion and number of each base at each reference position, and proportion and number of quality scores at each reference position.

ADD COMMENT
0
Entering edit mode

Thanks h.mon!

See if I can get what I want, and if it doesn't work, I redo from row data.

Thank you!

ADD REPLY

Login before adding your answer.

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