This file reads in the tsv file with numerical metadata and converts it into a matrix.
The file should be organized as follows: samples (in rows) x metadata (in columns). Metadata needs to be converted to numerical values by the user.
Metadata may be optional for the SIAMCAT workflow, but are necessary for heatmap displays, see model.interpretation.plot
read.meta(fn.in.meta)
fn.in.meta | name of the tsv file containing metadata |
---|
sample_data
object
# run with example data fn.meta <- system.file('extdata', 'num_metadata_crc_study-pop-I_N141_tax_profile_mocat_bn_specI_clusters.tsv', package = 'SIAMCAT') meta_data <- read.meta(fn.meta)