R/fromOrthogroups.R
fromOrthogroups.RdRead Orthologues results as a list This function is under-development.
fromOrthogroups(orthogroups, annoGR_list, query_species = 1, split = ", ")A dataframe with the gene ids for each orthologues group
A GRangesList object with the gene information. The names of each element should be contain all the gene ids saved in the orthogroups parameter. For each element, the 'gene_name' should be available in the metadata.
The species used as queryGR in getGeneCluster.
character vector used to split the gene ids in the dataframe of orthogroups parameter.
a list of queryGR and homologsList used by getGeneCluster.
orthogroups <- read.delim(
system.file('extdata/orthofinder/Orthogroups.tsv.gz',
package='geneClusterPattern'),
row.names=1)
annoGR_list <- readRDS(
system.file('extdata/orthofinder/grange.obj.rds',
package='geneClusterPattern'))
colnames(orthogroups) <- names(annoGR_list)
hres <- fromOrthogroups(orthogroups, annoGR_list)