functional_association: Compute microbe-microbe functional association index

Description Usage Arguments Value References See Also Examples

Description

This function calculates microbe-microbe functional association index for two genomes.

Usage

1
functional_association(families1, families2, network = reference_network)

Arguments

families1

character vector of gene family names from STRING 10.0 present in first genome.

families2

character vector of gene family names from STRING 10.0 present in second genome.

network

data frame encoding associations between gene families. Should contain 2 or 3 variables: node1 gene family one, node2 gene family two, weight weight of the edge.

Value

Microbe-microbe functional association index for two genomes which encode families1 and families1. This index represents fraction of edges which connect gene families present in one of the compared genomes to gene families present in another out of all of the edges in the gene family network encoded by one of the two genomes exclusively.

References

  1. Kamneva OK. Genome composition of microbes predicts their co-occurrence in the environment. In review.

See Also

similarity, similarity_by_set.

Examples

1
2
3
4
data(families_Bf)
data(families_Er)
association_index = functional_association(families1 = families_Bf, families2 = families_Er, network = reference_network)
association_index

olgakamneva/genomics2ecology documentation built on May 24, 2019, 12:51 p.m.