Created
April 15, 2011 10:57
-
-
Save dbolser/921515 to your computer and use it in GitHub Desktop.
a simple BioPerl script
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
| #!/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