getMATfromDataFrame {DChIPRep} | R Documentation |
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.
getMATfromDataFrame(df, ID = "name")
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. |
a matrix with the ID column removed
data(exampleSampleTable) directory <- file.path(system.file("extdata", package="DChIPRep")) df <- lapply(file.path(directory, exampleSampleTable$Input), read.delim)[[1]] mat <- getMATfromDataFrame(df)