| 1 | # -*-CPerl-*- | ||||||||||
| 2 | # Last changed Time-stamp: <2018-11-23 17:43:57 mtw> | ||||||||||
| 3 | |||||||||||
| 4 | package Bio::ViennaNGS::Subtypes; | ||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use Bio::ViennaNGS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Bio::DB::Fasta; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use Params::Coerce (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | ▶ | use version; our $VERSION = version->declare("$Bio::ViennaNGS::VERSION"); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | subtype 'Bio::ViennaNGS::MyFasta' => as class_type('Bio::DB::Fasta'); | |||||||||
| 13 | |||||||||||
| 14 | coerce 'Bio::ViennaNGS::MyFasta' | ||||||||||
| 15 | => from 'Str' | ||||||||||
| 16 | 0 | ▶ | => via { Bio::DB::Fasta->new($_) } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 17 | => from 'Object' | ||||||||||
| 18 | 0 | ▶ | => via {$_ -> isa('Bio::DB::Fasta') ? $_ : Params::Coerce::coerce ('Bio::DB::Fasta', $_); }; | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
| |||||||||||
| 19 | |||||||||||
| 20 | subtype 'Bio::ViennaNGS::PlusOrMinus', | ||||||||||
| 21 | as 'Str', | ||||||||||
| 22 | 0 | ▶ | where { /[\+\-\.]/ }, | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 23 | 0 | ▶ | message { "[SUBTYPE ISSUE]: expecting '+','-', or '.', however ($_) is neither."}; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 24 | |||||||||||
| 25 | subtype 'Bio::ViennaNGS::ZeroOrOne', | ||||||||||
| 26 | as 'Int', | ||||||||||
| 27 | 0 | ▶ | where { $_ == 0 or $_ == 1 }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 28 | 0 | ▶ | message { "[SUBTYPE ISSUE]: expecting '0' or '1', however ($_) is neither." }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||