MonkPaul has asked for the wisdom of the Perl Monks concerning the following question:
The only thing is that im not entirely sure if these few lines are all i need to be able to read a DNA sequence file, extarct the sequences only and save them into an array.
sub get_File_Data() { my $web = new CGI; my $filehandle = $web->upload('upload'); my @file = <$filehandle>; my @sequences; my $seqIO = Bio::SeqIO->new(-fh => \*$filehandle, -format=>$format); my $fh = Bio::SeqIO->newFh(-fh => \*$filehandle, -format=>$format); my $sequence; while($fh != -1) { $sequence = stream->next_seq @sequences = $sequence; } }
I would be very grateful for any replies.
MonkPaul.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not sure about Bio::SeqIO
by blazar (Canon) on May 10, 2005 at 16:03 UTC | |
by MonkPaul (Friar) on May 10, 2005 at 16:21 UTC | |
by blazar (Canon) on May 10, 2005 at 16:33 UTC | |
by MonkPaul (Friar) on May 11, 2005 at 13:39 UTC | |
|
Re: Not sure about Bio::SeqIO
by stajich (Chaplain) on Jun 17, 2005 at 01:20 UTC |