Safe Haskell | None |
---|---|
Language | Haskell2010 |
Annotate the genomic Location
of features or elements. A Location
is
always contiguous, using strand, 0-based position, and length.
Transformation to different systems of annotation is made possible.
Synopsis
- data Location = Location {}
- lTotalLength :: Lens' Location Int
- lStrand :: Lens' Location Strand
- lStart :: Lens' Location (Index 0)
- lLength :: Lens' Location Int
- _Location :: Iso' Location (Strand, Index 0, Int, Int)
- startEndInclusive :: KnownNat k => Iso' Location (Strand, (Index k, Index k), Int)
- data PartialLocation
- plStrand :: Lens' PartialLocation Strand
- plStart :: Traversal' PartialLocation (Index 0)
- plLength :: Lens' PartialLocation Int
- plEnd :: Traversal' PartialLocation (Index 0)
- _ReversedPartialLocation :: Prism' PartialLocation (Strand, Index 0, Int)
- _PartialLocation :: Prism' PartialLocation (Strand, Index 0, Int)
- locationPartial :: Iso' Location (PartialLocation, Int)
Documentation
Location information.
Instances
Eq Location Source # | |
Ord Location Source # | |
Defined in Biobase.Types.Location | |
Read Location Source # | |
Show Location Source # | |
Generic Location Source # | |
Reversing Location Source # | |
Defined in Biobase.Types.Location | |
type Rep Location Source # | |
Defined in Biobase.Types.Location type Rep Location = D1 (MetaData "Location" "Biobase.Types.Location" "BiobaseTypes-0.2.0.1-B9coIbijR6NEFcCxvqIOZp" False) (C1 (MetaCons "Location" PrefixI True) ((S1 (MetaSel (Just "_lStrand") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Strand) :*: S1 (MetaSel (Just "_lStart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Index 0))) :*: (S1 (MetaSel (Just "_lLength") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_lTotalLength") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))) |
startEndInclusive :: KnownNat k => Iso' Location (Strand, (Index k, Index k), Int) Source #
An isomorphism between locations, and triples of Strand,Start,End
, where
end is inclusive. For length==0
locations, this will mean start<end
on
the plus strand.
This should hold for all k
, in Index k
.
data PartialLocation Source #
During streaming construction, it is possible that we know a feature is on
the -
strand, but the length of the contig is not known yet.
0 1 2 012345678901234567890 >--- + 2 4 Location + 2 4 <--- Reversed 5 4 Location - 12 4 098765432109876543210 2 1 0
PartialLocation | Location, when it is not yet known how long the contig will be. |
ReversedPartialLocation | The reversed strand. However, we have an |
Instances
plStart :: Traversal' PartialLocation (Index 0) Source #
plEnd :: Traversal' PartialLocation (Index 0) Source #
_PartialLocation :: Prism' PartialLocation (Strand, Index 0, Int) Source #