Hello,
I am trying to rerun BioGeoBEARS from a script I was using this past January (which ran successfully), but this time with more taxa in my tree and a new matrix in the areas_allowed file. I am not sure if a package updated (I did not update BioGeoBEARS or R), but now my script won't run. There seems to be an issue with the areas_allowed.txt file, but I cannot figure out what it is. I keep getting the following error:
Error in tipranges_to_tip_condlikes_of_data_on_each_state(tipranges, phy, :
STOP ERROR in tipranges_to_tip_condlikes_of_data_on_each_state():
Your geography file has a tip range which is not allowed in your specified state space (states_list).
The tip is: CR
The 0-based areas in the range is/are: '0_5'
The letter codes in the range are: 'I_S'
Try editing either the geography file, the areas_allowed or areas_adjacency matrices, or the states_list (non-stratified) / lists_of_states_lists_0based (stratified).
I am following the tutorial and this worked just a few months ago; I tried rerunning the script from January, which worked perfectly and I left it untouched, and now get the same error. Attached are the files I am trying to work with. All taxon names in my tree match those in my other files. Any ideas on what is causing this error and how to fix this?
Any help would be appreciated!