| 1 | package FASTX::PE; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | #ABSTRACT: Warning, Experimental Paired-End FASTQ files reader, based on FASTX::Reader. | ||||||||||||||||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||||||||||||||||
| 4 | 8 | ▶ | use 5.012; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | 8 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 6 | 8 | ▶ | use Carp qw(confess cluck); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 7 | 8 | ▶ | use Data::Dumper; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 8 | 8 | ▶ | use FASTX::Reader; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 9 | 8 | ▶ | use File::Basename; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | 8 | $FASTX::PE::VERSION = $FASTX::Reader::VERSION; | |||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||
| 12 | 8 | my $for_suffix_re = '(/1|_R?1)'; | |||||||||||||||||||||||||||||||||||||||||
| 13 | 8 | my $rev_suffix_re = '(/2|_R?2)'; | |||||||||||||||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||
| 16 | sub new { | ||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||
| 18 | # Instantiate object | ||||||||||||||||||||||||||||||||||||||||||
| 19 | 9 | ▶ | my ($class, $args) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=21 SCAR=37.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||||||||||||||||
| 21 | 9 | my %accepted_parameters = ( | |||||||||||||||||||||||||||||||||||||||||
| 22 | 'filename' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 23 | 'tag1' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 24 | 'tag2' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 25 | 'rev' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 26 | 'interleaved' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 27 | 'nocheck' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 28 | 'revcompl' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 29 | 'verbose' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 30 | ); | ||||||||||||||||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||||||||||||||||
| 32 | 9 | my $valid_attributes = join(', ', keys %accepted_parameters); | |||||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||||||
| 34 | 9 | ▶ | if ($args) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 35 | 9 | for my $parameter (keys %{ $args} ) { | |||||||||||||||||||||||||||||||||||||||||
| 36 | confess("Attribute <$parameter> is not expected. Valid attributes are: $valid_attributes\n") | ||||||||||||||||||||||||||||||||||||||||||
| 37 | 20 | ▶ | if (! $accepted_parameters{$parameter} ); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 38 | } | ||||||||||||||||||||||||||||||||||||||||||
| 39 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 40 | 0 | $args->{filename} = '{{STDIN}}'; | |||||||||||||||||||||||||||||||||||||||||
| 41 | } | ||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||
| 43 | my $self = { | ||||||||||||||||||||||||||||||||||||||||||
| 44 | filename => $args->{filename}, | ||||||||||||||||||||||||||||||||||||||||||
| 45 | rev => $args->{rev}, | ||||||||||||||||||||||||||||||||||||||||||
| 46 | interleaved => $args->{interleaved} // 0, | ||||||||||||||||||||||||||||||||||||||||||
| 47 | tag1 => $args->{tag1}, | ||||||||||||||||||||||||||||||||||||||||||
| 48 | tag2 => $args->{tag2}, | ||||||||||||||||||||||||||||||||||||||||||
| 49 | nocheck => $args->{nocheck} // 0, | ||||||||||||||||||||||||||||||||||||||||||
| 50 | revcompl => $args->{revcompl} // 0, | ||||||||||||||||||||||||||||||||||||||||||
| 51 | 9 | ▶ | verbose => $args->{verbose} // 0, | ||||||||||||||||||||||||||||||||||||||||
|
Condition87%7/8
$args->{"interleaved"} // 0
$args->{"nocheck"} // 0
$args->{"revcompl"} // 0
$args->{"verbose"} // 0
MC/DC100%1/1
$args->{"interleaved"} // 0
$args->{"interleaved"}
MC/DC0%0/1
$args->{"nocheck"} // 0
$args->{"nocheck"}
MC/DC100%1/1
$args->{"revcompl"} // 0
$args->{"revcompl"}
MC/DC100%1/1
$args->{"verbose"} // 0
$args->{"verbose"}
Truth table100%2/2
A
A= $args->{"interleaved"}
Truth table50%1/2
A
A= $args->{"nocheck"}
Truth table100%2/2
A
A= $args->{"revcompl"}
Truth table100%2/2
A
A= $args->{"verbose"}
| |||||||||||||||||||||||||||||||||||||||||||
| 52 | }; | ||||||||||||||||||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||||||
| 55 | 9 | my $object = bless $self, $class; | |||||||||||||||||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||||||||||||||||
| 57 | # Required to read STDIN? | ||||||||||||||||||||||||||||||||||||||||||
| 58 | 9 | ▶ | if ($self->{filename} eq '{{STDIN}}' or not $self->{filename}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$self->{"filename"} eq "{{STDIN}}" or not $self->{"filename"}
MC/DC0%0/2
$self->{"filename"} eq "{{STDIN}}" or not $self->{"filename"}
$self->{"filename"} eq "{{STDIN}}"
not $self->{"filename"}
Truth table33%1/3
A or not(B)
A= $self->{"filename"} eq "{{STDIN}}"B= not $self->{"filename"}
| |||||||||||||||||||||||||||||||||||||||||||
| 59 | 0 | $self->{interleaved} = 1; | |||||||||||||||||||||||||||||||||||||||||
| 60 | 0 | $self->{stdin} = 1; | |||||||||||||||||||||||||||||||||||||||||
| 61 | } | ||||||||||||||||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||||||||||||||||
| 63 | 9 | ▶ | if ($self->{interleaved}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 64 | # Decode interleaved | ||||||||||||||||||||||||||||||||||||||||||
| 65 | 2 | ▶ | if ($self->{stdin}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 66 | 0 | $self->{R1} = FASTX::Reader->new({ filename => '{{STDIN}}' }); | |||||||||||||||||||||||||||||||||||||||||
| 67 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 68 | 2 | $self->{R1} = FASTX::Reader->new({ filename => "$self->{filename}"}); | |||||||||||||||||||||||||||||||||||||||||
| 69 | } | ||||||||||||||||||||||||||||||||||||||||||
| 70 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 71 | # Decode PE | ||||||||||||||||||||||||||||||||||||||||||
| 72 | 7 | ▶ | if ( ! defined $self->{rev} ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||||||
| 74 | # Auto calculate reverse (R2) filename | ||||||||||||||||||||||||||||||||||||||||||
| 75 | 1 | my $rev = basename($self->{filename}); | |||||||||||||||||||||||||||||||||||||||||
| 76 | |||||||||||||||||||||||||||||||||||||||||||
| 77 | 1 | ▶ | if (defined $self->{tag1} and defined $self->{tag2}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $self->{"tag1"} and defined $self->{"tag2"}
MC/DC0%0/2
defined $self->{"tag1"} and defined $self->{"tag2"}
defined $self->{"tag1"}
defined $self->{"tag2"}
Truth table33%1/3
A and B
A= defined $self->{"tag1"}B= defined $self->{"tag2"}
| |||||||||||||||||||||||||||||||||||||||||||
| 78 | 0 | $rev =~s/$self->{tag1}/$self->{tag2}/; | |||||||||||||||||||||||||||||||||||||||||
| 79 | 0 | $rev = dirname($self->{basename}) . $rev; | |||||||||||||||||||||||||||||||||||||||||
| 80 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||||||||||||||||
| 82 | 1 | $rev =~s/_R1/_R2/; | |||||||||||||||||||||||||||||||||||||||||
| 83 | 1 | ▶ | say STDERR "R2 not provided, autoguess (_R1/_R2): $rev" if ($self->{verbose}); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 84 | 1 | ▶ | if ($rev eq basename($self->{filename}) ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 85 | 1 | $rev =~s/_1\./_2./; | |||||||||||||||||||||||||||||||||||||||||
| 86 | 1 | ▶ | say STDERR "R2 not provided for $self->{filename}, now autoguess (_1/_2): $rev" if ($self->{verbose}); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 87 | } | ||||||||||||||||||||||||||||||||||||||||||
| 88 | |||||||||||||||||||||||||||||||||||||||||||
| 89 | 1 | $rev = dirname($self->{filename}) . '/' . $rev; | |||||||||||||||||||||||||||||||||||||||||
| 90 | } | ||||||||||||||||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||||||||||||||||
| 92 | 1 | ▶ | if (not -e $rev) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||
| 93 | # TO DEFINE: confess("ERROR: The rev file for '$self->{filename}' was not found in '$rev'\n"); | ||||||||||||||||||||||||||||||||||||||||||
| 94 | 0 | say STDERR "WARNING: Pair not specified and R2 \"$rev\" not found for R1 \"$self->{filename}\":\n trying parsing as interleaved.\n"; | |||||||||||||||||||||||||||||||||||||||||
| 95 | 0 | $self->{interleaved} = 1; | |||||||||||||||||||||||||||||||||||||||||
| 96 | 0 | $self->{nocheck} = 0; | |||||||||||||||||||||||||||||||||||||||||
| 97 | } elsif ($self->{filename} eq $rev) { | ||||||||||||||||||||||||||||||||||||||||||
| 98 | 0 | say STDERR "WARNING: Pair not specified for \"$self->{filename}\":\n trying parsing as interleaved.\n"; | |||||||||||||||||||||||||||||||||||||||||
| 99 | 0 | $self->{interleaved} = 1; | |||||||||||||||||||||||||||||||||||||||||
| 100 | 0 | $self->{nocheck} = 0; | |||||||||||||||||||||||||||||||||||||||||
| 101 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 102 | 1 | $self->{rev} = $rev; | |||||||||||||||||||||||||||||||||||||||||
| 103 | } | ||||||||||||||||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||||||||||||||||
| 105 | } | ||||||||||||||||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||||||||||||||||
| 107 | 7 | $self->{R1} = FASTX::Reader->new({ filename => "$self->{filename}"}); | |||||||||||||||||||||||||||||||||||||||||
| 108 | $self->{R2} = FASTX::Reader->new({ filename => "$self->{rev}"}) | ||||||||||||||||||||||||||||||||||||||||||
| 109 | 5 | ▶ | if (not $self->{interleaved}); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||||||||||||||||
| 111 | } | ||||||||||||||||||||||||||||||||||||||||||
| 112 | |||||||||||||||||||||||||||||||||||||||||||
| 113 | |||||||||||||||||||||||||||||||||||||||||||
| 114 | 6 | return $object; | |||||||||||||||||||||||||||||||||||||||||
| 115 | } | ||||||||||||||||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||||||||||||||||
| 117 | |||||||||||||||||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||||||||||||||||
| 119 | sub getReads { | ||||||||||||||||||||||||||||||||||||||||||
| 120 | 6 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
getReads: called CC=13 SCAR=29.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 121 | #my ($fh, $aux) = @_; | ||||||||||||||||||||||||||||||||||||||||||
| 122 | #@<instrument>:<run number>:<flowcell ID>:<lane>:<tile>:<x-pos>:<y-pos>:<UMI> <read>:<is filtered>:<control number>:<index> | ||||||||||||||||||||||||||||||||||||||||||
| 123 | 6 | my $pe; | |||||||||||||||||||||||||||||||||||||||||
| 124 | my $r1; | ||||||||||||||||||||||||||||||||||||||||||
| 125 | 6 | my $r2; | |||||||||||||||||||||||||||||||||||||||||
| 126 | |||||||||||||||||||||||||||||||||||||||||||
| 127 | 6 | ▶ | if ($self->{interleaved}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 128 | 2 | $r1 = $self->{R1}->getRead(); | |||||||||||||||||||||||||||||||||||||||||
| 129 | 2 | $r2 = $self->{R1}->getRead(); | |||||||||||||||||||||||||||||||||||||||||
| 130 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 131 | 4 | $r1 = $self->{R1}->getRead(); | |||||||||||||||||||||||||||||||||||||||||
| 132 | 4 | $r2 = $self->{R2}->getRead(); | |||||||||||||||||||||||||||||||||||||||||
| 133 | } | ||||||||||||||||||||||||||||||||||||||||||
| 134 | |||||||||||||||||||||||||||||||||||||||||||
| 135 | 6 | ▶ | if (! defined $r1->{name} and !defined $r2->{name}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition33%1/3
defined $r1->{'name'} || defined $r2->{'name'}
MC/DC0%0/2
defined $r1->{'name'} || defined $r2->{'name'}
defined $r1->{'name'}
defined $r2->{'name'}
Truth table33%1/3
A || B
A= defined $r1->{'name'}B= defined $r2->{'name'}
| |||||||||||||||||||||||||||||||||||||||||||
| 136 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 137 | ▶ | } elsif (! defined $r1->{name} or !defined $r2->{name}) { | |||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $r1->{'name'} && defined $r2->{'name'}
MC/DC0%0/2
defined $r1->{'name'} && defined $r2->{'name'}
defined $r1->{'name'}
defined $r2->{'name'}
Truth table33%1/3
A && B
A= defined $r1->{'name'}B= defined $r2->{'name'}
| |||||||||||||||||||||||||||||||||||||||||||
| 138 | 0 | ▶ | my $r = $r1->{name} // $r2->{name}; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$r1->{"name"} // $r2->{"name"}
MC/DC0%0/2
$r1->{"name"} // $r2->{"name"}
$r1->{"name"}
$r2->{"name"}
Truth table0%0/3
A // B
A= $r1->{"name"}B= $r2->{"name"}
| |||||||||||||||||||||||||||||||||||||||||||
| 139 | 0 | $self->{error} = "Premature termination, missing read mate for \"$r\""; | |||||||||||||||||||||||||||||||||||||||||
| 140 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 141 | } | ||||||||||||||||||||||||||||||||||||||||||
| 142 | |||||||||||||||||||||||||||||||||||||||||||
| 143 | 6 | my $name_1; | |||||||||||||||||||||||||||||||||||||||||
| 144 | my $name_2; | ||||||||||||||||||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||||||||||||||||
| 146 | 6 | ▶ | if ($self->{nocheck} != 1) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 147 | 6 | $name_1 = $r1->{name}; | |||||||||||||||||||||||||||||||||||||||||
| 148 | 6 | $name_2 = $r2->{name}; | |||||||||||||||||||||||||||||||||||||||||
| 149 | 6 | $name_1 =~s/${for_suffix_re}$//; | |||||||||||||||||||||||||||||||||||||||||
| 150 | 6 | $name_2 =~s/${rev_suffix_re}$//; | |||||||||||||||||||||||||||||||||||||||||
| 151 | 6 | ▶ | if ($name_1 ne $name_2) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 152 | 1 | confess("Read name different in PE:\n[$r1->{name}] !=\n[$r2->{name}]\n"); | |||||||||||||||||||||||||||||||||||||||||
| 153 | } | ||||||||||||||||||||||||||||||||||||||||||
| 154 | |||||||||||||||||||||||||||||||||||||||||||
| 155 | 5 | ▶ | if (not $r1->{qual} or not $r2->{qual}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$r1->{"qual"} and $r2->{"qual"}
MC/DC0%0/2
$r1->{"qual"} and $r2->{"qual"}
$r1->{"qual"}
$r2->{"qual"}
Truth table33%1/3
A and B
A= $r1->{"qual"}B= $r2->{"qual"}
| |||||||||||||||||||||||||||||||||||||||||||
| 156 | 0 | confess("Missing quality for one of the two reads ($name_1, $name_2)"); | |||||||||||||||||||||||||||||||||||||||||
| 157 | } | ||||||||||||||||||||||||||||||||||||||||||
| 158 | } | ||||||||||||||||||||||||||||||||||||||||||
| 159 | |||||||||||||||||||||||||||||||||||||||||||
| 160 | |||||||||||||||||||||||||||||||||||||||||||
| 161 | 5 | ▶ | $pe->{name} = $name_1 // $r1->{name}; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
$name_1 // $r1->{"name"}
MC/DC0%0/2
$name_1 // $r1->{"name"}
$name_1
$r1->{"name"}
Truth table33%1/3
A // B
A= $name_1B= $r1->{"name"}
| |||||||||||||||||||||||||||||||||||||||||||
| 162 | 5 | $pe->{seq1} = $r1->{seq}; | |||||||||||||||||||||||||||||||||||||||||
| 163 | 5 | $pe->{qual1} = $r1->{qual}; | |||||||||||||||||||||||||||||||||||||||||
| 164 | |||||||||||||||||||||||||||||||||||||||||||
| 165 | 5 | ▶ | if ($self->{revcompl}) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 166 | 1 | $pe->{seq2} = _rc( $r2->{seq} ); | |||||||||||||||||||||||||||||||||||||||||
| 167 | 1 | $pe->{qual2} = reverse( $r2->{qual} ); | |||||||||||||||||||||||||||||||||||||||||
| 168 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 169 | 4 | $pe->{seq2} = $r2->{seq}; | |||||||||||||||||||||||||||||||||||||||||
| 170 | 4 | $pe->{qual2} = $r2->{qual}; | |||||||||||||||||||||||||||||||||||||||||
| 171 | } | ||||||||||||||||||||||||||||||||||||||||||
| 172 | |||||||||||||||||||||||||||||||||||||||||||
| 173 | 5 | $pe->{comment1} = $r1->{comment}; | |||||||||||||||||||||||||||||||||||||||||
| 174 | 5 | $pe->{comment2} = $r2->{comment}; | |||||||||||||||||||||||||||||||||||||||||
| 175 | |||||||||||||||||||||||||||||||||||||||||||
| 176 | 5 | return $pe; | |||||||||||||||||||||||||||||||||||||||||
| 177 | |||||||||||||||||||||||||||||||||||||||||||
| 178 | } | ||||||||||||||||||||||||||||||||||||||||||
| 179 | |||||||||||||||||||||||||||||||||||||||||||
| 180 | |||||||||||||||||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||||||||||||||||
| 183 | |||||||||||||||||||||||||||||||||||||||||||
| 184 | sub _rc { | ||||||||||||||||||||||||||||||||||||||||||
| 185 | 1 | ▶ | my $sequence = shift @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_rc: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 186 | 1 | $sequence = reverse($sequence); | |||||||||||||||||||||||||||||||||||||||||
| 187 | 1 | $sequence =~tr/ACGTacgt/TGCAtgca/; | |||||||||||||||||||||||||||||||||||||||||
| 188 | 1 | return $sequence; | |||||||||||||||||||||||||||||||||||||||||
| 189 | } | ||||||||||||||||||||||||||||||||||||||||||
| 190 | 8 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 191 | |||||||||||||||||||||||||||||||||||||||||||
| 192 | __END__ | ||||||||||||||||||||||||||||||||||||||||||