Skip to content

Instantly share code, notes, and snippets.

Created August 6, 2010 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/511625 to your computer and use it in GitHub Desktop.
Save anonymous/511625 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl -w
use strict;
use warnings;
use Bio::Index::Blast;
my $file = shift;
print STDERR "Indexing blast files.\n";
my $indexfile = $file . ".index";
my $index
= Bio::Index::Blast->new( -filename => $indexfile, -write_flag => 1 );
$index->make_index($file);
my $result = $index->fetch_report('kb8_rep_c2');
my $id = $result->query_name();
print "$id\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment