View source: R/reverse_species_order.R
reverse_species_order | R Documentation |
Returns an orthologs_df (data.frame) with reversed species order compared to the inputted orthologs_df. sp1 becomes sp2 and the otherway around. It intends at facilitating the integration of more than just two datasets. It outputs a data.frame shaped as following : sp1.ID,sp1.Chr,sp1.Start,sp1.End,sp1.Index,sp2.ID,sp2.Chr,sp2.Start,sp2.End,sp2.Index
reverse_species_order(orthologs_df)
orthologs_df |
orthologs_df dataframe. mutual best hits with genomic coordinates loaded with load_orthologs() |
dataframe composed of genomic coordinates and relative index of orthologs on both species
load_orthologs()
# basic usage of reverse_species_order :
orthologs_table <- system.file("extdata","my_orthologs.tab",package="macrosyntR")
my_orthologs <- read.table(orthologs_table,header=TRUE)
my_orthologs_reversed <- reverse_species_order(my_orthologs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.