HyPhy message board | |
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> Batch files http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1312819536 Message started by jhughes on Aug 8th, 2011 at 9:05am |
Title: Batch files Post by jhughes on Aug 8th, 2011 at 9:05am
Hi,
I'm new to HYPHY. I am trying to create batch files for processing 100s of files. So far I have managed to do a batch for testing the best model using AIC. Now I want to use SLAC to calculate dN/dS and whether there are any sites under selection using the best model selected using modeltest. The QuickSelectionDetection.bf requests a ModelString. What is the best way to get and use the output from the MotelTest batch file and in particular the ModelString to use in the QuickSelectionDetection batch files. Cheers, Joseph |
Title: Re: Batch files Post by jhughes on Aug 10th, 2011 at 12:49am
In the end I succeeded by doing this, where every other line of the list of files provided is the ModelString from model test.
Code (]/* This is a HY-PHY Batch File for producing the SLAC analyses. */ fileToExe = HYPHY_BASE_DIRECTORY + "TemplateBatchFiles" + DIRECTORY_SEPARATOR + "QuickSelectionDetection.bf"; /* a list of file paths */ SetDialogPrompt ( "Provide a list of files to process:" ); fscanf ( PROMPT_FOR_FILE, "Lines", _inDirectoryPaths ); fprintf (stdout, "[READ ", Columns (_inDirectoryPaths), " file path lines):
I will try your more elegant approach. Cheers, Joseph |
Title: Re: Batch files Post by jhughes on Aug 10th, 2011 at 3:31am
And just in case someone finds this useful, here is the more elegant way that Sergei suggested:
Code (]/* a list of file paths */ SetDialogPrompt ( "Provide a list of files to process:" ); fscanf ( PROMPT_FOR_FILE, "Lines", _inDirectoryPaths ); fprintf (stdout, "[READ ", Columns (_inDirectoryPaths), " file path lines):
|
HyPhy message board » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2024. All Rights Reserved. |