Description Usage Arguments Value See Also Examples
View source: R/fn_simulation.R
Sample mscor coefficients from pre-computed covariance matrices
1 2 | sample_zero_mscor_data(cov_matrices, number_of_samples = 100,
number_of_datasets = 100)
|
cov_matrices |
a list of pre-computed covariance matrices |
number_of_samples |
the number of samples available in the expression data |
number_of_datasets |
the number of mscor coefficients to be sampled from each covariance matrix |
a vector of mscor coefficients
sample_zero_mscor_cov
1 2 3 4 5 | #we select from the pre-computed covariance matrices in SPONGE
#100 for m = 5 miRNAs and gene-gene correlation 0.6
cov_matrices_selected <- precomputed_cov_matrices[["5"]][["0.6"]]
sample_zero_mscor_data(cov_matrices = cov_matrices_selected,
number_of_samples = 200, number_of_datasets = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.