getMATfromDataFrame: Helper function to turn a data.frame into a matrix and remove...

Description Usage Arguments Value Examples

View source: R/dataImport.R

Description

This function takes a data.frame, with the genomic features (e.g. transcripts or genes) in the rows and the positions upstream and downstream of the TSS in the columns as well as a column ID containing a genomic feature ID and returns the data.frame with the ID column removed. The input for this function are tables obtained after running the Python import script.

Usage

1
getMATfromDataFrame(df, ID = "name")

Arguments

df

the input data frame with positions in the columns and the genomic features in the rows.

ID

the name of the ID column to be removed.

Value

a matrix with the ID column removed

Examples

1
2
3
4
5
data(exampleSampleTable)
directory <- file.path(system.file("extdata", package="DChIPRep"))
df  <- lapply(file.path(directory, exampleSampleTable$Input), 
read.delim)[[1]]
mat <- getMATfromDataFrame(df)

DChIPRep documentation built on Nov. 17, 2017, 10:08 a.m.