Skip to content
Snippets Groups Projects
Commit c1af38fd authored by kohleman's avatar kohleman
Browse files

initial check-in

SVN: 21247
parent 0ce25a0e
No related branches found
No related tags found
No related merge requests found
# Taken from http://www.bioconductor.org/help/workflows/high-throughput-sequencing/
## Load packages; also loads Biostrings, IRanges, ...
library(multicore)
library(ShortRead)
args <- commandArgs(TRUE)
seq <- readFastq(args[1])
pdf(file=paste(args[1],"NumberOfOccurrences.pdf", sep="_"))
## Calculate and plot cumulative reads vs. occurrences
tbl <- tables(seq)[[2]]
xyplot(cumsum(nReads * nOccurrences) ~ nOccurrences, tbl,
scales=list(x=list(log=TRUE)), main=args[1], type="b", pch=20,
xlab="Number of Occurrences",
ylab="Cumulative Number of Reads")
dev.off()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment