HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> Write a sequence data to file
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1397587402

Message started by hyphyInfant on Apr 15th, 2014 at 11:43am

Title: Write a sequence data to file
Post by hyphyInfant on Apr 15th, 2014 at 11:43am
Hi,

     I am simulating codon sequence data and I will, for example, like to be able to confirm what the simulated data look like by being able to write and save it as a ".txt" file, say. Hence, should I wish to use the data any other time I could simply call it using the "ReadDataFile" command. I tried using "fprintf" and I only got a summary containing the number of sites, species, distinct sites, etc. Any assistance will be appreciated.

hyphyInfant,
Thanks in advance.

Title: Re: Write a sequence data to file
Post by Sergei on Apr 16th, 2014 at 4:14pm
Hi there,

[code]
DATA_FILE_PRINT_FORMAT = VALUE; //optional
fprintf (PATH_TO_FILE, myFilter);[/code]
where 'myFilter' is DataSetFilter (not a DataSet). The values for the format (default is NEXUS) environment variable are given here. Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login.

Sergei

Title: Re: Write a sequence data to file
Post by hyphyInfant on Apr 16th, 2014 at 10:30pm
Hello Sergei,

   Many thanks for your timely and well detailed response.

hyphyInfant.

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.