plot_macrosynteny {macrosyntR}R Documentation

Plot Macro-synteny

Description

This is a function to generate the contingency table of an MBH dataframe and apply fischer test to calculate the significant associations.

Usage

plot_macrosynteny(macrosynt_df, sp1_label = "", sp2_label = "")

Arguments

macrosynt_df

dataframe of contingency table with p-values calculated by the compute_macrosynteny() function

sp1_label

character. The name of the species1 to display on the plot

sp2_label

character. The name of the species2 to put on the plot

Value

ggplot2 object

See Also

compute_macrosynteny()

Examples

# basic usage of plot_macrosynteny : 

orthologs_table <- system.file("extdata","my_orthologs.tab",package="macrosyntR")

my_orthologs <- read.table(orthologs_table,header=TRUE)
                               
my_macrosynteny <- compute_macrosynteny(my_orthologs)

plot_macrosynteny(my_macrosynteny,
                  sp1_label = "B. floridae",
                  sp2_label = "P. yessoensis")


[Package macrosyntR version 0.3.3 Index]