Archive Ensembl HomeArchive Ensembl Home
Bio::EnsEMBL::Utils::Slice Class Reference

List of all members.

Class Summary


  use Bio::EnsEMBL::Utils::Slice qw(split_Slices);

  # ...

  # 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

Available Methods

public Ref split_Slices ()

Method Documentation

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
click to view

The documentation for this class was generated from the following file: