annotate cpt_psm_comparison_table/lib/CPT/Plot/Gene.pm @ 0:b8b8b52904a5 draft

Uploaded
author cpt
date Tue, 05 Jul 2022 05:42:59 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
1 package CPT::Plot::Gene;
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
2 use Moose;
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
3 use strict;
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
4 use warnings;
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
5
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
6 # ABSTRACT: Stupid representation of a gene. Does not handle joined genes
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
7 has 'start' => ( is => 'rw', isa => 'Int' );
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
8 has 'end' => ( is => 'rw', isa => 'Int' );
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
9 has 'tag' => ( is => 'rw', isa => 'Str' );
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
10 has 'label' => ( is => 'rw', isa => 'Str' );
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
11 has 'strand' => ( is => 'rw', isa => 'Str' );
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
12 has 'color' => ( is => 'rw', isa => 'Any' );
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
13
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
14 sub getLocations {
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
15 my ($self) = @_;
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
16 return [ $self->start(), $self->end() ];
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
17 }
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
18
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
19 no Moose;
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
20 1;
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
21
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
22 __END__
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
23
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
24 =pod
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
25
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
26 =encoding UTF-8
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
27
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
28 =head1 NAME
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
29
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
30 CPT::Plot::Gene - Stupid representation of a gene. Does not handle joined genes
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
31
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
32 =head1 VERSION
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
33
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
34 version 1.96
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
35
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
36 =head1 AUTHOR
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
37
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
38 Eric Rasche <rasche.eric@yandex.ru>
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
39
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
40 =head1 COPYRIGHT AND LICENSE
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
41
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
42 This software is Copyright (c) 2014 by Eric Rasche.
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
43
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
44 This is free software, licensed under:
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
45
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
46 The GNU General Public License, Version 3, June 2007
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
47
b8b8b52904a5 Uploaded
cpt
parents:
diff changeset
48 =cut