generate_sparse_matrix: generate_sparse_matrix

Description Usage Arguments Details Value Examples

View source: R/spagi2_master.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

humayun2017/SPAGI2 documentation built on Aug. 5, 2020, 12:06 a.m.