TagDist: TagDist

Description Usage Arguments Details Value Examples

View source: R/function.R

Description

If the cell barcode and the anntation of each cell are provided, this function can calculate the relationship between each cell type in three way

Usage

1
TagDist(tag, method = NULL)

Arguments

tag

List generate from TagProcess, for more see TagProcess

method

Denote which method to use:

  • "Jaccard"(default): calculate the weighted jaccard similarity of indels between each pair of groups;

  • "P": right-tailed test, compare the Indels intersection level with the hypothetical result generated from random editing, and the former is expected to be significantly higher than the latter;

  • "spearman": Spearman correlation of indels between each pair of groups

Details

Title

Value

2 figures are saved to show the distribution of INDEL and the relationship between groups respectively, the matrix of the relationship between groups is returned

Examples

1
2
3
4
5
tag_dist=TagDist(tag,method = "spearman")
tag_dist=TagDist(tag)
tag_dist=TagDist(tag,method = "Jaccard")
tag_dist=TagDist(tag,method = "P")
tag_dist=TagDist(tag,method = "spearman")

mana-W/LinTInd documentation built on Feb. 14, 2022, 10:13 a.m.