find_sample_index_for_fastq_base: Finds raw data sample index corresponding to a base.

View source: R/find_sample_index_for_fastq_base.R

find_sample_index_for_fastq_baseR Documentation

Finds raw data sample index corresponding to a base.

Description

Finds raw data sample index in the event data table corresponding to a FastQ base number. The closet possible matching sample is dependent on the type of the tail.

Usage

find_sample_index_for_fastq_base(event_data, fastq_base_number, read_type)

Arguments

event_data

dataframe

fastq_base_number

numeric

read_type

character string

Value

numeric

Examples

## Not run: 
event_data <- data.frame(start = seq(0, 150, 5),
                         move = 5,
                         model_state = sample(c("A", "T", "C", "G"), 1))
idx <- find_sample_index_for_fastq_base(event_data, 10, 'polyA')

## End(Not run)


adnaniazi/tailfindr documentation built on March 23, 2024, 7:07 a.m.