plotTSSEnrichment.Rd
This function will plot a TSS enrichment plot for each sample. Cells in ArchRProject
are the only ones
used when making this plot.
plotTSSEnrichment(
ArchRProj = NULL,
groupBy = "Sample",
chromSizes = getChromSizes(ArchRProj),
TSS = getTSS(ArchRProj),
flank = 2000,
norm = 100,
smooth = 11,
pal = NULL,
returnDF = FALSE,
threads = getArchRThreads(),
logFile = createLogFile("plotTSSEnrichment")
)
An ArchRProject
object.
The name of the column in cellColData
to use for grouping cells together for summarizing.
A GRanges object of the chromosome lengths. See getChromSizes
for more info.
A GRanges
object containing the locations of stranded TSS regions. The default behavior is to try to retrieve
this information from the geneAnnotation
stored in the ArchRProject
.
An integer that specifies how far in bp (+/-) to extend the TSS for plotting.
An integer that specifies the number of base pairs from the ends of the flanks to be used for normalization.
For example if flank=2000
and norm=100
, the TSS insertions will be normalized by +/- 1900-2000 bp from the TSS.
An integer that indicates the smoothing window (in basepairs) to be applied to the TSS plot.
A color palette representing the groups from groupBy in TSS plot.
A boolean value that indicates whether to return a data.frame
containing the plot information
instead of plotting the TSS enrichment plot.
An integer specifying the number of threads to use for calculation. By default this uses the number of threads set by addArchRThreads()
.
The path to a file to be used for logging ArchR output.
# Get Test ArchR Project
proj <- getTestProject()
# Plot TSS
p <- plotTSSEnrichment(proj, groupBy = "Clusters")
# PDF
plotPDF(p, name = "TSS-Enrich", ArchRProj = proj)