load_squiggles: Loads raw squiggle data generated by Signal2chunk.R

Description Usage Arguments Details Examples

View source: R/NanoSatelliteR_functions.R

Description

load_squiggles() returns a list of raw Oxford Nanopore current squiggle data as generated by Signal2chunk.R

Usage

1

Arguments

dir

Path denoted as a character vector of length 1.

df

An optional data.frame generated by qual_reads() to selectively load squiggles.

Details

This function requires a path to the results produced by Signal2chunk.R load_squiggles() will recursively search the directory and read all .chunk files. Results are shown in a list separated by their respective positive or negative DNA strand origin. Optionally a data.frame generated by qual_reads() can be provided to load only reads passing QC.

Examples

1
2
3
4
df <- load_summary("/storage/NanoSatellite_chunks/")
qc <- summary_qc(df)
df2 <- qual_reads(df,qc$center_cutoff)
squiggles <- load_squiggles("/storage/NanoSatellite_chunks/",df2)

arnederoeck/NanoSatelliteR documentation built on May 6, 2019, 1:35 a.m.