Data::Type::Collection::Bio - datatypes for biology
print "found dna" if shift and is BIO::DNA; valid 'AUGGGAAAU', BIO::RNA; valid 'ATGCAAAT', BIO::DNA; try { typ ENUM( qw(DNA RNA) ), \( my $a, my $b ); print "a is typ'ed" if istyp( $a ); $a = 'DNA'; # $alias only accepts 'DNA' or 'RNA' $a = 'RNA'; $a = 'xNA'; # throws exception untyp( $alias ); } catch Data::Type::Exception with { printf "Expected '%s' %s at %s line %s\n", $e->value, $e->type->info, $e->file, $e->line; }; valid 'AUGGGAAAU', BIO::RNA; valid 'ATGCAAAT', BIO::DNA;
Everything that is related to biological matters.
[Note] Also have a glimpse on 'Chem' collection.
DNA/RNA triplet
strip \s
triplet of DNA or RNA
dna fragment
sequence of [ATGC]
RNA fragment
sequence of [ATUC]
Sourceforge http://sf.net/projects/datatype is hosting a project dedicated to this module. And I enjoy receiving your comments/suggestion/reports also via http://rt.cpan.org or http://testers.cpan.org.
Murat Uenalan, <muenalan@cpan.org>
To install Data::Type, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Type
CPAN shell
perl -MCPAN -e shell install Data::Type
For more information on module installation, please visit the detailed CPAN module installation guide.