NAME
Bio::ViennaNGS::Fasta - Moose wrapper for Bio::DB::Fasta
SYNOPSIS
use Bio::ViennaNGS::Fasta;
my $f = Bio::ViennaNGS::Fasta->new( fa => "data/foo.fa", );
# get all FASTA IDs
my @ids = $f->fastaids;
# get a reference to a hash of Bio::PrimarySeq::Fasta objects whose
# keys are the Fasta IDs
my $ps = $f->primaryseq;
# get the strand-specific genomic sequence for a certain Fasta ID
my $id = "chr1";
my $start = 287;
my $end = 1289;
my $strand = "+";
my $seq = $foo->stranded_subsequence($id,$start,$end,$strand);
DESCRIPTION
This module provides a Moose interface to Bio::DB::Fasta.
METHODS
- stranded_subsequence
-
Title : stranded_subsequence Usage : $obj->stranded_subsequence($id,$start,$end,$strand) Function: Returns the DNA/RNA sequence for C<$id> from C<$start> to C<$end>. Args : C<$id> is the Fasta ID (a L<Bio::PrimarySeq::Fasta> object). C<$start> and C<$end> should be self-explnatory, C<$strand> is 1 or -1 for [+] or [-] strand, respectively Returns : A string
DEPENDENCIES
- Bio::Perl >= 1.00690001
- Bio::DB::Fasta
- Moose
- Carp
- namespace::autoclean
SEE ALSO
AUTHOR
Michael T. Wolfinger, <michael@wolfinger.eu>
COPYRIGHT AND LICENSE
Copyright (C) 2014 by Michael T. Wolfinger
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.3 or, at your option, any later version of Perl 5 you may have available.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.