1.

How Do I Get The Reverse-complement Of A Sequence Using The Subseq Method?

Answer»

ONE way is to pass the location to subseq in the form of a Bio::LocationI object. This object holds strand information as well as coordinates.
use Bio::Location::Simple;
my $location = Bio::Location::Simple->NEW(-start => $start,
-end => $end,
-strand => "-1");
# assume we ALREADY have a sequence object
my $rev_comp_substr = $seq_obj->subseq($location);

One way is to pass the location to subseq in the form of a Bio::LocationI object. This object holds strand information as well as coordinates.
use Bio::Location::Simple;
my $location = Bio::Location::Simple->new(-start => $start,
-end => $end,
-strand => "-1");
# assume we already have a sequence object
my $rev_comp_substr = $seq_obj->subseq($location);



Discussion

No Comment Found