Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • d_t_nguyen
    Member
    • Jun 2013
    • 13

    #1

    Counting number of short-read cover positions

    Hi everyone,
    I used this command to count the number of short-read cover a position:
    Code:
    samtools view data.bam 20:1000-1000 -c
    If I run this command several time, it would be very slow.
    Is there any way to count the number of short-read cover millions of positions.
    Thank you in advance!
  • Rocketknight
    Member
    • Sep 2011
    • 86

    #2
    GATK's DepthOfCoverage can do this. Use the -L argument to specify which positions you want coverage information for. http://www.broadinstitute.org/gatk/g...fCoverage.html

    Comment

    • asiangg
      Member
      • Dec 2008
      • 44

      #3
      Hi, if you purpose is to get the coverage and visualize them, an easy to use and powerful tool is ngs.plot. It can accept a BED file or use its pre-compiled database and calculate the coverage for any bam file. It then visualize them either as an averaged profile plot or a heatmap.

      Comment

      • shi
        Wei Shi
        • Feb 2010
        • 236

        #4
        Hi d_t_nguyen,

        You may try the featureCounts program included in the Subread package (http://subread.sourceforge.net/).

        Here is the steps to use featureCounts to count your reads. Firstly, create a tab-delimited annotation file like this:

        GeneID Chr Start End Strand
        1 chr20 1000 1000 +
        2 chr20 2000 2000 +
        …

        Then, issue the following command to count reads:

        featureCounts -F SAF -f -O -a your_annotation.txt -i your_sam_file.sam -o results.txt

        The counting results will be saved into file 'results.txt'.

        Alternatively, you may provide a GTF format annotation for summarization. You may also use -T argument to run on multiple threads. Type 'featureCounts' for more information, or have a look at the userguide (http://bioinf.wehi.edu.au/subread-pa...UsersGuide.pdf)

        Best wishes,

        Wei

        Comment

        • d_t_nguyen
          Member
          • Jun 2013
          • 13

          #5
          Thank you all. I've just realized that pileup format of SAMTools have all I need. I used this command and I had all I want:
          samtools mpileup individual.bam > read.txt

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 10:52 AM
          0 responses
          9 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          19 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-13-2026, 09:56 AM
          0 responses
          16 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-09-2026, 11:14 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Working...