reverse_species_order {macrosyntR}R Documentation

Reverse order of the species in an orthologs_df.

Description

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

Usage

reverse_species_order(orthologs_df)

Arguments

orthologs_df

orthologs_df dataframe. mutual best hits with genomic coordinates loaded with load_orthologs()

Value

dataframe composed of genomic coordinates and relative index of orthologs on both species

See Also

load_orthologs()

Examples

# 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)


[Package macrosyntR version 0.3.3 Index]