get_homology_matrix_new: get_homology_matrix_new

Description Usage Arguments Details Value Examples

View source: R/spagi2_master.R

Description

This function creates a homology matrix between two species by retrieving the homology table and then converting it into a sparse matrix.

Usage

1
2
3
4
5
6
get_homology_matrix_new(
  species1,
  species2,
  homology.table,
  seq.identity = FALSE
)

Arguments

species1

Species 1 name, in the form 'hsapiens'

species2

Species 2 name, in the form 'hsapiens'

homology.table

Homology table for two species

seq.identity

Boolean of whether or not to retrieve sequence identity information, defaults to FALSE

Details

This function creates a homology matrix between two species by retrieving the homology table and then converting it into a sparse matrix.

Value

This function returns a sparse matrix where rows represent the genes in species 1 and columns the genes in species 2.

Examples

1
2
3
human.zebrafish.homology.table<-get_homology_table_new('hsapiens','drerio')
human.zebrafish.homology.matix <- get_homology_matrix_new('hsapiens','drerio', human.zebrafish.homology.table)
print(data.matrix(human.zebrafish.homology.matix[1:5,1:5]))

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