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
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      24 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      48 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      49 views
      0 reactions
      Last Post SEQadmin2  
      Working...