Bug fix: count_ana_dispersal_event always returned 0 range contractions#16
Open
rurik-uniba wants to merge 2 commits intonmatzke:masterfrom
Open
Bug fix: count_ana_dispersal_event always returned 0 range contractions#16rurik-uniba wants to merge 2 commits intonmatzke:masterfrom
rurik-uniba wants to merge 2 commits intonmatzke:masterfrom
Conversation
…ns in Biogeographic stochastic mapping (originally reported by Ollie White in 2020)
Bug fix: count_ana_clado_events does not include e_total_list in ana_totals_list
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
count_ana_dispersal_event always returned zero range contractions in Biogeographic stochastic mapping (BSM).
This was originally reported by Ollie White in 2020.
############ test if there is at least 1 extinction event (range contraction) reconstructed in any of the 50 stochastic mapping
BSMs_w_sourceAreas <- readRDS('BSMs_w_sourceAreas.RDS') # output from simulate_source_areas_ana_clado on example data (but it is true for any dataset)
any(count_ana_clado_events(BSMs_w_sourceAreas$clado_events_tables, BSMs_w_sourceAreas$ana_events_tables, c("K","O","M","H"), c("K","O","M","H"))$e_totals_list != 0)
BSMs_w_sourceAreas.zip