This function will group export fragment files for each group in an ArchRProject.

getGroupFragments(
  ArchRProj = NULL,
  groupBy = "Clusters",
  threads = getArchRThreads(),
  logFile = createLogFile("getGroupFragments")
)

Arguments

ArchRProj

An ArchRProject object.

groupBy

A string that indicates how cells should be grouped. This string corresponds to one of the standard or user-supplied cellColData metadata columns (for example, "Clusters"). Cells with the same value annotated in this metadata column will be grouped together and their fragments exported to outputDirectory/GroupFragments.

threads

An integer specifying the number of threads for parallel.

logFile

The path to a file to be used for logging ArchR output.

Examples


# Get Test ArchR Project
proj <- getTestProject()

# Get Group BW
frags <- getGroupFragments(proj, groupBy = "Clusters")