View source: R/parse_fastq_eestats2.R
parse_fastq_eestats2 | R Documentation |
Load USEARCH fastq_eestats2 report showing how many reads will pass an expected error filter at different length thresholds.
parse_fastq_eestats2(file, long = FALSE)
file |
the name of the input file. |
long |
a logical value indicating wheather the results should be returned in long format. |
This function depends on plyr and reshape2 packages. Additional details on 'fastq_eestats2' function can be found on http://drive5.com/usearch/manual/cmd_fastq_eestats2.html
data frame
## Run USEARCH
# usearch -fastq_eestats2 reads.fq -output eestats2.txt -length_cutoffs 200,300,10
parse_fastq_eestats2("eestats2.txt", long = F)
parse_fastq_eestats2("eestats2.txt", long = T)
library(ggplot2)
ee <- parse_fastq_eestats2("eestats2.txt", long = T)
ggplot(data = ee, aes(x = Length, y = NumberOfReads, group = MaxEE, color = as.factor(MaxEE))) +
geom_point(size = 2) +
geom_line() +
theme_classic()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.