Skip to content

Commit 639a815

Browse files
carlosp420peterjc
authored andcommitted
some fixes
1 parent 0de1196 commit 639a815

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Bio/Blast/Applications.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1545,8 +1545,8 @@ def __init__(self, cmd="makeblastdb", **kwargs):
15451545
]
15461546
AbstractCommandline.__init__(self, cmd, **kwargs)
15471547

1548-
def _input_type_checker(command, x):
1549-
return x in ("asn1_bin", "asn1_txt", "blastdb", "fasta")
1548+
def _input_type_checker(self, command):
1549+
return command in ("asn1_bin", "asn1_txt", "blastdb", "fasta")
15501550

15511551
def _validate(self):
15521552
incompatibles = {
@@ -1556,7 +1556,7 @@ def _validate(self):
15561556
}
15571557

15581558
# Copied from _NcbibaseblastCommandline class above.
1559-
# Code repeated here for python2 and 3 comptaibility,
1559+
# Code repeated here for python2 and 3 compatibility,
15601560
# because this is not a _NcbibaseblastCommandline subclass.
15611561
for a in incompatibles:
15621562
if self._get_parameter(a):

Bio/Seq.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ def complement(self):
803803
>>> my_protein.complement()
804804
Seq('KTIBKCY')
805805
806-
Here "M" was interpretted as the IUPAC ambiguity code for
806+
Here "M" was interpreted as the IUPAC ambiguity code for
807807
"A" or "C", with complement "K" for "T" or "G". Likewise
808808
"A" has complement "T". The letter "I" has no defined
809809
meaning under the IUPAC convention, and is unchanged.
@@ -2263,7 +2263,7 @@ def extend(self, other):
22632263
def toseq(self):
22642264
"""Return the full sequence as a new immutable Seq object.
22652265
2266-
>>> from Bio.Seq import Seq
2266+
>>> from Bio.Seq import MutableSeq
22672267
>>> my_mseq = MutableSeq("MKQHKAMIVALIVICITAVVAAL")
22682268
>>> my_mseq
22692269
MutableSeq('MKQHKAMIVALIVICITAVVAAL')

Bio/SeqFeature.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ def _set_strand(self, value):
12711271
def __add__(self, other):
12721272
"""Combine locations, or shift the location by an integer offset.
12731273
1274-
>>> from Bio.SeqFeature import FeatureLocation, CompoundLocation
1274+
>>> from Bio.SeqFeature import FeatureLocation
12751275
>>> f1 = FeatureLocation(15, 17) + FeatureLocation(20, 30)
12761276
>>> print(f1)
12771277
join{[15:17], [20:30]}

0 commit comments

Comments
 (0)