Skip to content

Instantly share code, notes, and snippets.

@dbolser
Created April 15, 2011 10:57
Show Gist options
  • Select an option

  • Save dbolser/921515 to your computer and use it in GitHub Desktop.

Select an option

Save dbolser/921515 to your computer and use it in GitHub Desktop.
a simple BioPerl script
#!/usr/bin/perl -w
use strict;
use Bio::DB::SeqFeature::Store;
my $db = Bio::DB::SeqFeature::Store->
new( -adaptor => 'DBI::mysql',
-dsn => 'my_database:mysql.mysql.host.here.ac.uk',
-user => 'me',
-pass => 'secret',
);
my @features =
$db->features( -seq_id => 'chr10',
-start => 1,
-end => 1700000,
-type => 'gene',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment