7ca79b945accfbf1c5e435eac1e9e25c0d808272,prody/proteins/blastpdb.py,,blastPDB,#Any#Any#,13
Before Change
"SDHWSQNLSQFFPEAISFIDEARGKNCGVLVHSLAGISRSVTVTVAYLMQKLNLSMN"
"DAYDIVKMKKSNISPNFNFMGQLLDFERTL")
else:
try:
sequence = "".join(sequence.split())
_ = sequence.isalpha()
except AttributeError:
raise TypeError("sequence must be a string")
else:
if not _:
raise ValueError("not a valid protein sequence")
headers = {"User-agent": "ProDy"}
query = [("DATABASE", "pdb"), ("ENTREZ_QUERY", "(none)"),
("PROGRAM", "blastp"),]
After Change
sequence = ("ASFPVEILPFLYLGCAKDSTNLDVLEEFGIKYILNVTPNLPNLFENAGEFKYKQIPI"
"SDHWSQNLSQFFPEAISFIDEARGKNCGVLVHSLAGISRSVTVTVAYLMQKLNLSMN"
"DAYDIVKMKKSNISPNFNFMGQLLDFERTL")
elif isinstance(sequence, Atomic):
sequence = sequence.select("calpha and chain %s" % chain).getSequence()
elif isinstance(sequence, Sequence):
sequence = str(sequence)
elif isinstance(sequence, str):
if len(sequence) == 4 or len(sequence) == 5:
ag = parsePDB(sequence)
sequence = ag.select("calpha and chain %s" % chain).getSequence()
else:
raise TypeError("seq must be an atomic class, sequence class, or str not {0}"
.format(type(sequence)))
headers = {"User-agent": "ProDy"}
query = [("DATABASE", "pdb"), ("ENTREZ_QUERY", "(none)"),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: prody/ProDy
Commit Name: 7ca79b945accfbf1c5e435eac1e9e25c0d808272
Time: 2018-02-19
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/blastpdb.py
Class Name:
Method Name: blastPDB
Project Name: deeptools/HiCExplorer
Commit Name: 42dcbde0e602cba7adb911a2072df3887afd61f4
Time: 2018-03-03
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: exp_obs_matrix_lieberman
Project Name: chartbeat-labs/textacy
Commit Name: b933a75bd436e7ecdb62778f591be3c6b52aa175
Time: 2016-08-09
Author: burton@chartbeat.com
File Name: textacy/corpus.py
Class Name: Corpus
Method Name: add_doc