perc.calc.aux: Emprical p-values for a query cell

View source: R/EmpiricalPValueCalculation.R

perc.calc.auxR Documentation

Emprical p-values for a query cell

Description

This function returns emprical p-values of all possilbe celltypes for a query cells under test.times resampled backgrounds.

Usage

perc.calc.aux(
  l,
  cell.names,
  mtx.ct.num,
  background.mtx,
  mtx,
  cnms,
  test.times = 50
)

Arguments

l

The index of the sample cell of query

cell.names

A vector of sample cells' names

mtx.ct.num

The number of all possible cell types

background.mtx

The matrix of identity score of reference cells. The row number is the total number of reference cells and the column number is the number of total number of possible cell types

mtx

The matrix of identity scores of query cells. The row number is the total number of query cells and the column number is the number of total number of possible cell types

cnms

The names of all possible cell types

test.times

The number of times resampling the background. The default is test.times=50


morris-lab/Capybara documentation built on June 13, 2022, 10:33 p.m.