Spaces:
Sleeping
Sleeping
Commit
·
410bff6
1
Parent(s):
63af66a
Update code/add_sequence.py
Browse files- code/add_sequence.py +2 -2
code/add_sequence.py
CHANGED
|
@@ -4,7 +4,7 @@ from Bio import SeqIO
|
|
| 4 |
import xml.etree.ElementTree as ET
|
| 5 |
|
| 6 |
def get_uniprot_seq(protein_id):
|
| 7 |
-
print('Fetching UniProt Sequences for ID: ', protein_id)
|
| 8 |
baseUrl = "http://www.uniprot.org/uniprot/"
|
| 9 |
currentUrl = baseUrl + protein_id + ".fasta"
|
| 10 |
response = r.post(currentUrl)
|
|
@@ -19,7 +19,7 @@ def get_uniprot_seq(protein_id):
|
|
| 19 |
|
| 20 |
|
| 21 |
def get_isoforms(protein_id):
|
| 22 |
-
print('Fetching UniProt Isoforms for ID: ', protein_id)
|
| 23 |
try:
|
| 24 |
# a dictionary storing the sequence of your isoforms, key: accesion number, value: sequence
|
| 25 |
isoforms = dict()
|
|
|
|
| 4 |
import xml.etree.ElementTree as ET
|
| 5 |
|
| 6 |
def get_uniprot_seq(protein_id):
|
| 7 |
+
print('>> Fetching UniProt Sequences for ID: ', protein_id)
|
| 8 |
baseUrl = "http://www.uniprot.org/uniprot/"
|
| 9 |
currentUrl = baseUrl + protein_id + ".fasta"
|
| 10 |
response = r.post(currentUrl)
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
def get_isoforms(protein_id):
|
| 22 |
+
print('>> Fetching UniProt Isoforms for ID: ', protein_id)
|
| 23 |
try:
|
| 24 |
# a dictionary storing the sequence of your isoforms, key: accesion number, value: sequence
|
| 25 |
isoforms = dict()
|