Simple access to the reference genomes at UCSC
The package allows to easily download and use genomic data at UCSC. This is essentially a thin “caching” wrapper around the twobitreader library.
Installation
The simplest way to install the package is via easy_install or pip:
$ easy_install ucscgenome
Dependencies
twobitreader
Usage
The primary usage example is the following:
from ucscgenome import Genome
g = Genome('sacCer2')
print str(g['chrI'][0:100])
On the second line of the above example the following steps are performed:
The local cache directory is searched for the pre-downloaded genome data. If the data is readily available, it is opened for reading.
If there is not cached version of the sacCer2 genome, it is downloaded from the UCSC site to the cache directory.
The local data is downloaded and stored using the compact 2bit format.
You can configure the details of the procedure by providing additional options to the Genome constructor:
g = Genome('hg19', cache_dir='my_genomes', use_web=False)
which means that the genome data is to be searched for in the ./my_genomes directory and in no case should a download be attempted, or:
g = Genome('hg19', source_url_pattern='http://my.site.com/genomes/%(id)s/%(id)s.2bit')
which means that the genomic data is to be downloaded from your own server rather than UCSD’s.
See also
Report issues and submit fixes at Github: https://github.com/konstantint/ucscgenome
Metadata
Release files for ucscgenome 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ucscgenome-0.1.zip | 9.0 kB | Without provenance | Details for ucscgenome-0.1.zip |
Release files / ucscgenome-0.1.zip
| Download URL | ucscgenome-0.1.zip |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e844e238dd2643452728ec48325728d3ca7739f47303cec69f337673cb49f93b
|
|
BLAKE2b-256 checksum How to use checksums |
4b12afae459492129dfa830d66f0b59ba0bfd73fa86c792af48beac3c3478539
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ucscgenome 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.