AlignDB::Window - Split integer spans into a series of windows
AlignDB::Window provides methods to split integer spans, including interval, inside area and outside area, into a series of windows.
sw_size - sliding windows' size, default is 100
sw_size
min_interval - mininal indel interval length, default is 11
min_interval
max_out_distance - maximal outside distance, default is 10
max_out_distance
max_in_distance - maximal inside distance, default is 5
max_in_distance
$comparable_set - AlignDB::IntSpan object
$comparable_set
$interval_start - start point of the interval
$interval_start
$interval_end - end point in the interval
$interval_end
$internal_start - start position in the internal region
$internal_start
$internal_end - end position in the internal region
$internal_end
$sw_size - size of windows
$sw_size
$min_interval - minimal size of intervals
$min_interval
$maximal_distance - maximal distance
$maximal_distance
$strand - '+' or '-'
$strand
my @interval_windows = $self->interval_window( $comparable_set, $interval_start, $interval_end, $sw_size, $min_interval, );
Split an interval to windows.
Length of windows are variable, but all positions of the interval are counted.
my @outside_windows = $self->outside_window( $comparable_set, $internal_start, $internal_end, $sw_size, $maximal_distance, );
Draw outside windows from a internal region.
All windows are 100 bp length. Start from 1 and end to $maximal_distance.
my @outside_windows = $self->outside_window_2( $comparable_set, $internal_start, $internal_end, $sw_size, $maximal_distance, );
The first window is 50 bp and all others are 100 bp length. Start from 0 and end to $maximal_distance.
my @inside_windows = $self->inside_window( $comparable_set, $interval_start, $interval_end, $sw_size, $maximal_distance, );
Draw inside windows from a internal region.
All windows are 100 bp length. Start counting from the edges.
my @inside_windows = $self->inside_window_2( $comparable_set, $interval_start, $interval_end, $sw_size, $maximal_distance, );
All windows are 100 bp length. Start counting from the center.
my @center_windows = $self->center_window( $comparable_set, $internal_start, $internal_end, $sw_size, $maximal_distance, );
Draw windows for a certain region.
Center is 0, and the first window is 50 bp and all others are 100 bp length. Start from 0 and end to $maximal_distance.
my @center_intact_windows = $self->center_intact_window( $comparable_set, $internal_start, $internal_end, $sw_size, $maximal_distance, );
my @windows = $self->strand_window( $comparable_set, $interval_start, $interval_end, $sw_size, $strand, );
Draw windows for a certain region
Qiang Wang <wang-q@outlook.com>
This software is copyright (c) 2008 by Qiang Wang.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AlignDB::Window, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AlignDB::Window
CPAN shell
perl -MCPAN -e shell install AlignDB::Window
For more information on module installation, please visit the detailed CPAN module installation guide.