-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathget_identifier_types.py
More file actions
77 lines (70 loc) · 1.18 KB
/
get_identifier_types.py
File metadata and controls
77 lines (70 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Fetch the set of currently supported identifier types
"""
import requests
import json
from core import config as cfg
request_url = cfg.BASE_URL + "/identifiers"
# These parameters can be modified to match any search criteria following
# the rules outlined in the Wiki: https://wiki.thebiogrid.org/doku.php/biogridrest
# In this particular instance, we've chosen just the format to use in tab
params = {"accesskey": cfg.ACCESS_KEY, "format": "tab"}
r = requests.get(request_url, params=params)
identifiers = r.text
# Pretty print out the results
print(identifiers)
"""
Expected Output as of version 4.0:
ANIMALQTLDB
APHIDBASE
BEEBASE
BGD
BIOGRID
CGD
CGNC
DICTYBASE
ECOGENE
ENSEMBL
ENSEMBL_GENE
ENSEMBL_PROTEIN
ENSEMBL_RNA
ENTREZ_GENE
ENTREZ_GENE_ETG
FLYBASE
GRID_LEGACY
HGNC
HPRD
IMGT/GENE-DB
MAIZEGDB
MGI
MIM
MIRBASE
OFFICIAL_SYMBOL
ORDERED_LOCUS
PBR
REFSEQ-LEGACY
REFSEQ-PROTEIN-ACCESSION
REFSEQ-PROTEIN-ACCESSION-VERSIONED
REFSEQ-PROTEIN-GI
REFSEQ-RNA-ACCESSION
REFSEQ-RNA-GI
RGD
SGD
SWISS-PROT
SYNONYM
SYSTEMATIC_NAME
TAIR
TREMBL
TUBERCULIST
UNIPROT-ACCESSION
UNIPROT-ISOFORM
UNIPROT_PRO
VECTORBASE
VEGA
WORMBASE
WORMBASE-OLD
XENBASE
ZFIN
"""