Skip to contents

Removes genes present in all genomes from pangenome presence/absence matrix

Usage

remove_strict_core(pan_PA, rows_are_genes = NULL)

Arguments

pan_PA

a pangenome presence absence matrix

rows_are_genes

a logical indicating if genes are rows in the matrix

Value

returns a pangenome presence/absence matrix with the strict core removed

Examples

dim(example_pangenome_matrix)
#> [1] 1000  100
pan_mat <- example_pangenome_matrix %>% remove_strict_core()
#> [1] "you did not specify if rows or columns are genes"
#> [1] "I think rows_are_genes = TRUE"
dim(pan_mat)
#> [1] 993 100