seqloc-0.6: Handle sequence locations for bioinformatics

Safe HaskellSafe-Inferred
LanguageHaskell2010

Bio.SeqLoc.SeqLike

Documentation

class SeqLike s where Source

Methods

length :: Integral n => s -> n Source

Length of sequence data

ntAt :: Integral n => s -> n -> Maybe Char Source

Just the nucleotide at a specified sequence data offset, given in 0-based coordinates, or Nothing if the offset is beyond the bounds of the data

subseq Source

Arguments

:: (Integral n, Integral m) 
=> n

Starting position in 0-based coordinates

-> m

Length

-> s

Sequence data

-> Maybe s 

Just the nucleotides in subsequence of the sequence data, or Nothing if the region extends beyond the bounds of the sequence.

subseqPad Source

Arguments

:: (Integral n, Integral m) 
=> n

Starting position in 0-based coordinates

-> m

Length

-> s

Sequence data

-> s 

Nucleotides in a subsequence of the sequence data, padded with N when the region extends beyond the bounds of the sequence.

concat :: [s] -> s Source