Skip to content

Commit

Permalink
some fixes to IntervalStore POD
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Feb 6, 2012
1 parent 88b4d34 commit afbd3cf
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions lib/IntervalStore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,25 @@ IntervalStore - manages a set of intervals (genomic features)
=head1 SYNOPSIS
my $js = JsonStore->new($pathTempl, $compress);
my $is = IntervalStore->new({store => $js, classes => {attributes => ["Start", "End", "Strand"]}, urlTemplate => "lf-{Chunk}.jsonz");
my $chunkBytes = 80_000;
$is->startLoad($chunkBytes);
$is->addSorted([10, 100, -1])
$is->addSorted([50, 80, 1])
$is->addSorted([90, 150, -1])
$is->finishLoad();
$is->overlap(60, 85)
=> ([10, 100, -1], [50, 80, 1])
=cut
my $js = JsonStore->new($pathTempl, $compress);
my $is = IntervalStore->new({
store => $js,
classes => {
attributes => ["Start", "End", "Strand"],
},
urlTemplate => "lf-{Chunk}.jsonz",
);
my $chunkBytes = 80_000;
$is->startLoad($chunkBytes);
$is->addSorted([10, 100, -1])
$is->addSorted([50, 80, 1])
$is->addSorted([90, 150, -1])
$is->finishLoad();
$is->overlap(60, 85)
=> ([10, 100, -1], [50, 80, 1])
=head1 METHODS
=head2 new
Expand Down

0 comments on commit afbd3cf

Please sign in to comment.