Learn R Programming

eDNAfuns (version 0.1.0)

read_info_file: Read cutadapt info files

Description

Read the `--info-file` output generated by cutadapt for adapter trimming. Column structure differs depending on whether the input came from Nanopore (ONT) or Illumina sequencing.

Usage

read_info_file(file, delim = "\t", col_select = NULL, ...)

Value

A tibble with the parsed 'cutadapt' information. Column names are standardized.

Arguments

file

Path to the cutadapt info file (TSV).

delim

Field delimiter (default = "\t").

col_select

Optional tidyselect specification of which columns to read.

...

Additional arguments passed to [vroom::vroom()].

Details

- `read_info_file()` (Illumina) returns columns: `Seq.id`, `n_errors`, `start_adap`, `end_adap`, `seq_before_adap`, `matching_seq`, `seq_after_adap`, `adap_name`, `QScores_seq_before`, `QScores_matching`, `QScores_after`.

Examples

Run this code
test_info <- system.file("extdata", "cutadapt_info_illumina.txt", package="eDNAfuns")
df_illumina <- read_info_file(test_info)



Run the code above in your browser using DataLab