File: bioperl_fasta_reverse_complement.pl

package info (click to toggle)
pyfastx 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,336 kB
  • sloc: ansic: 4,820; python: 1,817; sh: 505; perl: 66; makefile: 31
file content (9 lines) | stat: -rw-r--r-- 187 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
use strict;
use Bio::DB::Fasta;

my $longname = shift;
my $fafile = shift;

my $db = Bio::DB::Fasta->new($fafile);
my $seqobj = $db->get_Seq_by_id($longname)->revcom;
print $seqobj->seq;