Skip to content

How exactly does the p-value calculation work?  #87

@MikiSchikora

Description

@MikiSchikora

Good morning,

Thanks for developing this great tool. I am trying to understand more deeply how the phyC and syncronous methods work to be sure that it can be used on my data.

Reading your paper I came across this sentence (in the PhyC section): "For permutation tests to determine the significance of associations genotype transitions are randomized on the tree with probability proportional to the branch length. The number of edges where the permuted genotype mutation intersects with phenotype presence edges is recorded for each permutation;". My first question is:

Q1) Does the syncronous test also randomize genotype transitions with probability proportional to the branch length? This is not clear to me from the paper, although looking at the code I think that this is the case. Could you confirm this?

In addition, I think that I do not fully understand how exactly is this randomization done. After going over your code, I understood that, in each resample, you permute the genotype transitions across nodes without replacement, with an uneven probability that is proportional to the branch length of each node. This means that in each resample the array of permuted transitions will have the values from longer branches at the beginning (since they are picked first). I understand that you then map these resampled transitions to an array of nodes (each with a given phenotype transition), which will be used to calculate the empirical distribution of N. I have a question about this:

Q2) How exactly do you map this array of resampled transitions to the array of nodes (which I assume it is always the same)? Is it possible that you sort the array of nodes by edge length (in a descending way), so that the longer edges will more likely have resampled transitions from long edges?

I would really appreciate if you may clarify these questions. Thanks.

Miquel Àngel Schikora

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