Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
binfpy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
opensource
binfpy
Commits
3ff7d474
Commit
3ff7d474
authored
Feb 14, 2023
by
Mikael Boden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_uniprot_API
parent
6727521b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
webservice.py
webservice.py
+3
-3
No files found.
webservice.py
View file @
3ff7d474
...
...
@@ -19,7 +19,7 @@ import json
__ebiUrl__
=
'http://www.ebi.ac.uk/Tools/'
__ebiGOUrl__
=
'https://www.ebi.ac.uk/QuickGO/services/'
__uniprotUrl__
=
'http://
www
.uniprot.org/'
__uniprotUrl__
=
'http://
rest
.uniprot.org/'
__ebiSearchUrl__
=
'http://www.ebi.ac.uk/ebisearch/'
...
...
@@ -58,11 +58,11 @@ def search(query, dbName='uniprot', format='list', limit=100, columns=""):
if
dbName
.
startswith
(
'uniprot'
):
# Construct URL
if
limit
==
None
:
# no limit to number of results returned
url
=
"{}{}/
?
format={}&query={}&columns={}"
.
format
(
__uniprotUrl__
,
dbName
,
format
,
url
=
"{}{}/
search?&
format={}&query={}&columns={}"
.
format
(
__uniprotUrl__
,
dbName
,
format
,
urllib
.
parse
.
quote
(
query
),
columns
)
else
:
url
=
"{}{}/?format={}&limit={}&query={}&columns={}"
.
format
(
__uniprotUrl__
,
dbName
,
format
,
str
(
limit
),
url
=
"{}{}/
search
?format={}&limit={}&query={}&columns={}"
.
format
(
__uniprotUrl__
,
dbName
,
format
,
str
(
limit
),
urllib
.
parse
.
quote
(
query
),
columns
)
# Get the entries
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment