Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
Write a sequence data to file (Read 4516 times)
hyphyInfant
YaBB Newbies
*
Offline


Curious HyPhy user

Posts: 8
Write a sequence data to file
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.
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: Write a sequence data to file
Reply #1 - Apr 16th, 2014 at 4:14pm
 
Hi there,

Code:
DATA_FILE_PRINT_FORMAT = VALUE; //optional
fprintf (PATH_TO_FILE, myFilter); 


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
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
hyphyInfant
YaBB Newbies
*
Offline


Curious HyPhy user

Posts: 8
Re: Write a sequence data to file
Reply #2 - Apr 16th, 2014 at 10:30pm
 
Hello Sergei,

   Many thanks for your timely and well detailed response.

hyphyInfant.
Back to top
 
 
IP Logged