## Load a somewhat contaminated FASTQ file
s.fastq <- readSeqFile(system.file('extdata', 'test.fastq',
package='qrqc'), hash.prop=1)
## Load a really contaminated FASTQ file
s.contam.fastq <- readSeqFile(system.file('extdata',
'test-contam.fastq', package='qrqc'), hash.prop=1)
## Load a random (equal base frequency) FASTA file
s.random.fasta <- readSeqFile(system.file('extdata',
'random.fasta', package='qrqc'), type="fasta", hash.prop=1)
## Make K-L divergence plot - shows slight 5'-end bias. Note units
## (bits)
suppressWarnings(kmerKLPlot(s.fastq))
## Plot multiple K-L divergence plots
suppressWarnings(kmerKLPlot(list("highly contaminated"=s.contam.fastq, "less
contaminated"=s.fastq, "random"=s.random.fasta)))
Run the code above in your browser using DataLab