Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
Sequences (Read 1234 times)
scherrer
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 8
Sequences
Mar 3rd, 2010 at 8:53am
 
This may be a really simple question, but I can't figure it out.

I am trying to calculate the physical sites rates using HYPHY and I wrote a function to do so.  However, the function needs to take the sequence as an argument.  Is there any way to access the sequences from the input file as a string?

Thanks,

Mike
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: Sequences
Reply #1 - Mar 3rd, 2010 at 9:50am
 
Hi Mike,

If you define a datafilter object (dsf in the example below), you can then use the GetDataInfo accessor to retrieve sequences and other attributes of the object.

Code:
for (seqID = 0; seqID < dsf.species; seqID = seqID+1)
{
GetDataInfo(sequence,dsf,seqID); /* stores the sequence at index seqID, 0 - based, into variable 'sequence' */
}

 



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