Commit c1f2fbe0 authored by Mathieu Giraud's avatar Mathieu Giraud

ncbi.py: comment

parent dad1bca1
......@@ -16,6 +16,8 @@ from xml.dom import minidom, Node
# The two following functions should be refactored as one (used in split-from-imgt and get-CD)
def get_gene_sequence(gene, other_gene_name, start, end):
'''
Return the gene sequences between positions start and end (included).
......@@ -23,10 +25,6 @@ def get_gene_sequence(gene, other_gene_name, start, end):
fasta_string = urllib.urlopen(API_NUCCORE_ID_FROM_TO % (gene, start, end)).read()
return re.sub('(>\S*) ', r'\1|'+other_gene_name+'|', fasta_string)
def ncbi_and_write(ncbi, additional_header, outs):
print ncbi, additional_header
fasta = urllib.urlopen(API_NUCCORE_ID % ncbi).read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment