Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • samtools mpileup using -l or -r

    Dear all,

    I am having some strange issues with samtools mpileup. I am running exactly the same command using either:

    -r 17:45249328-45249329
    or
    -l chr17c.bed

    where chr17c.bed is a one line BED file:
    17 45249328 45249329

    The latter, which uses a bed file, is incredibly slow. We also seem to observe a bug at some rare locations of the genome but we haven't gotten to the bottom of this.

    Is there a real difference between using -l or -r? Why do I observe a different behavior? Can anyone give me dome details on the way samtools works in this case?

    Thank you in advance, and happy to provide more details if it helps,

    Vincent


    PS: the full command line looks like
    samtools mpileup -ugf /ugi/home/shared/vincent/reference_genome/fasta/human_g1k_v37.fasta -D -l chr17c.bed -b my_220_bamfiles.tab

  • #2
    Hi,

    I see the same thing. Looping over a set of ≈40 positions (in hg19) using -r for each position is super fast. Giving a BED or list file with the full set of 40 positions takes ≈ 20 min to process. -r finishes in seconds.

    I would guess that there is a bug somewhere in the code controlling the -l parameter not using the extremely fast random access code that -r is using... just a non-qualified guess hope for a fix in a future version.

    I see this regularly using samtools v0.1.12 and v0.1.18

    BR
    Daniel

    Comment


    • #4
      To quote Heng in that thread: " Ideally, samtools should be more clever about that."

      +1 to that. It would be awesome if -l also used the index.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM
      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      31 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      32 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      28 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      53 views
      0 likes
      Last Post seqadmin  
      Working...
      X