Pileup file and order of the individuals
1
1
Entering edit mode
7.1 years ago
AP ▴ 100

Hello,

I created a pileup file from a list containing names of several bam files:

samtools mpileup -B -f ref.fa -b bam_list.txt > ouput.mpileup

The bam_list.txt looks like that:

  • Ind1.bam
  • Ind2.bam
  • Ind3.bam

Since the pileup format does not contain the individul IDs, it is difficult to know which columns correspond to what individual.

Does samtools give information following exactly the given list? E.g. columns 4 to 6 would correspond to Ind1.bam, 7 to 9, Ind2.bam ...etc (see example of pileup format: https://en.wikipedia.org/wiki/Pileup_format)

It's hard to tell and I need to make sure of what the order is.

Thanks!

samtools mpileup order • 1.2k views
ADD COMMENT
0
Entering edit mode
7.0 years ago
AP ▴ 100

After multiple testing, I can confirm that columns in the pileup file are placed in the same order as in the list of bam files provided for the analysis. In other words, columns 4 to 6 would correspond to Ind1.bam, 7 to 9 to Ind2.bam...etc

ADD COMMENT

Login before adding your answer.

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