-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checks for missing alpha diversity indices in multiple functions
This GitHub push updates several functions in the codebase to include checks for missing alpha diversity indices: 1. In the `generate_alpha_change_boxplot_pair` function: - Added a check to verify if all specified `alpha.name` values are present in `alpha.obj`. - If any missing alpha diversity indices are found, an error is thrown with a message listing the missing indices. 2. Similar checks for missing alpha diversity indices were added to the following functions: - `generate_alpha_change_test_long` - `generate_alpha_change_test_pair` - `generate_alpha_test_long` - `generate_alpha_test_pair` 3. In the `generate_alpha_test_single` function: - Updated the example code to include "ace" in the `alpha.name` parameter. - Modified the code to use `subset_data.obj` instead of `data.obj` when subsetting data based on `time.var` and `t.level`. - Added a check for missing alpha diversity indices in `alpha.obj`, similar to the other functions. - Updated the test list generation to use `alpha.name` instead of indexing `alpha.obj`. These changes ensure that the functions gracefully handle cases where the specified alpha diversity indices are not available in the provided `alpha.obj`. By adding these checks, the code becomes more robust and informative, throwing an error with a clear message when missing indices are encountered.
- Loading branch information
1 parent
45f0d78
commit 9006226
Showing
6 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters