Bio-RNA-BarMap

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

    configure_requires => {
        'Module::Build' => '0',
    },
    build_requires => {
        'Test::More'      => '0',
        'Test::Exception' => '0.43',
    },
    requires => {
        'Moose'                     => 2.2011,
        'MooseX::StrictConstructor' => 0.21,
        'namespace::autoclean'      => 0.28,
        'autodie'                   => 2.29,
        'Scalar::Util'              => 1.50,
        'List::Util'                => 1.50,
        'File::Spec'                => 3.75,
        'IPC::System::Simple'       => 1.25,
    },
    add_to_cleanup     => [ 'Bio-RNA-BarMap-*' ],
);

$builder->create_build_script();

META.json  view on Meta::CPAN

      },
      "runtime" : {
         "requires" : {
            "File::Spec" : "3.75",
            "IPC::System::Simple" : "1.25",
            "List::Util" : "1.5",
            "Moose" : "2.2011",
            "MooseX::StrictConstructor" : "0.21",
            "Scalar::Util" : "1.5",
            "autodie" : "2.29",
            "namespace::autoclean" : "0.28"
         }
      }
   },
   "provides" : {
      "Bio::RNA::BarMap" : {
         "file" : "lib/Bio/RNA/BarMap.pm",
         "version" : "0.04"
      },
      "Bio::RNA::BarMap::Mapping" : {
         "file" : "lib/Bio/RNA/BarMap/Mapping.pm",

META.yml  view on Meta::CPAN

    file: lib/Bio/RNA/BarMap/Mapping/Type.pm
    version: '0.04'
requires:
  File::Spec: '3.75'
  IPC::System::Simple: '1.25'
  List::Util: '1.5'
  Moose: '2.2011'
  MooseX::StrictConstructor: '0.21'
  Scalar::Util: '1.5'
  autodie: '2.29'
  namespace::autoclean: '0.28'
version: '0.04'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

lib/Bio/RNA/BarMap/Mapping.pm  view on Meta::CPAN

package Bio::RNA::BarMap::Mapping;
our $VERSION = '0.04';

use 5.012;
use warnings;

use Moose;
use MooseX::StrictConstructor;
use namespace::autoclean;

use autodie qw(:all);
use Scalar::Util qw(reftype);
use List::Util qw(any);
use File::Spec;

use Bio::RNA::BarMap::Mapping::MinMappingEntry;
use Bio::RNA::BarMap::Mapping::FileMappingEntry;


lib/Bio/RNA/BarMap/Mapping/FileMappingEntry.pm  view on Meta::CPAN

# Mini class for entries of the file mapping hash.
package Bio::RNA::BarMap::Mapping::FileMappingEntry;
our $VERSION = '0.04';

use 5.012;
use warnings;

use Moose;
use namespace::autoclean;


has 'name' => (is => 'ro', required => 1);
# Ensure object is cleaned after use => use weak refs
has [qw(from to)] => (is => 'rw', weak_ref => 1);

__PACKAGE__->meta->make_immutable;

1;

lib/Bio/RNA/BarMap/Mapping/MinMappingEntry.pm  view on Meta::CPAN

# Bio/RNA/BarMap/Mapping/MinMappingEntry.pm

package Bio::RNA::BarMap::Mapping::MinMappingEntry;
our $VERSION = '0.04';

use 5.012;
use warnings;

use Moose;
use namespace::autoclean;

use Scalar::Util qw( weaken );

use Bio::RNA::BarMap::Mapping::Type;
use Bio::RNA::BarMap::Mapping::Set;


has 'index' => (is => 'ro', required => 1);

has 'to_type' => (

lib/Bio/RNA/BarMap/Mapping/Set.pm  view on Meta::CPAN

# the runtime.
package Bio::RNA::BarMap::Mapping::Set;
our $VERSION = '0.04';

use v5.12;
use warnings;

use autodie qw(:all);
use Moose;
use MooseX::StrictConstructor;
use namespace::autoclean;
use List::Util qw(pairmap);

# Elements are stored in a hash ref. For simple values, key is the element
# and value is undef. For references, the key gets stringified and the
# value stores the actual reference.
has _elems => (is => "ro", init_arg => undef, default => sub { {} });

# Return all elements. If defined, use the value, else the key.
sub elements { pairmap {$b // $a} %{ $_[0]->_elems } }

lib/Bio/RNA/BarMap/Mapping/Type.pm  view on Meta::CPAN

# All methods are class methods, it's not meant to be instantiated. It just
# manages the type name string and converts it to arrows, etc.
package Bio::RNA::BarMap::Mapping::Type;
our $VERSION = '0.04';

use 5.012;
use warnings;

use Moose;
use Moose::Util::TypeConstraints;           # for enum()
use namespace::autoclean;


has '_type' => (
    is       => 'ro',
    isa      => enum([qw(EXACT APPROX)]),
    required => 1,
);

# Only allow construction from a single arrow string.
around BUILDARGS => sub {

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.148 second using v1.00-cache-2.02-grep-82fe00e-cpan-c98054f2a92 )