Header Leaderboard Ad

Collapse

Counting mapped nucleotides in a bam file

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Counting mapped nucleotides in a bam file

    Hi !

    Is there a way to go over a sorted bam file and count how many different matches there are for a specific nucleotide - for example for a reference nucleotide T in position x - there are :12 T , 3A, 4C 0G..?\

    Thanks ahead!

  • #2
    if it's just for some nucleotides and you need no autmoation:
    IGV shows that information when you visualize it there's a coverage track. y moving the cursor over the relevant bar you'll get that information

    Comment


    • #3
      if it's just for some nucleotides and you need no autmoation:
      IGV shows that information when you visualize it there's a coverage track. y moving the cursor over the relevant bar you'll get that information

      Comment


      • #4
        Thanks for your answer!

        I saw the anomaly in the IGV for couple of genes and now I would like to check it in about 500 genes... so I have to find a way to do it automatically ...

        Comment


        • #5
          What about traditional SNP calling (for example using GATK). Is there any reason not to do it?

          Comment


          • #6
            As far as I know snp calling won't always count a snp like one if there is not enough coverage or not sufficient quality score...
            In addition, when I used a snp caller I got the consensus nucleotide and since I would like to see how much of each nucleotide covers specific position I am not sure if it fits...

            Do you know how to overcome these issues using snp callers?
            Thanks

            Comment


            • #7
              you can set the criteria quite low and when using GATK (don't know for the others) it outputs the allele balance between the reference allele and the substituted allele.

              It might miss some snps though if evidence is very low but I guess you do search variants with biological meaning and I guess he wouldn't miss those.

              However, you would only get information of balance of 2 nucleotides. I don't think triallelic SNPs are supported yet.

              Can't think of any other solution but maybe there's a fuction in bamtools/bedtools/samtools/picard that you might use

              Comment


              • #8
                Thanks for your help!

                Comment

                Latest Articles

                Collapse

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, Yesterday, 07:14 AM
                0 responses
                5 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 06-06-2023, 01:08 PM
                0 responses
                6 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 06-01-2023, 08:56 PM
                0 responses
                156 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 06-01-2023, 07:33 AM
                0 responses
                293 views
                0 likes
                Last Post seqadmin  
                Working...
                X