tf_dist: Transcription Factor Distance

Description Usage Arguments Details Value Author(s) See Also Examples

Description

tf_dist Calculate upstream transcription factor binding site distance between 2 genes.

Usage

1
tf_dist(gene1, gene2, geneList)

Arguments

gene1

String, HGNC symbol for the first gene.

gene2

String, HGNC symbol for the second gene.

geneList

A list of lists of transcription factors than have binding sites upstream of genes. Generated by calling fetchData("GTRDgeneTFs").

Details

Calculate the distance/dissimilarity of upstream transcription factors of 2 genes. Similarity is taken to be the Jaccard Index of the set overlap between the 2 transcription factors sets. Distance is then taken to be 1 - similarity.

Value

The similarity score of gene1 and gene2: number of shared upstream transcription factors.

Author(s)

Rachel Silverstein (aut)

See Also

fetchData For format of geneList

Examples

1
2
3
4
5
6
# Calculate the transcription factor distance of 2 related genes "BRCA1" and "BRCA2"
## Not run: 
geneList <- fetchData("GTRDgeneTFs")
tf_dist("BRCA1", "BRCA2", geneList)

## End(Not run)

hyginn/BCB420.2019.ESA documentation built on May 29, 2019, 1:23 p.m.