Skip to content

Instantly share code, notes, and snippets.

@dbolser
Created November 8, 2013 09:20
Show Gist options
  • Save dbolser/7368487 to your computer and use it in GitHub Desktop.
Save dbolser/7368487 to your computer and use it in GitHub Desktop.
Bah!
#!perl
use strict;
use warnings;
=pod
Script to grab the peptide sequence of a given ID from the DB
=cut
use Bio::EnsEMBL::Registry;
## This 'string' is used as a coderef
my $registry = 'Bio::EnsEMBL::Registry';
$registry->load_registry_from_db
( -host => 'mysql-eg-staging-1',
-port => 4160,
);
print $registry, "\n";
my $ta = $registry->
get_adaptor( 'Setaria italica', 'Core', 'translation' );
print $ta, "\n";
my $translation = $ta->fetch_by_stable_id('Si014024m');
print $translation, "\n";
print $translation->seq, "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment