add all cross progeny from folder page
[sgn.git] / lib / Bio / GeneticRelationships / Pedigree.pm
blob8e9cf2d9cf5571edb25cc89d37adec786c5343b3
1 package Bio::GeneticRelationships::Pedigree;
2 use strict;
3 use warnings;
4 use Moose;
5 use MooseX::FollowPBP;
6 use Moose::Util::TypeConstraints;
7 use Bio::GeneticRelationships::Individual;
9 =head1 NAME
11 Bio::GeneticRelationships::Pedigree - Pedigree of an individual
13 =head1 SYNOPSIS
15 my $variable = Bio::GeneticRelationships::Pedigree->new();
17 =head1 DESCRIPTION
19 This class stores an individual's pedigree.
21 =head2 Methods
23 =over
25 =cut
27 subtype 'CrossType',
28 as 'Str',
29 where {
30 $_ eq 'biparental' ||
31 $_ eq 'self' ||
32 $_ eq 'open' ||
33 $_ eq 'bulk' ||
34 $_ eq 'genetic_transformation' ||
35 $_ eq 'unknown' };
37 has 'name' => (isa => 'Str',is => 'rw', predicate => 'has_name', required => 1,);
38 has 'cross_type' => (isa =>'CrossType', is => 'rw', predicate => 'has_cross_type', required => 1,);
39 has 'female_parent' => (isa =>'Bio::GeneticRelationships::Individual', is => 'rw', predicate => 'has_female_parent');
40 has 'male_parent' => (isa =>'Bio::GeneticRelationships::Individual', is => 'rw', predicate => 'has_male_parent');
41 has 'selection_name' => (isa => 'Str',is => 'rw', predicate => 'has_selection_name');
44 ###
45 1; #do not remove
46 ###
48 =pod
50 =back
52 =head1 LICENSE
54 Same as Perl.
56 =head1 AUTHORS
58 Jeremy D. Edwards <jde22@cornell.edu>
60 =cut