This function is used to read copy number profile for preparing CNV signature analysis.

cnv_readprofile(input, is_dir = FALSE, pattern = NULL,
  ignore_case = FALSE, sep = "\t", cols = c("Chromosome",
  "Start.bp", "End.bp", "modal_cn"), have_sampleCol = TRUE,
  sample_col = "sample")

Arguments

input

a data.frame or a file or a directory contains copy number profile

is_dir

is input a directory?

pattern

an optional regular expression used to select part of files if input is a directory, more detail please see list.files function.

ignore_case

logical. Should pattern-matching be case-insensitive?

sep

the field separator character. Values on each line of the file are separated by this character.

cols

four characters used to specify chromosome, start position, end position and copy number value, respectively. Default use names from ABSOLUTE calling result.

have_sampleCol

Whether input have sample column or not. This argument must be TRUE and sample_col also properly be assigned when input is a file or a data.frame.

sample_col

a character used to specify the sample column name.

Value

a list contains absolute copy-number profile for multiple samples.