NAME
Bio::Cluster::SequenceFamily - Sequence Family object
SYNOPSIS
use Bio::SeqIO;use Bio::Cluster::SequenceFamily;use File::Spec;my $file = File::Spec->catfile('t','data','swiss.dat');my $seqio= Bio::SeqIO->new(-format => 'swiss',-file => $file);my @mem;while(my $seq = $seqio->next_seq){push @mem, $seq;}#create the familymy $family = Bio::Cluster::SequenceFamily->new(-family_id=>"Family_1",-description=>"Family Description Here",-annotation_score=>"100",-members=>\@mem);#access the familyforeach my $mem ($family->get_members){print $mem->display_id."\t".$mem->desc."\n";}#select members if members have a Bio::Species Objectmy @mem = $family->get_members(-binomial=>"Homo sapiens");@mem = $family->get_members(-ncbi_taxid => 9606);@mem = $family->get_members(-common_name=>"Human");@mem = $family->get_members(-species=>"sapiens");@mem = $family->get_members(-genus=>"Homo");
DESCRIPTION
This is a simple Family object that may hold any group of object. For more specific families, one should derive from FamilyI.
FEEDBACK
Email [email protected] for support and feedback.
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Shawn Hoon
Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a "_".
new
Title : newUsage : my $family = Bio::Cluster::SequenceFamily->new(-family_id=>"Family_1",-description=>"Family Description Here",-annotation_score=>"100",-members=>\@mem);Function: Constructor for SequenceFamily objectReturns : Bio::Cluster::SequenceFamily object
See Bio::Cluster::SequenceFamily.
version
Title : versionUsage : $family->version("1.0");Function: get/set for versionReturns : a string version of the family generated.
annotation_score
Title : annotation_scoreUsage : $family->annotation_score(100);Function: get/set for annotation_score whichrepresent the confidence in which theconsensus description has been assignedto the family.Returns : Bio::SimpleAlign
See Bio::SimpleAlign
alignment
Title : alignmentUsage : $family->alignment($align);Function: get/set for an alignment object representingthe multiple alignment of the members of the family.Returns : Bio::SimpleAlign
See Bio::SimpleAlign
tree
Title : treeUsage : $family->tree($tree);Function: get/set for an tree object representingthe phylogenetic tree of the family.Returns : Bio::Tree
See Bio::Tree
Bio::Cluster::FamilyI methods
family_score
Title : family_scoreUsage : Bio::Cluster::FamilyI->family_score(95);Function: get/set for the score of algorithm used to generatethe family if presentThis is aliased to cluster_score().Returns : the scoreArgs : the score
family_id
Title : family_idUsage : $family->family_id("Family_1");Function: get/set for family idThis is aliased to display_id().Returns : a string specifying identifier of the family
Bio::ClusterI methods
display_id
Title : display_idUsage :Function: Get/set the display name or identifier for the clusterReturns : a stringArgs : optional, on set the display ID ( a string)
description
Title : descriptionUsage : $fam->description("POLYUBIQUITIN")Function: get/set for the consensus description of the clusterReturns : the description stringArgs : Optional the description string
get_members
Title : get_membersUsage : Valid criteria:-common_name-binomial-ncbi_taxid-organelle-genus$family->get_members(-common_name =>"human");$family->get_members(-species =>"homo sapiens");$family->get_members(-ncbi_taxid => 9606);For now, multiple critieria are ORed.Will return all members if no criteria are provided.Function: get members using methods from L<Bio::Species>the phylogenetic tree of the family.Returns : an array of objects that are member of this family.
size
Title : sizeUsage : $fam->size();Function: get/set for the size of the family,calculated from the number of membersReturns : the size of the familyArgs :
cluster_score
Title : cluster_scoreUsage : $fam->cluster_score(100);Function: get/set for cluster_score whichrepresent the score in which the clusteringalgorithm assigns to this cluster.Returns : a number
Implementation specific methods
These are mostly for adding/removing/changing.
add_members
Title : add_membersUsage : $fam->add_member([$seq1,$seq1]);Function: add members to a familyReturns :Args : the member(s) to add, as an array or arrayref
remove_members
Title : remove_membersUsage : $fam->remove_members();Function: remove all members from a familyReturns : the previous array of membersArgs : none
members
Title : membersUsage : $members = $fam->members([$seq1,$seq1]);Function: Deprecated. Use add_members() or get_members() instead