Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore creating new object class for minimum spanning networks #62

Open
zkamvar opened this issue Aug 18, 2015 · 0 comments
Open

Explore creating new object class for minimum spanning networks #62

zkamvar opened this issue Aug 18, 2015 · 0 comments

Comments

@zkamvar
Copy link
Member

zkamvar commented Aug 18, 2015

The minimum spanning networks at the moment contain three elements:

  1. The graph
  2. The population names
  3. The colors used for populations

The second element is fairly redundant with the third since the third contains the names of the populations.

One slightly irritating thing about the minimum spanning networks is the fact that, if you want to check a different stratum, you have to rerun the network even though the basic structure of the network is the same. The only difference the stratum makes is the distribution of the pie pieces.

To counteract this, the new object could contain the following:

  • The graph
  • The stratification data frame
  • The multilocus genotype assignment
  • A list of named color vectors for each stratification

This setup would give the minimum amount of information to be able to explore the graph using all strata and it could be used directly with plot_poppr_msn() without needing the genind object.

If we REALLY wanted to make it a standalone object, we could also include the distance matrix with it, but that would make the object much larger than it needs to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant