General purpose Panelapp package
Project description
panelapp
Allows for lots of operations for Panelapp queries
Install
pip install panelapp
Import
from panelapp import Panelapp
from panelapp import api
from panelapp import queries
How to use
from panelapp import Panelapp
panel = Panelapp.Panel(269) # Create panel object, confidence level defaults to 3, version is the lastest
panel.get_info() # Return dict with general data about the panel
# For the 4 following methods you can specify the confidence levels
panel.get_genes() # Return all the gene symbols/ids
panel.get_gene_symbols() # Return gene symbols according to confidence level choosen when creating the panel object
panel.get_hgnc_ids() # Return hgnc ids according to confidence level choosen when creating the panel object
panel.get_ensembl_ids("GRCh37") # Return ensembl ids according to confidence level choosen when creating the panel object
panel.update_version("3.2", "2") # Update the panel with version and confidence level given
panel.is_signedoff() # Return date of signedoff or False if not signedoff
panel.get_data() # Return all the data the API sent, you can use that there's something that is lacking in my methods
panel.write() # Write a file for the panel containing the most important data (according to me at least, you can customize this yourself using the .get_data() method)
from panelapp import queries
panels = queries.get_all_panels() # Return dict {panel_id: Panelapp.Panel} of all panels in Panelapp
signedoff_panels = queries.get_all_signedoff_panels() # Return dict {panel_id: Panelapp.Panel} of signedoff panels. Note that this only returns the latest versions on public panels.
matches, differences = queries.compare_versions(Panelapp.Panel, "2.7") # Return tuple of match and differences between the given panel and another panel version
panel = queries.get_signedoff_panel(269) # Return panel object with latest signedoff version
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
panelapp-0.7.4.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file panelapp-0.7.4.tar.gz
.
File metadata
- Download URL: panelapp-0.7.4.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bedf69e3321f6e794c7e0bb8de9f7a24fe09e374df53745791c9a9fc0b56960 |
|
MD5 | cd52051bcb77cfe15c3f04e1b0bb416c |
|
BLAKE2b-256 | 8f27f7c37b626ff1646ab3735c21ff7aad8ed9ebc8426e87719e50eb0edf770e |
File details
Details for the file panelapp-0.7.4-py3-none-any.whl
.
File metadata
- Download URL: panelapp-0.7.4-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db1c09f0abd1b644b042bddc3f69db9a570330005d1f8100db5d331fbc9e0b6f |
|
MD5 | 5a0d4c0f2b1cabb798cfd5ea5d95d0ec |
|
BLAKE2b-256 | 690fd7efc2cc8ebfe974dcf09f58a87600872f5a445b83609bcb60eb9ba7e7ed |