sourceBlock: Identify associated input sequence for given position(s) in...

Description Usage Arguments Value Examples

View source: R/sarks.R

Description

Any positiion in a suffix array for SArKS concatenated sequence can be identified either via its position i in lexicographically sorted list of suffixes or by its spatial position s in the concatenated sequence. This function indicates which input sequence contributed the block of the concatenated sequence within which the specified position(s) can be found.

Usage

1
sourceBlock(sarks, s = NULL, i = NULL)

Arguments

sarks

Sarks object from which information will be derived

s

the spatial position(s) to query; use NULL (default value) if you instead want to specify sorted suffix position i

i

the position(s) in the sorted suffix list to query

Value

character vector containing name(s) of corresponding input sequence(s)

Examples

1
2
3
data(simulatedSeqs, simulatedScores)
sarks <- Sarks(simulatedSeqs, simulatedScores, 4, 0, 1)
blocks <- sarks$sourceBlock(i=2253:2261)

sarks documentation built on Nov. 8, 2020, 6:54 p.m.