1 package CXGN
::Pedigree
::ParseUpload
;
5 use Moose
::Util
::TypeConstraints
;
6 use Bio
::GeneticRelationships
::Pedigree
;
7 use Bio
::GeneticRelationships
::Individual
;
9 with
'MooseX::Object::Pluggable';
12 has
'chado_schema' => (
14 isa
=> 'DBIx::Class::Schema',
24 has
'parse_errors' => (
26 isa
=> 'ArrayRef[Str]',
27 writer
=> '_set_parse_errors',
28 reader
=> 'get_parse_errors',
29 predicate
=> 'has_parse_errors',
32 has
'_parsed_data' => (
35 writer
=> '_set_parsed_data',
36 predicate
=> '_has_parsed_data',
42 if (!$self->_validate_with_plugin()) {
43 print STDERR
"\nCould not validate cross file: ".$self->get_filename()."\n";
47 if (!$self->_parse_with_plugin()) {
48 print STDERR
"\nCould not parse cross file: ".$self->get_filename()."\n";
52 if (!$self->_has_parsed_data()) {
53 print STDERR
"\nNo parsed data for cross file: ".$self->get_filename()."\n";
56 return $self->_parsed_data();
59 print STDERR
"\nError parsing cross file: ".$self->get_filename()."\n";