plotFragmentSizes | R Documentation |
This function will plot a fragment size distribution for each sample. Only cells in the ArchRProject
are used when making this plot.
plotFragmentSizes(
ArchRProj = NULL,
groupBy = "Sample",
chromSizes = getChromSizes(ArchRProj),
maxSize = 750,
pal = NULL,
returnDF = FALSE,
threads = getArchRThreads(),
logFile = createLogFile("plotFragmentSizes")
)
ArchRProj |
An |
groupBy |
The name of the column in |
chromSizes |
A GRanges object of the chromosome lengths. See |
maxSize |
The maximum fragment size (in basepairs) to be included when plotting the fragment size distribution. |
pal |
A color palette representing the groups from groupBy in fragment size plot. |
returnDF |
A boolean value that indicates whether to return a |
threads |
An integer specifying the number of threads to use for calculation. By default this uses the number of threads set by |
logFile |
The path to a file to be used for logging ArchR output. |
# Get Test ArchR Project
proj <- getTestProject()
# Plot Frag Sizes
p <- plotFragmentSizes(proj, groupBy = "Clusters")
# PDF
plotPDF(p, name = "Frag-Sizes", ArchRProj = proj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.