NAME

Data::Type::Collection::Bio - datatypes for biology

SYNOPSIS

        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;

DESCRIPTION

Everything that is related to biological matters.

[Note] Also have a glimpse on 'Chem' collection.

TYPES

BIO::CODON (since 0.01.03)

DNA/RNA triplet

Filters

strip \s

Usage

triplet of DNA or RNA

BIO::DNA (since 0.01.03)

dna fragment

Filters

strip \s

Usage

sequence of [ATGC]

BIO::RNA (since 0.01.03)

RNA fragment

Filters

strip \s

Usage

sequence of [ATUC]

INTERFACE

CONTACT

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.

AUTHOR

Murat Uenalan, <muenalan@cpan.org>