{"id":3179,"date":"2016-06-27T09:53:01","date_gmt":"2016-06-27T09:53:01","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/?page_id=3179"},"modified":"2016-07-19T09:03:12","modified_gmt":"2016-07-19T09:03:12","slug":"bayestraits","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/bayestraits\/","title":{"rendered":"BayesTraits"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"http:\/\/www.evolution.rdg.ac.uk\/BayesTraits.html\">BayesTraits<\/a> is a program from the <a href=\"http:\/\/www.evolution.rdg.ac.uk\/index.html\">Reading Evolutionary Biology Group<\/a> for performing analyses of trait evolution among groups of species for which a phylogeny or sample of phylogenies is available. <\/p>\n<p>Version 2.0 is installed on the CSF.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>Details of the licence, restrictions, links to licence docs etc<\/p>\n<h2>Set up procedure<\/h2>\n<p>To access the software you must first load the modulefile:<\/p>\n<pre>\r\n# Serial version\r\nmodule load apps\/binapps\/bayes_traits\/2.0\r\n\r\n# Parallel (multicore) version\r\nmodule load apps\/binapps\/bayes_traits\/2.0-omp\r\n<\/pre>\n<h2>Running the application<\/h2>\n<p>Please do not run BayesTraits on the login node. Jobs should be submitted to the compute nodes via batch. You will need to create a <em>command file<\/em> which will perform the menu selections needed to run your job.<\/p>\n<p>If you wish to run BayesTraits interactively so that you can check you menu selections, please do so using <code>qrsh<\/code> which will start an <em>interactive<\/em> session on a compute node (see below for an example).<\/p>\n<h3>Interactive job<\/h3>\n<p>To run BayesTraits ineractively so you can make the menu selections, run the following from the CSF login node:<\/p>\n<pre>\r\nmodule load apps\/binapps\/bayes_traits\/2.0\r\nqrsh -l inter -l short -cwd -V BayesTraits <em>TreeFile<\/em> <em>DataFile<\/em>\r\n<\/pre>\n<p>This will run BayesTraits on a compute node, not the login node. It will read the input files from the current directory. If no interactive resources are available you will be asked to try again later. Note that interactive jobs can only run for up to one hour.<\/p>\n<p>Batch jobs should be used for longer processing (and parallel processing) &#8211; please see the examples below.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Make sure you have the modulefile loaded then create a batch submission script, for example:<\/p>\n<pre>\r\n#!\/bin\/bash\r\n#$ -S \/bin\/bash\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -V               # Job will inherit current environment settings\r\n\r\nBayesTraitsV2 <em>TreeFile<\/em> <em>DataFile<\/em> &lt; <em>CommandFile.txt<\/em>\r\n<\/pre>\n<p>The <em>CommandFile.txt<\/em> should contain your menu selections and any other commands needed by the application. For example:<\/p>\n<pre>\r\n1\r\n1\r\nrun\r\n<\/pre>\n<p>You can create plain text files on the CSF using <code>gedit<\/code> on the login node.<\/p>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h3>Parallel batch job submission<\/h3>\n<p>Make sure you have the modulefile loaded then create a batch submission script, for example:<\/p>\n<pre>\r\n#!\/bin\/bash\r\n#$ -S \/bin\/bash\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -V               # Job will inherit current environment settings\r\n#$ -pe smp.pe 8     # Job will use 8 cores (specify between 2 and 24 here).\r\n\r\n# Inform BayesTraits how many cores it can use ($NSLOTS automatically set to number given above)\r\nexport OMP_NUM_THREADS=$NSLOTS\r\n\r\nBayesTraitsV2_OpenMP <em>TreeFile<\/em> <em>DataFile<\/em> &lt; <em>CommandFile.txt<\/em>\r\n<\/pre>\n<p>See the serial example above for details of the <em>Command File<\/em>.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.evolution.rdg.ac.uk\/BayesTraitsV2.0Files\/TraitsV2Manual.pdf\">BayesTraits Online Manual (pdf)<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview BayesTraits is a program from the Reading Evolutionary Biology Group for performing analyses of trait evolution among groups of species for which a phylogeny or sample of phylogenies is available. Version 2.0 is installed on the CSF. Restrictions on use Details of the licence, restrictions, links to licence docs etc Set up procedure To access the software you must first load the modulefile: # Serial version module load apps\/binapps\/bayes_traits\/2.0 # Parallel (multicore) version module.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/bayestraits\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":31,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3179","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/3179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/comments?post=3179"}],"version-history":[{"count":4,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/3179\/revisions"}],"predecessor-version":[{"id":3211,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/3179\/revisions\/3211"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/31"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/media?parent=3179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}