Description Usage Arguments Details Value Examples
View source: R/spagi2_master.R
This function creates a homology matrix between two species by retrieving the homology table and then converting it into a sparse matrix.
1 2 3 4 5 6 | get_homology_matrix_new(
species1,
species2,
homology.table,
seq.identity = FALSE
)
|
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 |
This function creates a homology matrix between two species by retrieving the homology table and then converting it into a sparse matrix.
This function returns a sparse matrix where rows represent the genes in species 1 and columns the genes in species 2.
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]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.