Description Usage Arguments Value Examples
View source: R/function_prepar2my_pack.R
From global to DOAGDC environment
1 2 3 4 5 6 7 8 9 | table2_doagdc(
table,
data_type,
normalization = TRUE,
data_base,
tumor,
tumor_data = TRUE,
env
)
|
table |
A matrix or data frame with data used in this package (i.e Gene, isoform and protein expression, methylation and mutation data) |
data_type |
Type of data. It could be
|
normalization |
Logical value where |
data_base |
If the data was downloaded from GDC/Legacy data base, however not using DOAGDC, please specified which data base. If the data do not come from GDC/Legacy data base, and it is related with genome version GRCh 37, please insert "legacy" in this argument. Otherwise, if it is related with genome version GRCh 38, please insert "GDC" in this argument. |
tumor |
A character string contaning one of the 33 tumors available in
the TCGA project. For instance, the |
tumor_data |
Logical value where |
env |
A character string containing the environment name that should be used. If none has been set yet, the function will create one in global environment following the standard criteria:
|
the objects imported are stored inside the determined environment name.
1 2 3 4 5 6 7 8 9 10 11 12 13 | patient <- paste0(paste0("patient_", LETTERS[1:4]))
genes <- paste0("gene_", seq(1, 5))
# generate a simulated gene expression matrix
example_gene_table <- matrix(
runif(20, 0.0, 90.5), 5, 4, TRUE,
list(genes, patient)
)
# without env created
table2_doagdc(example_gene_table,
data_type = "gene",
data_base = "legacy",
tumor = "UCS"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.