| 1 | # -*-CPerl-*- | ||
| 2 | # Last changed Time-stamp: <2018-11-23 18:01:42 mtw> | ||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | Bio::ViennaNGS::FeatureBase - A Moose Role for BED compliance | ||
| 7 | |||
| 8 | =head1 SYNOPSIS | ||
| 9 | |||
| 10 | package MyClass; | ||
| 11 | use Moose; | ||
| 12 | |||
| 13 | with 'Bio::ViennaNGS::FeatureBase'; | ||
| 14 | |||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | L<Bio::ViennaNGS::FeatureBase> is a simple L<Moose::Role> which | ||
| 19 | indicates whether or not the B<start> attribute of any of the | ||
| 20 | L<Bio::ViennaNGS> Feature* classes is zero-based or one-based | ||
| 21 | (i.e. whether or not the Feature adheres to standard BED notation). | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | package Bio::ViennaNGS::FeatureBase; | ||
| 26 | |||
| 27 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 1 | ▶ | use Bio::ViennaNGS; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 1 | ▶ | use Bio::ViennaNGS::Subtypes; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | 1 | ▶ | use version; our $VERSION = version->declare("$Bio::ViennaNGS::VERSION"); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | |||
| 32 | 1 | has 'base' => ( | |
| 33 | is => 'rw', | ||
| 34 | isa => 'Bio::ViennaNGS::ZeroOrOne', | ||
| 35 | default => 0, | ||
| 36 | ); | ||
| 37 | |||
| 38 | 1 | 1; | |
| 39 | |||
| 40 | =head1 DEPENDENCIES | ||
| 41 | |||
| 42 | =over | ||
| 43 | |||
| 44 | =item L<Moose::Role> | ||
| 45 | |||
| 46 | =back | ||
| 47 | |||
| 48 | =head1 BUGS | ||
| 49 | |||
| 50 | Please report any bugs or feature requests through the web interface | ||
| 51 | at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Bio-ViennaNGS>. I | ||
| 52 | will be notified, and then you'll automatically be notified of | ||
| 53 | progress on your bug as I make changes. | ||
| 54 | |||
| 55 | |||
| 56 | =head1 SUPPORT | ||
| 57 | |||
| 58 | You can find documentation for this module with the perldoc command. | ||
| 59 | |||
| 60 | perldoc Bio::ViennaNGS::FeatureBase | ||
| 61 | |||
| 62 | |||
| 63 | You can also look for information at: | ||
| 64 | |||
| 65 | =over 2 | ||
| 66 | |||
| 67 | =item * RT: CPAN's request tracker (report bugs here) | ||
| 68 | |||
| 69 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Bio-ViennaNGS> | ||
| 70 | |||
| 71 | =item * Search metaCPAN | ||
| 72 | |||
| 73 | L<https://metacpan.org/release/Bio-ViennaNGS> | ||
| 74 | |||
| 75 | =back | ||
| 76 | |||
| 77 | =head1 AUTHORS | ||
| 78 | |||
| 79 | Michael T. Wolfinger, C<< <michael at wolfinger.eu> >> | ||
| 80 | |||
| 81 | =head1 LICENSE AND COPYRIGHT | ||
| 82 | |||
| 83 | Copyright 2018 Michael T. Wolfinger <michael@wolfinger.eu> and | ||
| 84 | <michael.wolfinger@univie.ac.at> | ||
| 85 | |||
| 86 | This library is free software; you can redistribute it and/or modify | ||
| 87 | it under the same terms as Perl itself, either Perl version 5.10.0 or, | ||
| 88 | at your option, any later version of Perl 5 you may have available. | ||
| 89 | |||
| 90 | This program is distributed in the hope that it will be useful, but | ||
| 91 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 92 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 93 | General Public License for more details. | ||
| 94 | |||
| 95 | =cut | ||
| 96 | |||
| 97 | |||