writeConsensusRE: Writes annotated genomic regions

Description Usage Arguments Examples

Description

Creates a CSV file with genomic regions annoted as TSS-proximal and TSS-distal regions. categorized by cell type

Usage

1
writeConsensusRE(countsPeaks, con)

Arguments

countsPeaks

output generated from getCounts()

con

connection filepath

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
csvfile <- file.path(dir="yourfilepath", 'sampleinfo.csv')
sampleinfo <- loadCSVFile(csvfile)
samplePeaks <- loadBedFiles(sampleinfo)
consPeaks <- getConsensusPeaks(samplepeaks=samplePeaks,minreps=2)
TSSannot <- getTSS()
consPeaksAnnotated <- combineAnnotatePeaks(conspeaks = consPeaks,
                                          TSS = TSSannot,
                                          merge = TRUE,
                                          regionspecific = TRUE,
                                          distancefromTSSdist = 1500,
                                          distancefromTSSprox = 1000 )
con <- "annotatedRegions.csv"
writeConsensusRE(consPeaksAnnotated, con)

## End(Not run)

Mathelab/ALTRE documentation built on May 7, 2019, 3:41 p.m.