SplitData: Selection of samples for training

Description Usage Arguments Details Value

View source: R/GenewiseMethod.R

Description

SplitData selects a portion (ratio) of samples (columns in data) to be used as training set

Usage

1
SplitData(data, ratio = .7, write.to.file = FALSE, train.only = TRUE)

Arguments

data

matrix; raw counts (genes as rows and samples as columns)

ratio

numeric; ratio of the samples to be used for training

write.to.file

logical; should the output be written to a file?

train.only

logical; if TRUE define only a training dataset, if FALSE writes both training and validation sets (defaults to TRUE)

Details

Selects a portion (ratio) of samples (columns in data) to be used as training set and writes to file 'training_raw.txt'.

Value

matrix containing raw counts (genes as rows and samples as columns)


anacarolinaleote/ADImpute documentation built on May 18, 2021, 10:11 p.m.