in reply to BioPerl sequences

G'day wirlleyd,

Welcome to the Monastery.

While it is good that you have identified your expected output, it is also important to show your actual output. The things to include with your post, such that we can more readily help you, are described in these guidelines.

From your description, it would appear $id is 16; however, the documentation for get_Seq_by_id shows this:

Usage : $seq = $db->get_Seq_by_id('ROA1_HUMAN')

So, perhaps your $id should be some string (rather than an integer).

That same piece of documentation also shows:

Throws : "id does not exist" exception

I recommend you test for all potential exceptions; especially when the documentation alerts you to their existence.

-- Ken

Replies are listed 'Best First'.