Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • boetsie
    Senior Member
    • Feb 2010
    • 245

    coverage per position - less positions than in reference

    Hi all,

    i have a question concerning the coverage per position. I have a sorted .bam file which i use to determine the coverage per position. I use the code;

    Code:
    samtools pileup -f reference.fa bamfile.bam > coverageperposition.txt
    when i check the number of lines, I get 4.543.383 positions. My reference is 4.639.675 bp long. So i'm missing around 100.000 positions!

    Another method I used is with BEDTools;

    Code:
    genomeCoverageBed -ibam bamfile.bam -g genome.txt -bga > coverageperpositionBEDTOOLS.txt
    if i check here the number of lines, I get only 3.429.006 positions!

    Am i doing something wrong here? How can i get for every position in the genome the coverage? I need this, because I want to plot the coverage in a graph, along with the genome. So the number of positions should match the size of the genome.

    Kind regards,
    Boetsie

Latest Articles

Collapse

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 06-05-2026, 10:09 AM
0 responses
14 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-04-2026, 08:59 AM
0 responses
28 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-02-2026, 12:03 PM
0 responses
33 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-02-2026, 11:40 AM
0 responses
23 views
0 reactions
Last Post SEQadmin2  
Working...