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 = "variants.tsv",
num_cores = 1,
domain = "http://progenetix.org",
entry_point = "beacon"
)
type |
A string specifying the type of output data. Available options include:
|
output |
A string specifying the format of the output data. The available options depend on the value of 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 |
limit |
Integer to specify the number of returned profiles. Default is |
skip |
An integer specifying the number of profiles to skip. For example, if |
dataset |
A string specifying the dataset to query from the Beacon response. Default is |
codematches |
A logical value indicating whether to exclude samples from child concepts of the specified filters in the ontology tree.
If |
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. This parameter is used only when |
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 |
entry_point |
A string specifying the entry point of the Beacon v2 API. Default is |
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.