FP_test: FindPairs object permutate test Permutate Test on all...

Description Usage Arguments Value

View source: R/Generics.R

Description

FindPairs object permutate test Permutate Test on all intercellular interaction

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
FP_test(object, ...)

## Default S3 method:
FP_test(object, ...)

## S3 method for class 'FindPairs'
FP_test(object, Asample_size = 3000,
  Bsample_size = 3000, target = c("STP", "CCpTP", "TPpCC"),
  fdr = 0.01, fdr_method = "BH", permutation_number = 5000,
  dopar = FALSE, dopar.numbers = 2, random.seed = 42, ...)

Arguments

object

An object

...

Arguments passed to other methods

Asample_size

Permutating the number of cell expressing symbol A. Default 200.We generalized the concept of permutation test. In the traditional permutation test, the number of random substitutions should be the total number of corresponding targets(the target cell type). But, in our permutation test, we set this number as an adjustable parameter. This paramterhave two funcitons: one is to provide a fixed background distribution, and other is to reduce the impact of low number cells in the permutation.

Bsample_size

Permutating the number of cell expressing symbol B. Default 200'

target

This agrument is corresponding to the agrument target of function Calculate_score.If the data is "stp", setting target = "STP", this will do the permutation test under this condition. If this is the "mtp" data, the "target" has two potential parameters. 1. "CCpTP", cell-cell per time point: this will do the permutation test for the interaciton of different cell types at time poit. 2. "TPpCC", time point per cell-cell: this will do the permutation test for the cell-cell interaction of different time points for each cell-cell interaciton.

fdr

Filter for significant pvalue. Default 0.01

fdr_method

Corrected method in multiple hypothesis testing. Default "BH".

permutation_number

The number of permutation. Default 5000

dopar

Whether Parallel computation is allowed. Default FLASE.

dopar.numbers

If the do.par = TRUE, multiple cores will be used for parallel operations. Default 2.

random.seed

Set the random seed. Default 42

Value

Returns FindPairs object with the pvalue calculation stored in the Output slot


fenghuijian/FindPairs documentation built on Nov. 4, 2019, 12:40 p.m.