Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
How do I use the ReadFromString command (Read 3278 times)
hyphyInfant
YaBB Newbies
*
Offline


Curious HyPhy user

Posts: 8
How do I use the ReadFromString command
Jun 16th, 2014 at 12:26pm
 
Hi there.

Either add '\n' (new-line characters), or use a multi-line string, like in the following example

Code:
dss = ">seq1\naaaaaaaa\n>seq2\ncccccccc\n>seq3\ngggggggg";
DataSet ds = ReadFromString(dss);

// or

dss = "
>seq1
aaaaaaaa
>seq2
cccccccc
>seq3
gggggggg";

DataSet ds = ReadFromString(dss);

 



Cheers,
Sergei
Back to top
 
 
IP Logged
 
Steven
Global Moderator
*****
Offline


Datamonkey Curious

Posts: 21
Gender: male
Re: How do I use the ReadFromString command
Reply #1 - Jun 16th, 2014 at 12:35pm
 
Hello hyphyinfant,

Please try:
Code:
dss = ">seq1\naaaaaaaa\n>seq2\ncccccccc\n>seq3\ngggggggg";  



FASTA format requires newlines.

Thanks,
Steven
Back to top
 
 
IP Logged