The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

GenOO::Data::File::BED - Object implementing methods for accessing bed formatted files (http://genome.ucsc.edu/FAQ/FAQformat#format1)

SYNOPSIS

# Object that manages a bed file.

# To initialize
my $bed_file = GenOO::Data::File::BED->new({
    FILE            => undef,
    EXTRA_INFO      => undef,
});

DESCRIPTION

This object offers methods to read a bed file line by line.

EXAMPLES

# Create object
my $bed_file = GenOO::Data::File::BED->new({
      FILE => 't/sample_data/sample.bed.gz'
});

# Read one record at a time
my $record = $bed_file->next_record();