reduce_pathway: reduce_pathway

View source: R/redunce_pathway.R

reduce_pathwayR Documentation

reduce_pathway

Description

Sometimes, the gene lists for pathways are duplicated, it needs a lot of times to running scPagwas. We can used reduce_pathway to reduce them.

Usage

reduce_pathway(pathway_seed, pathway_list, remove_proporion = 0.7)

Arguments

pathway_seed

randome select the seed pathways, sometimes can be the unredundant pathway set.

pathway_list

the list of pathway need to reduce.

remove_proporion

the propotion of pathways after reduce.

Value

reduced pathway gene list

Author(s)

Chunyu Deng

Examples

reduce_pathway(
  pathway_seed = names(Genes_by_pathway_kegg)[sample(
    1:length(Genes_by_pathway_kegg), 20
  )],
  pathway_list = Genes_by_pathway_kegg,
  remove_proporion = 0.7
)

dengchunyu/scPagwas documentation built on Nov. 29, 2024, 2:53 p.m.