Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • How to find out the base on a certain position

    I've found a SNP on a certain position on a reference genome (eg chromosome 1, position 13579) by using bwasw and Samtools. Next, I want to find out what is the base on each of my other Sanger sequences. My other Sanger sequences may or may not cover this SNP position.

  • #2
    also with samtools mpileup.

    Comment


    • #3
      Could you tell me more details on how to do it? Maybe give me an example command? Thanks!

      Comment


      • #4
        Your question is not making sense. Perhaps you can expand on it? As far as I can tell you have (1) found a SNP -- that makes sense -- and (2) want to find out, exactly what?, on your other sequences.

        Comment


        • #5
          I see that 'volks' responded. I think that he/she is answering the question that you probably meant to ask, which I would state as:

          I have found a SNP on a chromosome. I would like to know for all of my sequences what base, if any, they have at that SNP position.

          samtools mpileup is the answer for the above. See: http://samtools.sourceforge.net/mpileup.shtml

          And, of course, the man page at: http://samtools.sourceforge.net/samtools.shtml
          Last edited by westerman; 09-08-2011, 09:17 AM. Reason: Added man page reference

          Comment


          • #6
            I want to count the number of each wide-type and polymorphism on the same position among all the sequences which cover that position.

            Comment


            • #7
              "wide-type"? I'll presume "wild-type".

              I was assuming, and perhaps 'volks' was as well, that your Sanger sequences were mapped using bwa and that the information of this mapping is inside your BAM file. If so then 'samtools mpileup your_file' will get you the information you need. You can limit the positions via the '-l' option.

              Comment


              • #8
                I tried the commands below. I'm sure the sample RN21 has SNP on chr_2:5556282. However, the output showed all the SNPs found in sample RN21. Same as without typing -l chr_2:5,556,282.

                What did I miss?


                samtools mpileup -uf Sorbil.fasta RN21.ab1.sorted.bam -l chr_2:5,556,282 | /mnt/E_DRIVE/samtools-0.1.17/bcftools/bcftools view -bvcg - > var.raw.bcf


                bcftools view var.raw.bcf > var.flt.vcf

                Comment


                • #9
                  Hi Shuang,

                  You can use the -r option with a coordinate. You should also write the options before the bam file.
                  Ex: samtools mpileup -r chr1:38280656-38280656 file.bam

                  Emilie

                  ****************************************
                  samtools mpileup [options] in1.bam [in2.bam [...]]
                  -r STR Only generate pileup in region STR [all sites]

                  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, Yesterday, 06:57 AM
                  0 responses
                  11 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-06-2024, 07:17 AM
                  0 responses
                  16 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-02-2024, 08:06 AM
                  0 responses
                  19 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-30-2024, 12:17 PM
                  0 responses
                  24 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X