Skip to content

rarefaction() produces the same maximum value for all the permutations #9

@matrs

Description

@matrs

Hello,
thanks for this library, it's been very useful to me.
I'm working with a table of orthougroups from orthofinder, which looks like this when converted into a matrix to use it with micropan v2.1

                                   OG0000000 OG0000001 OG0000002 OG0000003 OG0000004
GCF_000153905.1_ASM15390v1_genomic         7         5         5         5         4
GCF_000157975.1_ASM15797v1_genomic         6         6         3         0         2
GCF_000424085.1_ASM42408v1_genomic         7         8         3         6         4
GCF_000466565.1_ASM46656v1_genomic         9         7         6         5         4
GCF_000484655.1_ASM48465v1_genomic        17        13        14        11         8

When I compute the rarefaction curves with rar_tbl_all <- rarefaction(m_all, n.perm = 1000) , I noticed that the boxplots always have the same maximum value for every permutation. When I checked the rar_table_all, I see that for every permutation, It has multiple values equal to 14596:

> colSums(rar_tbl_all ==  14596)[1:10]
Genome  Perm1  Perm2  Perm3  Perm4  Perm5  Perm6  Perm7  Perm8  Perm9 
     0      2     14    117     80     52    186    206    150     71 

rarification_dist_sm

What could be a cause for this behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions