Question: Bioperl: Extracting Complement Statement Along With Location
0
robjohn7000 • 100 wrote:
Hi,
I have a code bioperl (below) that does the job of extracting CDS locations (e.g., (234..1234) from a GenBank file, but does not extract the complement statement when they are indicated such as complement(234530..235249). How can I extract the complement statement together with the location whenever they indicated as mentioned.
if ($feat_object->primary_tag eq "CDS") {
my $start = $feat_object->location->start;
my $end = $feat_object->location->end;
print $start . ".." . $end . "\n";
}
Thanks
ADD COMMENT
• link
•
modified 7.1 years ago
by
Pavel Senin • 1.9k
•
written
7.1 years ago by
robjohn7000 • 100