Last login: Tue Jul 31 15:04:38 on ttys000
fsen-pbrlimac-4:~ gemmill$ cd desktop
fsen-pbrlimac-4:desktop gemmill$ cd crypto
fsen-pbrlimac-4:crypto gemmill$ ls
crypto.nxs crypto.xml
fsen-pbrlimac-4:crypto gemmill$ for((i=1; i<=6; i++)); do sed "s/crypto.log/crypto_$i.log/; s/crypto.trees/crypto$i.trees/" crypto.xml > crypto_"$i".xml; java -jar /Applications/BEAST\2.5.0/lib/beast.jar crypto_"$i".xml; done
Error: Unable to access jarfile /Applications/BEAST2.5.0/lib/beast.jar
Error: Unable to access jarfile /Applications/BEAST2.5.0/lib/beast.jar
Error: Unable to access jarfile /Applications/BEAST2.5.0/lib/beast.jar
Error: Unable to access jarfile /Applications/BEAST2.5.0/lib/beast.jar
Error: Unable to access jarfile /Applications/BEAST2.5.0/lib/beast.jar
Error: Unable to access jarfile /Applications/BEAST2.5.0/lib/beast.jar
fsen-pbrlimac-4:crypto gemmill$
Here are my "instructions"
RUN BEAST2.4.5 VIA TERMINAL
· Open Terminal and this document in Word (so you can copy and past)
· In Terminal
o Change the directory to desktop(cd=change directory), then change directory to folder PITTO. These two steps will look like this –– copy and paste the blue text or type it yourself
o If you want to check that you are in the right place you can use lswhich will list all the files in the current directory[1].
fsen-pbrlimac-2:~ PBRLgeneral$ cd desktop [hit return]
fsen-pbrlimac-2:~ desktop PBRLgeneral$ cd PITTO [hit return]
You can then use the command lsto check that your .xml file is in this folder.
fsen-pbrlimac-2:~ PITTO PBRLgeneral$ ls [hit return]
àfsen-pbrlimac-2:~ PITTO PBRLgeneral$ PITTO.xml
Then copy and paste this script by Veronika Boskova[2]substitiuting your file name for PITTO (see examples below).
Pittosporumfile
for((i=1; i<=6; i++)); do sed "s/pitto.log/pitto_$i.log/; s/pitto.trees/pitto$i.trees/" pitto.xml > pitto_"$i".xml; java -jar /Applications/BEAST\ 2.5.0/lib/beast.jar pitto_"$i".xml; done
[hit return]
for((i=1; i<=6; i++)); do sed "s/pittos.log/pittos_$i.log/; s/pittos.trees/pittos$i.trees/" pittos.xml > pittos_"$i".xml; java -jar /Applications/BEAST\ 2.5.0/lib/beast.jar pittos_"$i".xml; done
Cryptocaryafile
for((i=1; i<=6; i++)); do sed "s/crypto.log/crypto_$i.log/; s/crypto.trees/crypto$i.trees/" crypto.xml > crypto_"$i".xml; java -jar /Applications/BEAST\2.5.0/lib/beast.jar crypto_"$i".xml; done
[hit return]
The file should be running now and will run five consecutive times, each starting with a new/different seed so that each search starts from a different point. There are a number of errors that can prevent the file from running, so you will need to trouble shoot a bit. Be sure that
· Your .log and .tree file names in BEAUTi (and hence the .xml file) are the same as they are in the script
· BEAST2 requires Java 8, and you will also need to have jdk1.8.0_121.jdk installed in your Library/Java/JavaVirtualMachines folder. Check for version updates as appropriate.
[1]For more information see here: http://lifehacker.com/5633909/who-needs-a-mouse-learn-to-use-the-command-line-for-almost-anything; http://www.grymoire.com/Unix/Sed.html
[2]PhD Studnet, Department of Biosystems Science and Engineering,ETH Zürich
--
You received this message because you are subscribed to the Google Groups "beast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users...@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users+unsubscribe@googlegroups.com.
To post to this group, send email to beast-users@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "beast-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beast-users/lLlY2Ql2g8M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beast-users+unsubscribe@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users+unsubscribe@googlegroups.com.
To post to this group, send email to beast-users@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "beast-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beast-users/lLlY2Ql2g8M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beast-users+unsubscribe@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "beast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users...@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.
<crypto.xml>
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users+unsubscribe@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.
<crypto.xml>
--
You received this message because you are subscribed to a topic in the Google Groups "beast-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beast-users/lLlY2Ql2g8M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beast-users+unsubscribe@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.