powered by
Functions to read sequence files into a tidy data frame with one row per sequence.
fasta_reader(path_to_fasta)fastq_reader(path_to_fastq, keepQ = FALSE)
fastq_reader(path_to_fastq, keepQ = FALSE)
- `fasta_reader()`: A tibble with columns: - `header`: sequence identifiers (without the `>`). - `seq`: nucleotide sequences.
- `fastq_reader()`: A tibble with columns: - `header`: sequence identifiers (without the `@`). - `seq`: nucleotide sequences. - `Qscores` (optional): quality scores, if `keepQ = TRUE`.
Character. Path to a FASTA file.
Character. Path to a FASTQ file.
Logical. If `TRUE`, keep a third column with quality scores when reading FASTQ files. Default is `FALSE`.
fasta_df <- fasta_reader(system.file("extdata", "test.fasta", package="eDNAfuns")) fastq_df <- fastq_reader(system.file("extdata", "test.fastq", package="eDNAfuns"), keepQ = TRUE)
Run the code above in your browser using DataLab