PERL: How I can "save information in a hash (%)"?
Hello!
I don't know, how I should do these tasks, please, help me!
Tasks:
#Per sequence, save information in a hash
#Go over hash, and print information of sequences one by one
Here is my script:
#!/usr/bin/perl
use strict;
use Bio::SeqIO;
my $sequence = "sequence.fa";
my $multifasta = Bio::SeqIO ->new (-file => "<$sequence",-format=> "fasta");
while (my $seq= $multifasta->next_seq()) {
my $na = $seq->display_id;
my $des = $seq->description;
my $ss = $seq->seq;
print "$na \n $des \n $ss \n_\n";
}
...and...what I should write next?
Thank you
• 1,252 views
•
link
0 answers
No answers yet.
Log in to answer this question.
This question is way too vague... I would advise to rephrase it and be more precise on what you really want to do
Looks like homework to me.
Hello darya_boris!
We believe that this post does not fit the main topic of this site.
This looks like a homework/assignment question. Please clarify.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
Not to beat a dead horse, but if it is an assignment, it does not appear to say "use bioperl". You may find it better to use the perl by itself first before resorting to bioperl