ensembl-hive  2.7.0
Bio::EnsEMBL::Utils::Slice Class Reference

Public Member Functions

public Ref split_Slices ()
 

Detailed Description

Synopsis

# ...
# get all chromosomes in the database
my $slices = $slice_adaptor->fetch_all('chromosome');
# split the chromosomes into equal chunks of size less than 1MB
# with an overlap of 1kb
$slices = split_Slices( $slices, 1e6, 1e3 );

Definition at line 21 of file Slice.pm.

Member Function Documentation

◆ split_Slices()

public Ref Bio::EnsEMBL::Utils::Slice::split_Slices ( )
  Arg [1]    : ref to list of slices
  Arg [2]    : int maxlength of sub slices
  Arg [3]    : int overlap length (optional)
  Example    :
my $sub_slices = split_Slices($slices,$maxlen,$overlap)
  Description: splits a slice into smaller slices 
  Returntype : ref to list of slices
  Exceptions : maxlen <1 or overlap < 0
 
Code:
click to view

The documentation for this class was generated from the following file:
Bio::EnsEMBL::Utils::Slice
Definition: Slice.pm:21
Bio::EnsEMBL::Slice
Definition: Slice.pm:50
Bio::EnsEMBL::Slice::new
public Bio::EnsEMBL::Slice new()
Bio::EnsEMBL::Utils::Slice::split_Slices
public Ref split_Slices()