Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Jeromek
    Junior Member
    • Jul 2014
    • 9

    Samtools Depth

    Hey Guys,

    I have just installed samtools on the command line and am messing around with the features. One thing I am curious about is deletion detection. Specifically, I am looking to use the depth function with position arguments to check coverage at a specific point. The function however seems to return a list of all locations and their associated depth. Is what I am looking for possible, or do you have to digest the entire data first?

    Also, if anyone has good documentation I would appreciate that, as I could not locate any with a quick search. Kind regards, J
  • Cytosine
    Member
    • Mar 2014
    • 22

    #2
    Samtools does have a really great, almost instant, access to any region of the .bam file because of it's .bai index file.

    If you want to extract coverage at a specific point in your genome, then take a look at the samtools depth usage information.

    Code:
    Usage: samtools depth [options] in1.bam [in2.bam [...]]
    Options:
       -b <bed>            list of positions or regions
       -f <list>           list of input BAM filenames, one per line [null]
       -l <int>            minQLen
       -q <int>            base quality threshold
       -Q <int>            mapping quality threshold
       -r <chr:from-to>    region
    The -r option is the one with which you get coverage report of a specific region.

    For example:
    Code:
    samtools depth -r chr1:10000-20000 mymapping.bam
    Will extract the coverage information between 10000-20000 bp for the >chr1 entry from mymapping.bam file.

    Check out samtools' webpage for more info:

    Comment

    • Jeromek
      Junior Member
      • Jul 2014
      • 9

      #3
      Thanks very much! Really Useful

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      30 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      18 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Working...