5 use SGN
::Model
::Cvterm
;
8 has
'bcs_schema' => ( isa
=> 'Bio::Chado::Schema',
13 has
'cross_stock_id' => (isa
=> "Int",
18 sub get_cross_relationships
{
20 my $crs = $self->bcs_schema->resultset("Stock::StockRelationship")->search( { object_id
=> $self->cross_stock_id } );
22 my $maternal_parent = "";
23 my $paternal_parent = "";
26 foreach my $child ($crs->all()) {
27 if ($child->type->name() eq "female_parent") {
28 $maternal_parent = [ $child->subject->name, $child->subject->stock_id() ];
30 if ($child->type->name() eq "male_parent") {
31 $paternal_parent = [ $child->subject->name, $child->subject->stock_id() ];
33 if ($child->type->name() eq "member_of") {
34 push @progeny, [ $child->subject->name, $child->subject->stock_id() ];
37 return ($maternal_parent, $paternal_parent, \
@progeny);