pgxLoader | R Documentation |
This function loads various data from Progenetix
database via the Beacon v2 API with some extensions (BeaconPlus).
pgxLoader(
type = NULL,
output = NULL,
biosample_id = NULL,
individual_id = NULL,
filters = NULL,
limit = 0,
skip = NULL,
dataset = NULL,
codematches = FALSE,
save_file = FALSE,
filename = "variant",
num_cores = 1,
domain = "http://progenetix.org",
entry_point = "beacon"
)
type |
A string specifying output data type. Available options are "biosamples", "individuals", "analyses", "g_variants", "cnv_frequency", "cnv_fraction", and "sample_count". The options "biosamples", "individuals", and "analyses" return corresponding information. "g_variants" returns variants data. The options "cnv_frequency", "cnv_fraction" and "sample_count" are based on data in Progenetix, returning precomputed CNV frequency, CNV fraction per sample, and the count of samples for the given filter, respectively. |
output |
A string specifying output data format. The available options depend on the |
biosample_id |
Identifiers used in the query database for identifying biosamples. |
individual_id |
Identifiers used in the query database for identifying individuals. |
filters |
Identifiers used in public repositories, bio-ontology terms, or custom terms such as c("NCIT:C7376", "PMID:22824167").
When multiple filters are used, they are combined using AND logic when the parameter |
limit |
Integer to specify the number of returned profiles. Default is 0 (return all). |
skip |
Integer to specify the number of skipped profiles. E.g. if skip = 2, limit=500, the first 2*500 =1000 profiles are skipped and the next 500 profiles are returned. Default is NULL (no skip). |
dataset |
A string specifying the dataset to query from the Beacon response. Default is NULL, which includes results from all datasets. |
codematches |
A logical value determining whether to exclude samples from child concepts of specified filters in the ontology tree.
If TRUE, only samples exactly matching the specified filters will be included. Do not use this parameter when |
save_file |
A logical value determining whether to save variant data as a local file instead of direct return. Only used when the parameter |
filename |
A string specifying the path and name of the file to be saved. Only used if the parameter |
num_cores |
Integer to specify the number of cores used for the variant query. Only used when the parameter |
domain |
A string specifying the domain of the query data resource. Default is "http://progenetix.org". |
entry_point |
A string specifying the entry point of the Beacon v2 API. Default is "beacon", resulting in the endpoint being "http://progenetix.org/beacon". |
Data from Progenetix database
## query metadata
biosamples <- pgxLoader(type="biosamples", filters = "NCIT:C3512")
## query variants
seg <- pgxLoader(type="g_variants", biosample_id = "pgxbs-kftvgx4y")
## query CNV frequency
freq <- pgxLoader(type="cnv_frequency", output ='pgxfreq', filters="NCIT:C3512")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.