in reply to Re^4: Get Fasta file with Protein Sequences given a file with Genbank Ids using Perl
in thread Get Fasta file with Protein Sequences given a file with Genbank Ids using Perl

Do you have a sub called write_sequence in your main package? No. So you can't call it!

Perhaps your object has a method of that name?

Edit: Find where you copy-pasted write_sequence from and refer to the docs for that module. You'll need to use the module in your program. I leave it to you to figure out which module it is. Hint: it's not ... LOL, just saw you figured it out. Nice!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^6: Get Fasta file with Protein Sequences given a file with Genbank Ids using Perl
by dimitris852 (Acolyte) on Mar 21, 2016 at 05:38 UTC
    All it needed was to add use Bio:perl; and now works!

    thanks!!