HyPhy message board | |
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> How do I use the ReadFromString command http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1402946791 Message started by hyphyInfant on Jun 16th, 2014 at 12:26pm |
Title: How do I use the ReadFromString command Post by hyphyInfant on 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); [/code] Cheers, Sergei |
Title: Re: How do I use the ReadFromString command Post by Steven on Jun 16th, 2014 at 12:35pm
Hello hyphyinfant,
Please try: [code]dss = ">seq1\naaaaaaaa\n>seq2\ncccccccc\n>seq3\ngggggggg"; [/code] FASTA format requires newlines. Thanks, Steven |
HyPhy message board » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2023. All Rights Reserved. |