Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Extract reads sequence based on position from bam file

    Dear all,
    I'm trying to recover reads sequences from specific region in bam file.
    Reads were align using bowtie2.

    I have reads align to one specific sequence and I would like to get sequences of reads mapped to a specific region of 3 nucleotides, and count the occurence of each tri-nucleotide at this position.

    How would I achieve this ?

    Thanks for your help !

  • #2
    You can extract the reads in the region you are interested in using samtools view (e.g. samtools view -b reads.bam chr1:10420000-10421000 > subset.bam) and then use bedtools/bam-readcount.
    Last edited by GenoMax; 10-10-2016, 04:53 AM.

    Comment


    • #3
      Thanks for your answer.
      Which command from bedtools ?
      What is bamcount ?

      Comment


      • #4
        Sorry. Should be bam-readcount. Added a link to post above. When you say tri-nucloetide (you want to consider the counts as a trinucleotide or just counts for bases at those three positions). If latter then bam-readcount will work.

        Comment


        • #5
          bamcount is not doing exactly what i'm asking, i don't want readcounts for each base at each position.
          I want the occurence of each tri-nucleotide at this specific site.
          For example :
          ACA = 5 reads
          GCA = 8 reads
          etc ....

          The problem is that there are INDELS in the alignment and I don't know how to deal with it.

          Comment


          • #6
            If the indel spans that position there is nothing you can do. How deep is the pileup (not practical to count in a genome viewer (e.g. IGV)?

            Comment


            • #7
              there are not that much reads mapping to the sequence of interest (maximum is 800 000 reads ).
              You are suggesting to do it with IGV ? How ?

              Comment


              • #8
                This tool by Pierre Lindenbaum may be useful in this case: https://github.com/lindenb/jvarkit/wiki/SAM4WebLogo It should give you aligned fasta files.

                If it was a small number of reads I thought you could count them in IGV but sounds like that may not be the case.

                Comment

                Latest Articles

                Collapse

                • seqadmin
                  Recent Advances in Sequencing Analysis Tools
                  by seqadmin


                  The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                  05-06-2024, 07:48 AM
                • 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...
                  04-22-2024, 07:01 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, 05-14-2024, 07:03 AM
                0 responses
                16 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 05-10-2024, 06:35 AM
                0 responses
                39 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 05-09-2024, 02:46 PM
                0 responses
                48 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 05-07-2024, 06:57 AM
                0 responses
                39 views
                0 likes
                Last Post seqadmin  
                Working...
                X