Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Wildcard Nucleotide Bases

    I have some pileup data from samtools and it is using wildcards to represent a combination of bases I'm unsure of.

    I know the 5 standard bases (ACGTU) and the well known pyrimidine and purine wildcards (YR), but don't know these other wildcards "SMWK". Anyone know what they definitively mean?

    Here's some sample pileup output:
    Code:
    NC_000913.2     82      T       W       24      24      60      19     .AAAA.....,,.,...,.     RBBBBBgBhgeBfahdffc
    NC_000913.2     3622    A       M       23      23      60      34      .,,C,C.CC,,C,,,.,,,,...g,,.g,,....      ]egBhBaBBhdBhcahdccfBhfBT^[Bb`hhcf
    NC_000913.2     6609    G       S       45      45      60      50      .$.,,.C,.,.,C.C,,CC.,..,C,.,.,.,,.,,.,,,.,,,c.c,,^~,^~, a_gh`BhYhZfBBBffBJhXgBdB`gfWYhcBYheBebdfaecBfBhfBB
    NC_000913.2     7073    C       Y       21      21      60      40      ,,,.,..,.,,.,,T..,.,.,....,.,,.t.g,ttt.g        ghhhgeQhVhg^ehBee\gBhBhW^hWhVBhBhBBBBBhB
    NC_000913.2     1258    G       R       26      26      60      36      ,.,A.,,ACC$,,,C....,,,,,,.,,,,...aat.   h\hB]ghBBBfhfB`cgc_a_a^afhffhdafBBBh
    NC_000913.2     3622    A       M       23      23      60      34      .,,C,C.CC,,C,,,.,,,,...g,,.g,,....      ]egBhBaBBhdBhcahdccfBhfBT^[Bb`hhcf
    NC_000913.2     13748   T       K       31      31      60      48      .,..,.G,GG,.,...,.,..,.,,......,,,.......,.g,ggg        dgeRhSBhBBhBhfBfhB]abBdOadba\ghWB_ghadchhghBfBBB

  • #2
    IUPAC ambiguity codes...



    S = strong (g/c)
    M = aMino (a/c)
    W = weak (a/t)
    K = keto (g/t)

    Comment


    • #3
      Exactly what I was looking for, thanks very much.

      Comment


      • #4
        Can anyone tell me how to expand this ambiguity codes with biopython?
        I mean, if I call with a sequence like 'YATCG' it returns 2 sequences 'TATCG' and 'CATCG'

        Thanks a lot.

        Comment


        • #5
          I got it. Thank you anyway.

          Code:
          from Bio.Data import IUPACData
          
          #-------------------------------------------
          #	Functions
          #-------------------------------------------
          
          def expand_wildcards(seq):
          	bl = [seq]
          	for ix in range(len(seq)):
          		sw = True
          		while sw:
          			iseq = bl.pop(0)
          			sl = list(iseq)
          			v = IUPACData.ambiguous_dna_values[sl[ix]]
          			if len(v) == 1:
          				sw = False
          				bl.append(iseq)
          			else:
          				for jx in range(len(v)):
          					sl[ix] = v[jx]
          					iseq = (''.join(sl))
          					bl.append(iseq)
          
          	bl.sort()	# no need indeed
          	return bl
          Last edited by GenoMax; 11-15-2015, 01:34 PM. Reason: Added CODE tags

          Comment


          • #6
            ^^^^^
            It is correctly indented but I do not know how to leave it well. It did not aloow me to upload it as attachment.

            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
            30 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            32 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            28 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            53 views
            0 likes
            Last Post seqadmin  
            Working...
            X