seqloc-0.5: Handle sequence locations for bioinformatics

Bio.SeqLoc.SeqLike

Documentation

class SeqLike s whereSource

Methods

length :: Integral n => s -> nSource

Length of sequence data

ntAt :: Integral n => s -> n -> Maybe CharSource

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

subseqSource

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.

subseqPadSource

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] -> sSource