Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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!

  • #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


    • #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


      • #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


        • #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

          • seqadmin
            Essential Discoveries and Tools in Epitranscriptomics
            by seqadmin


            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
            Yesterday, 07:01 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          51 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          50 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          44 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          55 views
          0 likes
          Last Post seqadmin  
          Working...
          X