Order of samtools mpileup - arbitrary or not?
1
1
Entering edit mode
6.3 years ago
blur ▴ 280

Hi,

edited to clarify

I want to compare two mpileup files that have the same no. of reads. is the mpileup output ordered or not? If I have several reads that are ordered 1,2 ...n, will mpileup list them in the order in which they entered the pileup?

i.e.

Read1
A

Read2
C

Read3
C

Readn
G

will the pileup look like this (ordered)

chr   100  A     ACCG

or might it be random, like perhaps

chr   100  A     AGCC

or any other combination? (there are other positions around this pileup, like position 99 and 101, this is a specific position just to clarify my meaning)

thanks,

samtools mpileup • 1.2k views
ADD COMMENT
0
Entering edit mode

Can you clarify your question? There are going to be additional bases around a specific position you are looking at.

ADD REPLY
1
Entering edit mode
6.3 years ago

The pileup will be ordered by the order of the reads in the BAM file. This isn't strictly guaranteed, it's a by-product of how the code works under the hood.

ADD COMMENT

Login before adding your answer.

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