I would like to import values from a text file to run a notebook. The notebook works fine when I cut and paste in all the input values manually. Here is a working version. But when I import the same the values from a text file using the Import
command I get vastly different outcomes (i.e. this mess).
To minimize possible errors I'm only trying to import the first of four requested input sections, so this post is only regarding the ratevector
element. The other input values I cut & pasted by hand.
I cannot figure out why the solutions are different when I import the rate vector
vs. cut and pasting the ratevector
.
As background, the original notebook was written by Townsend et. al. 2012 and should only calculate 3 values: probability of resolution prcortree
, probability of incorrect resolution princtree
& the probability of a polytomy prpolytomy
for a given dataset. Thank you for any help you can give! I hope I tagged this correctly.
Import[filename,"Lines"]
and post the first few lines? $\endgroup$