Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stub in some location code and tests
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use v6; | ||
|
||
use Bio::Role::Location; | ||
|
||
class Bio::Location::Simple does Bio::Role::Location; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use v6; | ||
|
||
use Bio::Role::Range; | ||
|
||
role Bio::Role::Location does Bio::Role::Range; | ||
|
||
has Int $.start-offset is rw = 0; | ||
has Int $.end-offset is rw = 0; | ||
has $.seqid is rw; | ||
|
||
# use enum here | ||
has $.type is rw; | ||
|
||
method max-start { ... } | ||
method min-start { ... } | ||
method max-end { ... } | ||
method min-end { ... } | ||
|
||
# use enum here | ||
method start-pos-type { ... } | ||
method end-pos-type { ... } | ||
|
||
# return Bool | ||
method is-valid { ... } | ||
method is-remote { ... } | ||
method is-fuzzy { ... } | ||
|
||
# stringification? | ||
#multi method WHICH { ... } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use v6; | ||
|
||
use lib './lib'; | ||
|
||
use Test; | ||
|
||
use Bio::Location::Simple; | ||
|
||
ok(1); | ||
|
||
done(); |