Skip to content
Browse files

fixed a few typos

  • Loading branch information...
1 parent ef95580 commit dedeef34a1503ec08fde8e80da924a7efb24b66a mdehoon committed Jun 12, 2013
Showing with 7 additions and 10 deletions.
  1. +7 −10 Bio/motifs/jaspar/db.py
View
17 Bio/motifs/jaspar/db.py
@@ -68,10 +68,7 @@
from Bio.Alphabet.IUPAC import unambiguous_dna as dna
-import sys
-sys.path.append("/homed/home/dave/devel/biopython_devel")
-#sys.path.append("/home/anthony/PostDoc/JASPAR2013/Biopython_package/biopython-master/")
-from Bio_dev.motifs import jaspar, matrix
+from Bio.motifs import jaspar, matrix
from warnings import warn
JASPAR_DFLT_COLLECTION = 'CORE'
@@ -112,9 +109,9 @@ def __str__(self):
"""
- str = "%s\@%s:%s" % (self.user, self.host, self.name)
+ text = "%s\@%s:%s" % (self.user, self.host, self.name)
- return str
+ return text
def fetch_motif_by_id(self, id):
"""
@@ -126,7 +123,7 @@ def fetch_motif_by_id(self, id):
version number (e.g. MA0049.2) or just the base ID (e.g. MA0049).
If only a base ID is provided, the latest version is returned.
Returns:
- A Bio.motifs.Motif.jaspar object
+ A Bio.motifs.jaspar.Motif object
NOTE: The perl TFBS module allows you to specify the type of matrix to
return (PFM, PWM, ICM) but matrices are always stored in JASAPR as
@@ -234,7 +231,7 @@ def fetch_motifs(
returned.
Returns:
- A Bio.motifs.Motif.jaspar.Record (list) of motifs.
+ A Bio.motifs.jaspar.Record (list) of motifs.
"""
@@ -725,6 +722,6 @@ def _is_latest_version(self, int_id):
if count == 0:
# no matrices with higher version ID and same base id
- return(True)
+ return True
- return(False)
+ return False

0 comments on commit dedeef3

Please sign in to comment.
Something went wrong with that request. Please try again.