LRC3_INF: Get a list of results.

Description Usage Arguments Value

View source: R/LRC3_Alpha.R

Description

This function Performs calculations on the communication between different cell types and generate a list of results.The result list contains 13 matrices or vectors with each gives one type of information on the input data. The name of the 13 elements are contact_number_Remaining, scaled_contact_number_remaining, Remaining_contactINF, Remaining_scaled_contactINF, rem_LRpairs, LigandExpressionLevelINF, ReceptorExpressionLevelINF, ScaledLigandExpressionLevelINF, ScaledReceptorExpressionLevelINF, p, k, GroupedUniqueLRMatrix, GroupedNum_Colnames.

Usage

1
2
3
4
LRC3_INF(data_list, PvalAsThreshold = TRUE, FixedThreshold = 1,
  MultiThreshold = FALSE, PercentForPval = 0.95, PercentForPtest = 0.95,
  DefaultLRlist = TRUE, Species = c("Human", "Mouse"),
  LR_pairs = LR_pairs, ncore = 2)

Arguments

data_list

the input data generated by function PrepareData.

PvalAsThreshold

parameter used to set the Pval as the threshold. if PvalAsThreshold = TRUE,the algrithm will perform a random permutation process on the expression matrix, and get a threshold from the permutation for each of the gene. if PvalAsThreshold = FALSE,the algrithm will use one fixed threshold for all the genes.The defalt is TRUE.

FixedThreshold

threshold when using a fixed value instead of Pval. Uses should adust this threshold as needed.The defalt is set as FixedThreshold = 1.

MultiThreshold

Boolean value to set weather use multiple threshold or only one threshold

PercentForPval

threshold of the Pval. After the permutation on the expression matrix, the Pval for each of the gene is chosen by this threshold from the permutation procedure. The default is 0.95, which means the the value of the top 5 percent.

PercentForPtest

threshold for the P value test, the default is 0.95.

DefaultLRlist

if DefaultLRlist = TRUE, the a defult list containning 2570 LR pairs will be used. if DefaultLRlist = FALSE, users need to define their own parameter for of 'LR_pairs'.

Species

select the species that users are analyzing. LRC3 could analyzing both human and mouse datasets.

LR_pairs

the imput LRpairs users have to provide when setting the DefaultLRlist = FALSE The user can also choose the Membrane or NonMembrane LR pairs for both Mouse and Human that curated and included in this package, by setting LR_pairs = Human_Membrane or LR_pairs = Human_NonMembrane for Human, and LR_pairs = Mouse_Membrane, LR_pairs = Mouse_NonMembrane for Mouse.

ncore

the number of cores to be used

Value

LRC3_list a list that contains 13 elements. 1st element is the contact number between different cell types. 2nd element is the scaled contact number between different cell types. 3rd element is an array containing the information of ligand-receptor pairs used between different cell types. 4th element is an array containing the scaled information of ligand-receptor pairs used between different cell types. 5th element is the ligand-receptor names that are used in the input dataset. 6th element is the expression level of ligand that are used in each cell type. 7th element is the expression level of receptor that are used in each cell type. 8th element is the scaled expression level of ligand that are used in each cell type. 9th element is the scaled the expression level of receptor that are used in each cell type. 10th element is the threshold for ligand. 11th element is the threshold for receptor. 12th element is the expression matrix ordered by cell type. 13th element is the index of cell types. 14th element is the contact number between each cell type after testing the significance of the total contact number


XiaojuanShen/LRC3 documentation built on May 25, 2019, 6:26 p.m.