knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(fastqR)
This is a short document to demonstrate the usage of the fastqR
package. The main functions of the package are laid out below:
You can parse a fastq file as shown below:
read_fastq(system.file("good.fq", package = "fastqR")) -> fastq_data fastq_data
You can also manually do a calculation of GC content
gc_content(c("GATCGCGATGCTATGCGTATGCG","TAGTATTGCTATTATATGATTA"))
The quality scores in a fastq file are encoded Phred scores. We have a function which can decode them.
decode_qualities(fastq_data$Qualities[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.