Skip to content

Commit cceca74

Browse files
committed
fixed issues
1 parent 25ce3af commit cceca74

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

_episodes/06-biopython.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,28 +89,27 @@ It contains a string (the sequence) and a defined alphabet for that string.
8989
The 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
~~~
9595
from Bio.Seq import Seq
96-
from Bio.Alphabet import IUPAC
9796
~~~
9897
{: .python}
9998

10099
Now we can create a `Seq` object:
101100

102101
~~~
103-
my_seq = Seq("AGTACACTGGT", IUPAC.unambiguous_dna)
102+
my_seq = Seq("AGTACACTGGT")
104103
my_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
~~~
115114
my_prot = Seq("AGTACACTGGT", IUPAC.protein)
116115
my_prot
@@ -120,7 +119,7 @@ my_prot
120119
~~~
121120
Seq('AGTACACTGGT', IUPACProtein())
122121
~~~
123-
{: .output}
122+
{: .output} -->
124123

125124
The nice thing about the sequence object is
126125
that 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")
164163
print(my_seq.reverse_complement())
165164
~~~
166165
{: .python}
@@ -176,7 +175,7 @@ will need to create a `MutableSeq` object.
176175

177176
~~~
178177
from Bio.Seq import MutableSeq
179-
mutable_seq = MutableSeq("GCCATTGTAATGGGCCGCTGAAAGGGTGCCCGA", IUPAC.unambiguous_dna)
178+
mutable_seq = MutableSeq("GCCATTGTAATGGGCCGCTGAAAGGGTGCCCGA")
180179
~~~
181180
{: .python}
182181

0 commit comments

Comments
 (0)