Created
November 8, 2013 09:20
-
-
Save dbolser/7368487 to your computer and use it in GitHub Desktop.
Bah!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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