View source: R/parse_methylation_from_fastq.R
| read_fastq | R Documentation |
This function simply reads a FASTQ file into a dataframe containing
columns for read ID, sequence, and quality scores.
Optionally also contains a column of sequence lengths.
See fastq_quality_scores for an explanation of quality.
Resulting dataframe can be written back to FASTQ via write_fastq().
To read/write a modified FASTQ containing modification information
(SAM/BAM MM and ML tags) in the header lines, use
read_modified_fastq() and write_modified_fastq().
read_fastq(filename = file.choose(), calculate_length = TRUE)
filename |
|
calculate_length |
|
dataframe. A dataframe with read, sequence, quality, and optionally sequence_length columns.
## Locate file
fastq_file <- system.file("extdata",
"example_many_sequences_raw.fastq",
package = "ggDNAvis")
## View file
for (i in 1:16) {
cat(readLines(fastq_file)[i], "\n")
}
## Read file to dataframe
read_fastq(fastq_file, calculate_length = FALSE)
read_fastq(fastq_file, calculate_length = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.