[Bioperl-l] Bio::Index::PDB

Shawn Hoon shawnh at stanford.edu
Mon Oct 13 21:18:13 EDT 2003


Hi,
I wrote an indexer along the lines of the sequence index modules  for 
PDB structure files.
Basically a lot of copying from Bio::Index::Fasta

Basically 2 modules added:

Bio::Index::AbstractStructure (which inherits from Bio::Index::Abstract)
Bio::Index::PDB

Usage:

     use Bio::Index::PDB;
     use strict;

     my $Index_File_Name = shift;
     my $inx = Bio::Index::PDB->new('-filename' => $Index_File_Name);
     my $out = Bio::Structure::IO->new('-format' => 'pdb','-fh' => 
\*STDOUT);

     foreach my $id (@ARGV) {
         my $struct= $inx->fetch($id); # Returns Bio::Structure object
         $out->write_structure($struct);
     }

Is this along the lines of how indexers are implemented? If so, I will 
go ahead and commit them.


shawn



More information about the Bioperl-l mailing list