getCellCORange: getCellCORange

View source: R/getCellCORange.R

getCellCORangeR Documentation

getCellCORange

Description

It finds the crossover intervals for a selected cell

Usage

getCellCORange(co_count, cellBarcode)

Arguments

co_count,

'GRanges' or 'RangedSummarizedExperiment' object,

cellBarcode,

the selected cell's barcode

Value

GRange object containing the crossover intervals for the selected cell

Author(s)

Ruqian Lyu

Examples

  demo_path <-paste0(system.file("extdata",package = "comapr"),"/")
s1_rse_state <- readHapState("s1",chroms=c("chr1"),
                             path=demo_path,barcodeFile=NULL,minSNP = 0,
                             minlogllRatio = 50,
                             bpDist = 100,maxRawCO=10,
                             minCellSNP = 0)
s1_counts <- countCOs(s1_rse_state)

co_ranges <- getCellCORange(cellBarcode = "BC1",
                            co_count = s1_counts)

ruqianl/comapr documentation built on Oct. 27, 2023, 5:12 a.m.