Bioperl: Creating a SeqIO object
Ewan Birney
birney@ebi.ac.uk
Fri, 26 May 2000 14:03:02 +0100 (GMT)
On Fri, 26 May 2000, gert thijs wrote:
> Hello,
>
> I hope this is not a stupid question, but I still haven't captured all the
> gory details of perl yet.
> I am developping a web interface where one can enter some DNA sequences that
> will be processed. Those DNA sequences should be in Fasta format. When I read
> the inputs of the web interface the sequences are stored as one long string in
> a variable $dnaseq. Now I am first writing this string to a file and then I
> use the filehandle to read the sequences into a new SeqIO object.
> But I was wondering if I can do this without writing $dnaseq to a file.
Sure - go
$seqobj = Bio::Seq->new( -id =>'temp_id',
-seq => $dnaseq);
does this answer solve the problem?
>
> tnx,
> Gert Thijs
>
> --
> ==========================================================
> + Gert Thijs gert.thijs@esat.kuleuven.ac.be +
> + +
> + Dept. Elektrotechniek ESAT-SISTA +
> + Kardinaal Mercierlaan, 94 +
> + B-3001 HEVERLEE Belgium +
> + Tel : +32-16-32 18 84 ---- Fax : +32-16-32 19 70 +
> ==========================================================
> =========== Bioperl Project Mailing List Message Footer =======
> Project URL: http://bio.perl.org/
> For info about how to (un)subscribe, where messages are archived, etc:
> http://www.techfak.uni-bielefeld.de/bcd/Perl/Bio/vsns-bcd-perl.html
> ====================================================================
>
-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>.
-----------------------------------------------------------------
=========== Bioperl Project Mailing List Message Footer =======
Project URL: http://bio.perl.org/
For info about how to (un)subscribe, where messages are archived, etc:
http://www.techfak.uni-bielefeld.de/bcd/Perl/Bio/vsns-bcd-perl.html
====================================================================