Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

efetch.py

A Python module for retrieving sequence data as FASTA from NCBI using eutils

Requires the ability to communicate with eutils.ncbi.nlm.nih.gov

The following example will fetch the sequence of chromosome 8 of GRCh37:

python efetch.py fasta CM000670.1

This can also be imported as a module, like so:

import efetch

defline, lines = efetch.FASTA('CM000670.1')
assert(defline == '>gi|224384761|gb|CM000670.1| Homo sapiens chromosome 8, GRCh37 primary reference assembly')
seqlen = 0
for i in lines:
    seqlen += len(i)
assert(seqlen == 146364022)

About

A Python module for retrieving sequence data from NCBI using eutils

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages