GenOO::Gene - Gene object
# This object represents a gene (collection of transcripts) # It extends the L<GenOO::GenomicRegion> object # To initialize my $gene = GenOO::Gene->new( name => undef, #required species => undef, strand => undef, #can be inferred from transcripts chromosome => undef, #can be inferred from transcripts start => undef, #can be inferred from transcripts stop => undef, #can be inferred from transcripts copy_number => undef, #defaults to 1 sequence => undef, description => undef, transcripts => reference to an array of L<GenOO::Transcript> objects );
GenOO::Gene describes a gene. A gene is defined as a genomic region (it has the strand, chromosome, start and stop attributes required by L<GenOO::GenomicRegion>) as well as collection of L<GenOO::Transcript> objects. The genomic location attributes can be inferred by the locations of the contained transcripts. The start position of the gene will be the smallest coordinate of all the contained transcripts etc. Whenever a transcript is added to a gene object the genomic coordinates of the gene are automatically updated. It is a good idea NOT to set the genomic location of the gene directly but to let it be inferred by the transcripts.
# Get gene information $gene->strand; # 1 $gene->chromosome; # chr6 $gene->start; # 29222487 $gene->stop; # 29225448
To install GenOO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GenOO
CPAN shell
perl -MCPAN -e shell install GenOO
For more information on module installation, please visit the detailed CPAN module installation guide.