error: tip range not allowed in states_list

91 views
Skip to first unread message

Justin Bernstein

unread,
May 11, 2022, 1:55:00 PM5/11/22
to BioGeoBEARS
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!
geo3.data
areas_allowed.txt

Julia Dupin

unread,
Aug 16, 2022, 10:15:38 AM8/16/22
to BioGeoBEARS
Hi,

I've never seen this error, but it could be because you have tips with the same name. Did you have duplicated names in your January dataset? CR for example appears twice.

Julia

Reply all
Reply to author
Forward
0 new messages