addMatToSnap: Add bmat or gmat to snap

View source: R/SnapATACUtils.R

addMatToSnapR Documentation

Add bmat or gmat to snap

Description

Add bmat or gmat to snap

Usage

addMatToSnap(
  snap,
  cellGroup = NULL,
  group = NULL,
  outDir = NULL,
  matType = "bmat",
  gencode = "vM16",
  ndp = -1,
  ncores = 2,
  force = TRUE,
  binSize = 5000,
  coverFile = TRUE,
  prefix = "snap"
)

Arguments

snap

snap object

cellGroup

vector of characters cluster labels for snap default is NULL

group

characters which cluster needes default is NULL

outDir

characters default is NULL

matType

characters default is "bmat"

gencode

characters default is "vM16"

ndp

integer default is -1 if its value is larger than 0, then down sampling will be used.

ncores

integer default is 2

force

bool default is TRUE if add mat even the mat already exists

binSize

integer default is 5000

coverFile

bool default is TRUE when set it TRUE, it will cover the output file if exists.

prefix

characters default is "snap", which is used for output.

Value

snap object with corresponding mat.


beyondpie/pureRUtils documentation built on Jan. 10, 2023, 3:22 a.m.