CombineInteractions: Combine pdCor output

Description Usage Arguments Details Value Examples

Description

Combines output from calculateConditionalCors for multiple batches/normalizations.

Usage

1
	combineInteractions(list_of_interaction_tables)

Arguments

list_of_interaction_tables

list of output from calculateConditionalCors

Details

Counts the number of times TF-TF interactions were inferred across multiple batches or normalizations. And counts the number of times each TF-TF-Target trio was inferred across multiple batches.

Value

list containing two tables : pair2consists with columns "TF1", "TF2", "recurr" pair2targets with columns "TF1", "TF2", "Target", "recurr"

"recurr" is the number of batches the relationship was obsered in.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
	set.seed(13)
	batchA_output <- data.frame(
		TF1=sample(c("A", "B", "C", "D"), 50, replace=TRUE),
		TF2=sample(c("A", "B", "C", "D"), 50, replace=TRUE),
		Target=sample(c("E", "F", "G", "E", "F"), 50, replace=TRUE)
		)
	batchA_output <- list(Int=unique(batchA_output))


	batchB_output <- data.frame(
		TF1=sample(c("A", "B", "C", "D"), 50, replace=TRUE),
		TF2=sample(c("A", "B", "C", "D"), 50, replace=TRUE),
		Target=sample(c("E", "F", "G", "E", "F"), 50, replace=TRUE)
		)
	batchB_output <- list(Int=unique(batchB_output))

	consensus <- combineInteractions(list(batchA_output, batchB_output));

tallulandrews/scTarNet documentation built on May 31, 2019, 2:27 p.m.