View source: R/correlation-based_diagnostics.R
calculate_sample_corr_distr | R Documentation |
Calculates correlation for all pairs of the samples in data matrix, labels as replicated/same_batch/unrelated in output columns (see "Value").
calculate_sample_corr_distr(data_matrix, sample_annotation,
repeated_samples = NULL, biospecimen_id_col = "EarTag",
sample_id_col = "FullRunName", batch_col = "MS_batch")
data_matrix |
features (in rows) vs samples (in columns) matrix, with
feature IDs in rownames and file/sample names as colnames.
See "example_proteome_matrix" for more details (to call the description,
use |
sample_annotation |
data frame with:
.
See |
repeated_samples |
vector of sample IDs to evaluate, if |
biospecimen_id_col |
column in |
sample_id_col |
name of the column in |
batch_col |
column in |
dataframe with the following columns, that
are suggested to use for plotting in
plot_sample_corr_distribution
as plot_param
:
replicate
batch_the_same
batch_replicate
batches
other columns are:
sample_id_1
& sample_id_2
, both
generated from sample_id_col
variable
correlation
- correlation of two corresponding samples
batch_1
& batch_2
or analogous,
created the same as sample_id_1
corr_distribution = calculate_sample_corr_distr(data_matrix = example_proteome_matrix,
sample_annotation = example_sample_annotation,
batch_col = 'MS_batch',biospecimen_id_col = "EarTag")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.