import_peaks_as_df: Read peak file as dataframe with selected columns

Description Usage Arguments Value Examples

View source: R/p03_data_import_functions.R

Description

Read peak file as dataframe with selected columns

Usage

1
2
3
4
5
6
7
import_peaks_as_df(
  file,
  peakFormat = "narrowPeak",
  peakCols = c("peakId", "peakEnrichment", "peakPval"),
  sampleId = NULL,
  column_suffix = TRUE
)

Arguments

file

Peak file

peakFormat

one of c("narrowPeak", "broadPeak", "bed")

peakCols

Column to select in dataframe. Column names should be from this list: c("peakChr", "peakStart", "peakEnd", "peakId", "peakScore", "peakStrand", "peakEnrichment", "peakPval", "peakQval", "peakSummit"). Default: c("peakId", "peakEnrichment", "peakPval")

sampleId

sampleId to be used as suffix in column names

column_suffix

Logical: whether to add sampleId suffix to column name. Default: TRUE

Value

A dataframe with columns specified

Examples

1

lakhanp1/chipmine documentation built on March 6, 2021, 9:06 a.m.