Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Add tools for filtering trees and matrices by taxa #160

Closed
cjgrady opened this issue Feb 23, 2022 · 0 comments · Fixed by #213
Closed

Add tools for filtering trees and matrices by taxa #160

cjgrady opened this issue Feb 23, 2022 · 0 comments · Fixed by #213
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@cjgrady
Copy link
Contributor

cjgrady commented Feb 23, 2022

We want to create PD metrics for species having ancient traits for the ancient angiosperms project. I can do this by subsetting the PAM to only include species that have each of the traits and then running the stats from there.

This sort of functionality is basically the same process that I have used (and need to continue to use) for some of the other projects (example: subsettting all angiosperms to get palms or some other group for Stephen). It would probably also be used to subset using sites as well. This is something that I have had to do often enough that it makes sense to have a tool for it and then it can be part of an automated workflow.

Look at the sync PAM and tree scripts that I have written before to make sure I can compute multi-species statistics. These tools should either be incorporated into one, or they need to be able to replicate this functionality.

Also consider making these data wranglers for matrix and tree types.

Matrix filtering inputs:

  • Input matrix
  • Species, column names, or column indicies to keep
  • Sites to keep (either manually, by a rule, or intersecting with a shapefile or something)
  • Some method for ordering columns and maybe rows

Tree filtering:

  • Taxa to keep
  • Suppress unifurcations or not

This issue may need to be split out, especially for data wranglers. If that is the case, closing condition for this issue would be some version 1 scripts for matrix and tree filters.

@cjgrady cjgrady self-assigned this Feb 23, 2022
@cjgrady cjgrady added the enhancement New feature or request label Feb 23, 2022
@cjgrady cjgrady added this to the Version-3.x milestone Feb 23, 2022
@cjgrady cjgrady modified the milestones: Version-3.x, Version-3.1 Mar 15, 2022
@cjgrady cjgrady mentioned this issue Mar 29, 2022
11 tasks
@cjgrady cjgrady linked a pull request Mar 29, 2022 that will close this issue
11 tasks
@cjgrady cjgrady removed a link to a pull request Mar 31, 2022
11 tasks
@cjgrady cjgrady linked a pull request Apr 6, 2022 that will close this issue
11 tasks
@cjgrady cjgrady mentioned this issue Apr 6, 2022
11 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant