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
            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
          18 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          22 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          17 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          49 views
          0 likes
          Last Post seqadmin  
          Working...
          X