generate_sparse_matrix: generate_sparse_matrix

Description Usage Arguments Details Value Examples

View source: R/XGSA.R

Description

This function generates a sparse matrix from a table with two or three columns: ID ID Value(optional). It uses the simple_triplet_matrix structure from the package 'slam'.

Usage

1
generate_sparse_matrix(homology_table)

Arguments

homology_table

Table of homology mapping between two species, as retrieved by the function get_homology_matrix()

Details

This function generates a sparse matrix from a table with two or three columns: ID ID Value(optional). It uses the simple_triplet_matrix structure from the package 'slam'.

Value

This function return a sparse matrix

Examples

1
Not used trivially

VCCRI/XGSA documentation built on March 5, 2021, 10:22 p.m.