add_deconvolution_training_model_music: add_deconvolution_training_model_music

Description Usage Arguments Value Examples

View source: R/Train_model_music.R

Description

add_deconvolution_training_model_music adds a new model

Usage

1
2
3
4
5
add_deconvolution_training_model_music(
    transcriptome_data,
    model_name,
    subtype_vector
)

Arguments

transcriptome_data

Path to transcriptomic data to be used for training. Has to contain the cell subtypes to which the similarity will be calculated. Note that the row names have to contain the HGNC symbols and the column names the sample names.

model_name

Name of the model.

subtype_vector

Character vector containing the subtype labels of the training data samples (transcriptome_data).

Value

Stores a new model in the package directory

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("Lawlor") # Data from Lawlor et al.
data(meta_data)

# extract the training sample subtype labels
subtype_vector = as.character(meta_data$Subtype) 
add_deconvolution_training_model_music(
    transcriptome_data = Lawlor,
    model_name = "my_model",
    subtype_vector = subtype_vector
)

RaikOtto/ArtDeco documentation built on Oct. 30, 2021, 6:20 p.m.