Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
63675775
Commit
63675775
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add method to retrieve uniprot IDs from a PDB ID
Former-commit-id: ab2cfde9fd3ad61a96722b9ef81bae42f2213f54
parent
dfae7102
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/ws.py
+5
-0
5 additions, 0 deletions
ippisite/ippidb/ws.py
with
5 additions
and
0 deletions
ippisite/ippidb/ws.py
+
5
−
0
View file @
63675775
...
...
@@ -78,3 +78,8 @@ def get_pfam_info(pfam_acc):
domain_family
=
''
return
{
'
id
'
:
pfam_id
,
'
description
'
:
description
}
def
get_pdb_uniprot_mapping
(
pdb_id
):
resp
=
requests
.
get
(
'
https://www.ebi.ac.uk/pdbe/api/mappings/uniprot/{}
'
.
format
(
pdb_id
))
uniprot_ids
=
list
(
resp
.
json
()[
pdb_id
][
'
UniProt
'
].
keys
())
return
uniprot_ids
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment