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
              Advanced Tools Transforming the Field of Cytogenomics
              by seqadmin


              At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
              09-26-2023, 06:26 AM
            • seqadmin
              How RNA-Seq is Transforming Cancer Studies
              by seqadmin



              Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
              09-07-2023, 11:15 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Yesterday, 09:38 AM
            0 responses
            9 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 09-27-2023, 06:57 AM
            0 responses
            11 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 09-26-2023, 07:53 AM
            1 response
            23 views
            0 likes
            Last Post seed_phrase_metal_storage  
            Started by seqadmin, 09-25-2023, 07:42 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Working...
            X