Seamlessly import and query all of the beacon protocol collections
Project description
Beacon2 Import Toolkit
Overview
Beacon Import facilitates the seamless transfer of local genetic data to the Beacon database server, enhancing collaboration and knowledge sharing. Meanwhile, Beacon Query empowers users to efficiently explore the database for specific genetic information, including genes, sequences, variants, cnv, and genomic ranges. The search tools also search the phenopacket and other metadata b2ri collections (individuals, runs, datasets, biosamples, cohorts and analyses), catalyzing genomic research and clinical applications
Requirements
- Python 3.6 or newer. (download instructions)
Installation and update
Using Pip3
-
Install beacon2-import using pip3.
sudo pip3 install beacon2-import
-
Update pyEGA3, if needed, using pip3.
pip3 install beacon2-import --upgrade
-
Test your pip3 installation by running beacon2-import.
beacon2-import --help beacon2-search --help
Using conda (bioconda channel)
-
Install beacon2-import using conda.
conda config --add channels bioconda conda config --add channels conda-forge conda install beacon2-import
-
Update pyEGA3, if needed, using conda.
conda update beacon2-import
-
Test your conda installation by running pyEGA3.
beacon2-import --help beacon2-search --help
Usage - beacon2-import
usage: beacon2_import.py [-h] [-H DATABASE_HOST] [-P DATABASE_PORT] [-a]
[-A DATABASE_AUTH_CONFIG] [-g] [-u GALAXY_URL]
[-k GALAXY_KEY] [-d DATABASE] [-c COLLECTION]
[-i INPUT_JSON_FILE] [-s] [-o] [-D] [-V] [-ca] [-cc]
[-r REMOVED_COLL_NAME]
Input arguments
optional arguments:
-h, --help show this help message and exit
Connection to MongoDB:
-H DATABASE_HOST, --db-host DATABASE_HOST
Hostname/IP of the beacon database
-P DATABASE_PORT, --db-port DATABASE_PORT
Port of the beacon database
Addvanced Connection to MongoDB:
-a, --advance-connection
Connect to beacon database with authentication
-A DATABASE_AUTH_CONFIG, --db-auth-config DATABASE_AUTH_CONFIG
JSON file containing credentials/config e.g.{'db_auth_
source':'admin','db_user':'root','db_password':'exampl
e'}
Connection to Galaxy:
-g, --galaxy Import data from Galaxy
-u GALAXY_URL, --galaxy-url GALAXY_URL
Galaxy hostname or IP
-k GALAXY_KEY, --galaxy-key GALAXY_KEY
API key of a galaxy user WITH ADMIN PRIVILEGES
Database Configuration:
-d DATABASE, --database DATABASE
The targeted beacon database
-c COLLECTION, --collection COLLECTION
The targeted beacon collection from the desired
database
Import Json Arguments:
-i INPUT_JSON_FILE, --input_json_file INPUT_JSON_FILE
Input the local path to the JSON file or it's name on
your Galaxy Hitory to import to beacon
store origin:
-s, --store-origins Make a local file containing variantIDs with the
dataset they stem from
-o , --origins-file Full file path of where variant origins should be
stored (if enabled)
control output:
-D, --debug
-V, --verbose Be verbose
Clear beacon database:
-ca, --clearAll Delete all data before the new import
-cc, --clearColl Delete specific collection before the new import
-r REMOVED_COLL_NAME, --removeCollection REMOVED_COLL_NAME
Define the collection name for deletion
Usage - beacon2-search
usage: beacon2_search.py [-h]
{sequence,range,gene,bracket,analyses,biosamples,cohorts,datasets,individuals,runs,cnv}
...
Query Beacon Database
positional arguments:
{sequence,range,gene,bracket,analyses,biosamples,cohorts,datasets,individuals,runs,cnv}
sequence Connect to MongoDB and perform sequence-based querys
to the genomicVariations collection
range Connect to MongoDB and perform range-based querys to
the genomicVariations collection
gene Connect to MongoDB and perform geneID-based querys to
the genomicVariations collection
bracket Connect to MongoDB and perform bracket-based querys to
the genomicVariations collection
analyses Connect to MongoDB and query the analyses collection
biosamples Connect to MongoDB and query the biosample collection
cohorts Connect to MongoDB and query the cohorts collection
datasets Connect to MongoDB and query the datasets collection
individuals Connect to MongoDB and query the individuals
collection
runs Connect to MongoDB and query the runs collection
cnv Connect to MongoDB and query the copy number variants
(cnv) collection
optional arguments:
-h, --help show this help message and exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file beacon2-import-2.2.0.tar.gz
.
File metadata
- Download URL: beacon2-import-2.2.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.31.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee7e29c8ea8a1ed96556b60504087e5955a1211fc790729ee2b85e894f7722ad |
|
MD5 | c9662f7fb4c7367e3cd59516ecf1100f |
|
BLAKE2b-256 | 333930f7f1486178290f2b52ed76536d1d73622b10f43a75de538457c37dbdb1 |
File details
Details for the file beacon2_import-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: beacon2_import-2.2.0-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.31.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9068346d019fcbf0785680f659f27ddb6731f748c3a3cc6aa072c13d706d94 |
|
MD5 | 8b687991cf96bb6398bf7f3a3b2b23dd |
|
BLAKE2b-256 | fe7f76a0a4888f447e11d9dbac85aeefb9e0df05a2e35d7f9c365761b7b14223 |