download
ensembl.io.genomio.genbank.download
¶
Download a Genbank file from NCBI from an accession.
DownloadError
¶
Bases: Exception
In case a download failed.
Source code in src/python/ensembl/io/genomio/genbank/download.py
30 31 32 33 34 |
|
msg = msg
instance-attribute
¶
download_genbank(accession, output_file)
¶
Given a GenBank accession, download the corresponding file in GenBank format.
Uses NCBI Entrez service to fetch the data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
accession
|
str
|
INSDC Genbank record accession. |
required |
output_file
|
PathLike
|
Path to the downloaded record in Genbank format. |
required |
Raises:
Type | Description |
---|---|
DownloadError
|
If the download fails. |
Source code in src/python/ensembl/io/genomio/genbank/download.py
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 |
|
main()
¶
Main script entry-point.
Source code in src/python/ensembl/io/genomio/genbank/download.py
69 70 71 72 73 74 75 76 77 78 79 |
|