Chobo.pm

filter: Statementstmt 100% 31 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 97.5% 39 / 40 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Chobo/ChadoData.pm ↑ Summary
1 package PomBase::Chobo;
2  
3 =head1 NAME
4  
5 PomBase::Chobo
6  
7 =cut
8  
9 =head1 SYNOPSIS
10  
11 Read an OBO file and store in a Chado database
12  
13 =head1 SUPPORT
14  
15 You can find documentation for this module with the perldoc command.
16  
17 perldoc PomBase::Chobo
18  
19  
20 You can also look for information at:
21  
22 =head1 LICENSE AND COPYRIGHT
23  
24 Copyright (C) 2013-2021 Kim Rutherford.
25  
26 This program is free software; you can redistribute it and/or modify it
27 under the terms of either: the GNU General Public License as published
28 by the Free Software Foundation; or the Artistic License.
29  
30 See http://dev.perl.org/licenses/ for more information.
31  
32 =cut
33  
34 1 our $VERSION = '0.041'; # VERSION
35  
36 1 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 1 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 ▶use Text::CSV;
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 1 ▶use PomBase::Chobo::ParseOBO;
Subroutine BEGIN: called CC=1 SCAR=0.0
42 1 ▶use PomBase::Chobo::ChadoData;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 1 ▶use PomBase::Chobo::OntologyData;
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45  
46 1 has dbh => (is => 'ro');
47 1 has ontology_data => (is => 'ro', required => 1);
48 1 has parser => (is => 'ro', init_arg => undef, lazy_build => 1);
49  
50 1 with 'PomBase::Chobo::Role::ChadoStore';
51  
52 sub _build_parser
53 2 ▶{
Subroutine _build_parser: called CC=1 SCAR=0.0
54 2 my $self = shift;
55  
56 2 return PomBase::Chobo::ParseOBO->new();
57 }
58  
59 sub read_obo
60 2 ▶{
Subroutine read_obo: called CC=1 SCAR=0.0
Pod undocumented
61 2 my $self = shift;
62 2 my %args = @_;
63  
64 2 my $filename = $args{filename};
65  
66 2 my $ontology_data = $self->ontology_data();
67 2 my $parser = $self->parser();
68  
69 2 $parser->parse(filename => $filename, ontology_data => $ontology_data);
70 }
71  
72 # sub chado_store() - from PomBase::Chobo::ChadoStore
73  
74 1 1;
« Chobo/ChadoData.pm ↑ Summary