saveConsData {umiAnalyzer}R Documentation

Save consensus data

Description

If save is set to TRUE data will be written to a csv file otherwise consensus data will be returned as a tibble.

Usage

saveConsData(
  object,
  save = FALSE,
  fileName = "consensus_data.csv",
  outDir = getwd(),
  delim = ";"
)

Arguments

object

UMIexperiment object

save

Logical. Should data be saved to file? Default is FALSE.

fileName

String. Name of the file to be saved. Default is 'consensus_data.csv'

outDir

output directory, defaults to working directory

delim

Single character string, either ';' or ',' or tab

Value

A data table

Examples

library(umiAnalyzer)

main = system.file('extdata', package = 'umiAnalyzer')

samples <- list.dirs(path = main, full.names = FALSE, recursive = FALSE)

example <- createUmiExperiment(experimentName = 'example',mainDir = main,sampleNames = samples)

consensus_data <- saveConsData(object = example)
consensus_data



[Package umiAnalyzer version 1.0.0 Index]