Skip to content

Commit bc31fbc

Browse files
committed
Merge branch 'master' of github.com:cokelaer/bioservices
2 parents 9ffccc8 + 12dca31 commit bc31fbc

File tree

7 files changed

+542
-531
lines changed

7 files changed

+542
-531
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Changelog
176176
========= ====================================================================
177177
Version Description
178178
========= ====================================================================
179+
1.10.0 * Update uniprot to use the new API (june 2022)
179180
1.9.0 * Update unichem to reflect new API
180181
1.8.4 * biomodels. Fix #208
181182
* KEGG: fixed #204 #202 and #203

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
_MAJOR = 1
7-
_MINOR = 9
7+
_MINOR = 10
88
_MICRO = 0
99
version = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
1010
release = '%d.%d' % (_MAJOR, _MINOR)

src/bioservices/apps/peptides.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class Peptides(object):
88
::
99
1010
>>> p = Peptides()
11-
>>> p.get_fasta_sequence("Q8IYB3")
1211
>>> p.get_peptide_position("Q8IYB3", "VPKPEPIPEPKEPSPE")
1312
189
1413
@@ -25,9 +24,11 @@ def __init__(self, verbose=False):
2524
self.sequences = {}
2625

2726
def get_fasta_sequence(self, uniprot_name):
28-
seq = self.u.get_fasta_sequence(uniprot_name)
27+
seq = self.u.get_fasta(uniprot_name)
28+
seq = "".join(seq.split("\n")[1:])
2929
return seq
3030

31+
3132
def get_phosphosite_position(self, uniprot_name, peptide):
3233
if uniprot_name not in self.sequences.keys():
3334
seq = self.get_fasta_sequence(uniprot_name)

src/bioservices/kegg.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,29 +1354,30 @@ def _parse(self, res):
13541354
output[key] = data
13551355
# strip only: expecting a single line (string)
13561356
elif key in [
1357-
"POSITION",
1357+
"ANNOTATION",
1358+
"CATEGORY",
1359+
"CLASS",
1360+
"COMPOSITION",
1361+
"CREATED",
1362+
"DATA_SOURCE",
1363+
"DEFINITION",
13581364
"DESCRIPTION",
13591365
"ENTRY",
1360-
"ORGANISM",
1361-
"CLASS",
1362-
"SYMBOL",
1366+
"EFFICACY",
1367+
"EQUATION",
13631368
"FORMULA",
13641369
"KEYWORDS",
1365-
"CATEGORY",
1366-
"ANNOTATION",
1367-
"DATA_SOURCE",
1370+
"HISTORY",
13681371
"MASS",
1369-
"COMPOSITION",
1370-
"STRUCTURE",
1372+
"ORGANISM",
13711373
"ORG_CODE",
1372-
"CREATED",
1373-
"DEFINITION",
1374+
"POSITION",
1375+
"RCLASS",
13741376
"KO_PATHWAY",
1375-
"EQUATION",
1377+
"SYMBOL",
1378+
"STRUCTURE",
13761379
"TYPE",
1377-
"RCLASS",
13781380
"SYSNAME",
1379-
"HISTORY",
13801381
"REL_PATHWAY",
13811382
]:
13821383
# get rid of \n

0 commit comments

Comments
 (0)