@@ -89,28 +89,27 @@ It contains a string (the sequence) and a defined alphabet for that string.
8989The alphabets are actually defined objects such as ` IUPACAmbiguousDNA ` or
9090` IUPACProtein ` . A Seq object with a DNA alphabet has some different methods than one with an Amino Acid alphabet.
9191
92- First, import the ` Seq ` and alphabet from Biopython
92+ First, import the ` Seq ` object from Biopython
9393
9494~~~
9595from Bio.Seq import Seq
96- from Bio.Alphabet import IUPAC
9796~~~
9897{: .python}
9998
10099Now we can create a ` Seq ` object:
101100
102101~~~
103- my_seq = Seq("AGTACACTGGT", IUPAC.unambiguous_dna )
102+ my_seq = Seq("AGTACACTGGT")
104103my_seq
105104~~~
106105{: .python}
107106
108107~~~
109- Seq('AGTACACTGGT', IUPACUnambiguousDNA() )
108+ Seq('AGTACACTGGT')
110109~~~
111110{: .output}
112111
113- We can create protein sequence by specifying the alphabet:
112+ <!-- We can create protein sequence by specifying the alphabet:
114113~~~
115114my_prot = Seq("AGTACACTGGT", IUPAC.protein)
116115my_prot
@@ -120,7 +119,7 @@ my_prot
120119~~~
121120Seq('AGTACACTGGT', IUPACProtein())
122121~~~
123- {: .output}
122+ {: .output} -->
124123
125124The nice thing about the sequence object is
126125that it can be treated
@@ -160,7 +159,7 @@ len(my_seq)
160159` Seq ` objects also have special methods. For example, you can get the reverse complement of a sequence:
161160
162161~~~
163- my_seq = Seq("GATCGATGGGCCTATATAGGATCGAAAATCGC", IUPAC.unambiguous_dna )
162+ my_seq = Seq("GATCGATGGGCCTATATAGGATCGAAAATCGC")
164163print(my_seq.reverse_complement())
165164~~~
166165{: .python}
@@ -176,7 +175,7 @@ will need to create a `MutableSeq` object.
176175
177176~~~
178177from Bio.Seq import MutableSeq
179- mutable_seq = MutableSeq("GCCATTGTAATGGGCCGCTGAAAGGGTGCCCGA", IUPAC.unambiguous_dna )
178+ mutable_seq = MutableSeq("GCCATTGTAATGGGCCGCTGAAAGGGTGCCCGA")
180179~~~
181180{: .python}
182181
0 commit comments