Pypeta
pypeta is the python code interface for BGI-PETA database. It provides APIs for login, querying and fetching data.
Installation
From source code.
$ git clone https://github.com/JaylanLiu/pypeta
$ cd pypeta
$ python setup.py install
Example usage
Import libraies:
import pypeta
Login to BGI-PETA database via PETA account:
peta=pypeta.Peta(username='bgi-peta@genomics.cn',password='******')
Or login via token:
peta=pypeta.Peta(token = '******')
Get all visable studies info:
peta.list_visible_studys()
Set target study id and other filters:
peta.select_studys(["chol_nus_2012"])
peta.data_restriction["attributesEqualFilters"]=[]
Also studies and filters can be load from a json file, which can be get from the PETA website:
peta.set_data_restriction_from_json_file('json.txt')
Fetch SNV and InDel data as MAF format:
peta.fetch_mutation_data()
Fetch clinical info as tsv format:
peta.fetch_clinical_data()
Metadata
Release files for pypeta 0.6.9
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 | |
|---|---|---|---|---|
| pypeta-0.6.9.tar.gz | 22.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypeta-0.6.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.0 kB
Release files / pypeta-0.6.9.tar.gz
| Download URL | pypeta-0.6.9.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d3de1fdf606a03c16659b969f1c997836cbb0886598e33bd2a015bbbe77cd43
|
|
BLAKE2b-256 checksum How to use checksums |
998744274b5eff39b3463b3386f63be476a18c9403f248a057742504a33cf23e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8
|
Release files / pypeta-0.6.9-py3-none-any.whl
| Download URL | pypeta-0.6.9-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a70982435e5b187f94abf375723a1f1aef7289efd481c137c2a1997b3660104f
|
|
BLAKE2b-256 checksum How to use checksums |
fc3cea6014dc0c28544408081b12fd0cde2ec5ed231e0fe7b08597f65774a077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8
|
Security for pypeta 0.6.9
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.