Description Usage Arguments Value See Also Examples
View source: R/computeRefTissue.R
Compute reference control samples from OCTAD database using precomputed EncoderDF
models.
1 |
case_id |
vector of cases used to compute references. |
source |
by default set |
adjacent |
by default set to |
expSet |
input for expression matrix. By default NULL, since autoencoder results are used. |
n_varGenes |
number of genes used to select control cases. |
method |
one of two options is avaliable. |
control_size |
number of control samples to be selected. |
outputFolder |
path to output folder. By default, the function produces result files in working directory. |
cor_cutoff |
cut-off for correlation values, by default |
output |
if |
Return
control_id |
a vector of an appropriate set of control samples. |
Besides, if output=TRUE
, two files are created in the working directory:
case_normal_corMatrix.csv |
contains pairwise correlation between case samples vs control samples. |
case_normal_median_cor.csv |
contains median correlation values with case samples for returned control samples. |
1 2 3 4 5 6 7 8 9 10 11 | #select data
HCC_primary=subset(phenoDF,cancer=='Liver Hepatocellular Carcinoma'&
sample.type == 'primary'&data.source == 'TCGA')
#select cases
case_id=HCC_primary$sample.id
#computing reference tissue, by default using small autoEncoder, but can use custom expression set,
#by default output=TRUE and outputFolder option is empty,
#which creates control corMatrix.csv to working directory
control_id=computeRefTissue(case_id,outputFolder='',output=TRUE, expSet = "octad",control_size = 50)
#increase number of samples
control_id=computeRefTissue(case_id, control_size = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.