Bio::DB::Align::Pfam is implemented. This package uses the Pfam RESTful service to retrieve alignment sequences from Pfam.
Now this packages include these methods
new
get_Aln_by_id #retrieve the alignment using ID, and returns a Bio::SimpleAlign object
get_Aln_by_acc #retrieve the alignment using accession, and returns a Bio::SimpleAlign object
id2acc #conversion of id to accession
An example
my $dbobj=Bio::DB::Align->new(-db=>"pfam");
my $aln=$dbobj->get_Aln_by_acc("PF0001");
my $aln2=$dbobj->get_Aln_by_acc(-accession=>"PF0001",-alignment=>"full");
print $aln->length();
foreach my $seq ($aln->each_Seq) {
#do something
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment