| 1 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | # BioPerl module for Bio::Variation::DNAMutation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | # Please direct questions and support issues to <bioperl-l@bioperl.org> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | # Cared for by Heikki Lehvaslaiho <heikki-at-bioperl-dot-org> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | # Copyright Heikki Lehvaslaiho | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | # You may distribute this module under the same terms as perl itself | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | # POD documentation - main docs before the code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | Bio::Variation::DNAMutation - DNA level mutation class | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | $dnamut = Bio::Variation::DNAMutation->new | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | ('-start' => $start, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | '-end' => $end, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | '-length' => $len, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | '-upStreamSeq' => $upflank, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | '-dnStreamSeq' => $dnflank, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | '-proof' => $proof, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | '-isMutation' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | '-mut_number' => $mut_number | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | $a1 = Bio::Variation::Allele->new; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | $a1->seq('a'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | $dnamut->allele_ori($a1); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | my $a2 = Bio::Variation::Allele->new; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | $a2->seq('t'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | $dnamut->add_Allele($a2); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | print "Restriction changes are ", $dnamut->restriction_changes, "\n"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | # add it to a SeqDiff container object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | $seqdiff->add_Variant($dnamut); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | The instantiable class Bio::Variation::DNAMutation describes basic | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | sequence changes in genomic DNA level. It uses methods defined in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | superclass Bio::Variation::VariantI. See L<Bio::Variation::VariantI> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | for details. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | If the variation described by a DNAMutation object is transcibed, link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | the corresponding Bio::Variation::RNAChange object to it using | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | method RNAChange(). See L<Bio::Variation::RNAChange> for more information. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | =head1 FEEDBACK | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | =head2 Mailing Lists | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | User feedback is an integral part of the evolution of this and other | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | Bioperl modules. Send your comments and suggestions preferably to the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | Bioperl mailing lists Your participation is much appreciated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | bioperl-l@bioperl.org - General discussion | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | http://bioperl.org/wiki/Mailing_lists - About the mailing lists | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | =head2 Support | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | Please direct usage questions or support issues to the mailing list: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | I<bioperl-l@bioperl.org> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | rather than to the module maintainer directly. Many experienced and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | reponsive experts will be able look at the problem and quickly | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | address it. Please include a thorough description of the problem | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | with code and data examples if at all possible. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | =head2 Reporting Bugs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | Report bugs to the Bioperl bug tracking system to help us keep track | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | the bugs and their resolution. Bug reports can be submitted via the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | web: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | https://github.com/bioperl/bioperl-live/issues | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | =head1 AUTHOR - Heikki Lehvaslaiho | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | Email: heikki-at-bioperl-dot-org | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | =head1 APPENDIX | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | The rest of the documentation details each of the object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | methods. Internal methods are usually preceded with a _ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | # Let the code begin... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | package Bio::Variation::DNAMutation; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 5 | $Bio::Variation::DNAMutation::VERSION = '1.7.5'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | 5 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | # Object preamble - inheritance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | 5 | ▶ | use base qw(Bio::Variation::VariantI); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | 21 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=24 SCAR=33.5
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | 21 | my($class,@args) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | 21 | my $self = $class->SUPER::new(@args); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 21 | my ($start, $end, $length, $strand, $primary, $source, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | $frame, $score, $gff_string, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | $allele_ori, $allele_mut, $upstreamseq, $dnstreamseq, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | $label, $status, $proof, $region, $region_value, $region_dist, $numbering, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | $cpg, $mut_number, $ismutation) = | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | $self->_rearrange([qw(START | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | END | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | LENGTH | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | STRAND | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | PRIMARY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | SOURCE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | FRAME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | SCORE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | GFF_STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | ALLELE_ORI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | ALLELE_MUT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | UPSTREAMSEQ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | DNSTREAMSEQ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | LABEL | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | STATUS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | PROOF | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | REGION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | REGION_VALUE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | REGION_DIST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | NUMBERING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | CPG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | MUT_NUMBER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | ISMUTATION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | )], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | @args); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | 21 | $self->primary_tag("Variation"); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | 21 | $self->{ 'alleles' } = []; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | 21 | ▶ | $start && $self->start($start); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | 21 | ▶ | $end && $self->end($end); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | 21 | ▶ | $length && $self->length($length); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | 21 | ▶ | $strand && $self->strand($strand); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | 21 | ▶ | $primary && $self->primary_tag($primary); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | 21 | ▶ | $source && $self->source_tag($source); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | 21 | ▶ | $frame && $self->frame($frame); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | 21 | ▶ | $score && $self->score($score); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | 21 | ▶ | $gff_string && $self->_from_gff_string($gff_string); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | 21 | ▶ | $allele_ori && $self->allele_ori($allele_ori); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | 21 | ▶ | $allele_mut && $self->allele_mut($allele_mut); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | 21 | ▶ | $upstreamseq && $self->upStreamSeq($upstreamseq); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | 21 | ▶ | $dnstreamseq && $self->dnStreamSeq($dnstreamseq); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | 21 | ▶ | $label && $self->label($label); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | 21 | ▶ | $status && $self->status($status); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | 21 | ▶ | $proof && $self->proof($proof); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | 21 | ▶ | $region && $self->region($region); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | 21 | ▶ | $region_value && $self->region_value($region_value); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | 21 | ▶ | $region_dist && $self->region_dist($region_dist); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | 21 | ▶ | $numbering && $self->numbering($numbering); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | 21 | ▶ | $mut_number && $self->mut_number($mut_number); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | 21 | ▶ | $ismutation && $self->isMutation($ismutation); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | 21 | ▶ | $cpg && $self->CpG($cpg); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | 21 | return $self; # success - we hope! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | =head2 CpG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | Title : CpG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | Usage : $obj->CpG() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | Function: sets and returns boolean values for variation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | hitting a CpG site. Unset value return -1. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | Example : $obj->CpG() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | Returns : boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | Args : optional true of false value | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | 18 | ▶ | sub CpG { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
CpG: called CC=4 SCAR=19.7
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | 18 | my ($obj,$value) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | 18 | ▶ | if( defined $value) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | 0 | ▶ | $value ? ($value = 1) : ($value = 0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | 0 | $obj->{'cpg'} = $value; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | elsif (not defined $obj->{'label'}) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | 0 | $obj->{'cpg'} = $obj->_CpG_value; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | 18 | return $obj->{'cpg'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | 0 | ▶ | sub _CpG_value { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_CpG_value: not called CC=7 SCAR=40.3
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | 0 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | 0 | ▶ | if ($self->allele_ori eq $self->allele_mut and length ($self->allele_ori) == 1 ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$self->allele_ori eq $self->allele_mut and length $self->allele_ori == 1
MC/DC0%0/2
$self->allele_ori eq $self->allele_mut and length $self->allele_ori == 1
$self->allele_ori eq $self->allele_mut
length $self->allele_ori == 1
Truth table0%0/3
A and B
A= $self->allele_ori eq $self->allele_mutB= length $self->allele_ori == 1
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | # valid only for point mutations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | # CpG methylation-mediated deamination: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | # CG -> TG | CG -> CA substitutions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | # implementation here is less strict: if CpG dinucleotide was hit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | 0 | ▶ | if ( ( ($self->allele_ori eq 'c') && (substr($self->upStreamSeq, 0, 1) eq 'g') ) || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/9
$self->allele_ori eq "c" and substr($self->upStreamSeq, 0, 1) eq "g" or $self->allele_ori eq "g" and substr($self->dnStreamSeq, -1, 1) eq "c"
$self->allele_ori eq "c" and substr($self->upStreamSeq, 0, 1) eq "g"
$self->allele_ori eq "g" and substr($self->dnStreamSeq, -1, 1) eq "c"
MC/DC0%0/4
$self->allele_ori eq "c" and substr($self->upStreamSeq, 0, 1) eq "g" or $self->allele_ori eq "g" and substr($self->dnStreamSeq, -1, 1) eq "c"
$self->allele_ori eq "c"
substr($self->upStreamSeq, 0, 1) eq "g"
$self->allele_ori eq "g"
substr($self->dnStreamSeq, -1, 1) eq "c"
Truth table0%0/7
A and B or C and D
A= $self->allele_ori eq "c"B= substr($self->upStreamSeq, 0, 1) eq "g"C= $self->allele_ori eq "g"D= substr($self->dnStreamSeq, -1, 1) eq "c"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | ( ($self->allele_ori eq 'g') && (substr($self->dnStreamSeq, -1, 1) eq 'c') ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | 0 | return 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | 0 | return 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | 0 | $self->warn('CpG makes sense only in the context of point mutation'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | =head2 RNAChange | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | Title : RNAChange | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | Usage : $mutobj = $obj->RNAChange; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | : $mutobj = $obj->RNAChange($objref); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | Function: Returns or sets the link-reference to a mutation/change object. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | If there is no link, it will return undef | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | Returns : an obj_ref or undef | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | 16 | ▶ | sub RNAChange { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
RNAChange: called CC=4 SCAR=16.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | 16 | my ($self,$value) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | 16 | ▶ | if (defined $value) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | 16 | ▶ | if( ! $value->isa('Bio::Variation::RNAChange') ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | 0 | $self->throw("Is not a Bio::Variation::RNAChange object but a [$self]"); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | 16 | $self->{'RNAChange'} = $value; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | 16 | ▶ | unless (exists $self->{'RNAChange'}) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | 16 | return $self->{'RNAChange'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | =head2 label | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | Title : label | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | Usage : $obj->label(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | Function: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | Sets and returns mutation event label(s). If value is not | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | set, or no argument is given returns false. Each | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | instantiable subclass of L<Bio::Variation::VariantI> needs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | to implement this method. Valid values are listed in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | 'Mutation event controlled vocabulary' in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | http://www.ebi.ac.uk/mutations/recommendations/mutevent.html. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | Example : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | Returns : string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | Args : string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | 85 | ▶ | sub label { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
label: called CC=13 SCAR=26.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | 85 | my ($self, $value) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | 85 | my ($o, $m, $type); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | 85 | ▶ | $o = $self->allele_ori->seq if $self->allele_ori and $self->allele_ori->seq; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$self->allele_ori and $self->allele_ori->seq
MC/DC50%1/2
$self->allele_ori and $self->allele_ori->seq
$self->allele_ori
$self->allele_ori->seq
Truth table66%2/3
A and B
A= $self->allele_oriB= $self->allele_ori->seq
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | 85 | ▶ | $m = $self->allele_mut->seq if $self->allele_mut and $self->allele_mut->seq; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$self->allele_mut and $self->allele_mut->seq
MC/DC50%1/2
$self->allele_mut and $self->allele_mut->seq
$self->allele_mut
$self->allele_mut->seq
Truth table66%2/3
A and B
A= $self->allele_mutB= $self->allele_mut->seq
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | 85 | ▶ | if (not $o and not $m ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 4 branches
Condition66%2/3
$o || $m
MC/DC0%0/2
$o || $m
$o
$m
Truth table66%2/3
A || B
A= $oB= $m
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | 0 | $self->warn("[DNAMutation, label] Both alleles should not be empty!\n"); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | 0 | $type = 'no change'; # is this enough? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | ▶ | elsif ($o && $m && length($o) == length($m) && length($o) == 1) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition88%8/9
$o and $m and length $o == length $m and length $o == 1
$o and $m and length $o == length $m
$o and $m
MC/DC75%3/4
$o and $m and length $o == length $m and length $o == 1
$o
$m
length $o == length $m
length $o == 1
Truth table80%4/5
A and B and C and D
A= $oB= $mC= length $o == length $mD= length $o == 1
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | 55 | $type = 'point'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | 55 | $type .= ", ". _point_type_label($o, $m); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | elsif (not $o ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | 12 | $type = 'insertion'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | elsif (not $m ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | 12 | $type = 'deletion'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | 6 | $type = 'complex'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | 85 | $self->{'label'} = $type; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | 85 | return $self->{'label'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | 55 | ▶ | sub _point_type_label { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_point_type_label: called CC=3 SCAR=11.1
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | 55 | my ($o, $m) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | 55 | my ($type); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | 55 | my %transition = ('a' => 'g', | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | 'g' => 'a', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | 'c' => 't', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | 't' => 'c'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | 55 | $o = lc $o; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | 55 | $m = lc $m; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | 55 | ▶ | if ($o eq $m) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | 0 | $type = 'no change'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | elsif ($transition{$o} eq $m ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | 26 | $type = 'transition'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | 29 | $type = 'transversion'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | =head2 sysname | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | Title : sysname | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | Usage : $self->sysname | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | Function: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | This subroutine creates a string corresponding to the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | 'systematic name' of the mutation. Systematic name is | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | specified in Antonorakis & MDI Nomenclature Working Group: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | Human Mutation 11:1-3, 1998. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | Returns : string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | 16 | ▶ | sub sysname { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
sysname: called CC=18 SCAR=29.5
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | 16 | my ($self,$value) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | 16 | ▶ | if( defined $value) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | 0 | $self->{'sysname'} = $value; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | 16 | ▶ | $self->warn('Mutation start position is not defined') | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | if not defined $self->start; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | 16 | my $sysname = ''; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | # show the alphabet only if $self->SeqDiff->alphabet is set; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | 16 | my $mol = ''; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | 16 | ▶ | if ($self->SeqDiff ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | 16 | ▶ | if ($self->SeqDiff && $self->SeqDiff->alphabet && $self->SeqDiff->alphabet eq 'dna') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition50%3/6
$self->SeqDiff and $self->SeqDiff->alphabet and $self->SeqDiff->alphabet eq "dna"
$self->SeqDiff and $self->SeqDiff->alphabet
MC/DC33%1/3
$self->SeqDiff and $self->SeqDiff->alphabet and $self->SeqDiff->alphabet eq "dna"
$self->SeqDiff
$self->SeqDiff->alphabet
$self->SeqDiff->alphabet eq "dna"
Truth table50%2/4
A and B and C
A= $self->SeqDiffB= $self->SeqDiff->alphabetC= $self->SeqDiff->alphabet eq "dna"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | 4 | $mol = 'g.'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | ▶ | elsif ($self->SeqDiff->alphabet && $self->SeqDiff->alphabet eq 'rna') { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
$self->SeqDiff->alphabet and $self->SeqDiff->alphabet eq "rna"
MC/DC0%0/2
$self->SeqDiff->alphabet and $self->SeqDiff->alphabet eq "rna"
$self->SeqDiff->alphabet
$self->SeqDiff->alphabet eq "rna"
Truth table33%1/3
A and B
A= $self->SeqDiff->alphabetB= $self->SeqDiff->alphabet eq "rna"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | 12 | $mol = 'c.'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 363 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 364 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 365 | 16 | my $sep; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 366 | 16 | ▶ | if ($self->isMutation) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 367 | 14 | $sep = '>'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 368 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 369 | 2 | $sep = '|'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | 16 | my $sign = '+'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | 16 | ▶ | $sign = '' if $self->start < 1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | 16 | $sysname .= $mol ;#if $mol; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | 16 | $sysname .= $sign. $self->start; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | 16 | my @alleles = $self->each_Allele; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 377 | 16 | $self->allele_mut($alleles[0]); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 378 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 379 | 16 | ▶ | $sysname .= 'del' if $self->label =~ /deletion/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 380 | 16 | ▶ | $sysname .= 'ins' if $self->label =~ /insertion/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 381 | 16 | ▶ | $sysname .= uc $self->allele_ori->seq if $self->allele_ori->seq; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | #push @alleles, $self->allele_mut if $self->allele_mut; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 386 | 16 | foreach my $allele (@alleles) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 387 | 17 | $self->allele_mut($allele); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 388 | 17 | ▶ | $sysname .= $sep if $self->label =~ /point/ or $self->label =~ /complex/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$self->label =~ /point/ or $self->label =~ /complex/
MC/DC100%2/2
$self->label =~ /point/ or $self->label =~ /complex/
$self->label =~ /point/
$self->label =~ /complex/
Truth table100%3/3
A or B
A= $self->label =~ /point/B= $self->label =~ /complex/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 389 | 17 | ▶ | $sysname .= uc $self->allele_mut->seq if $self->allele_mut->seq; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 390 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 391 | 16 | $self->{'sysname'} = $sysname; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 392 | #$self->{'sysname'} = $sign. $self->start. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 393 | # uc $self->allele_ori->seq. $sep. uc $self->allele_mut->seq; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 394 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 395 | 16 | return $self->{'sysname'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | 5 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||