library(QuasR)# obtain a list of fastq file pathsfastqFiles <-system.file(package="ShortRead","extdata/E-MTAB-1147",c("ERR127302_1_subset.fastq.gz","ERR127302_2_subset.fastq.gz"))# defined processed fastq file namesoutfiles <-paste(tempfile(pattern=c("processed_1_","processed_2_")),".fastq",sep="")# process fastq filespreprocessReads(fastqFiles, outfiles, nBases=1, # remove reads that have more than 1 NtruncateEndBases=3, # trim 3 bases from the end of the reads Lpattern="ACCCGGGA", # Remove ACCCGGGA patern if it occurs at the start minLength=40) # remove reads shorter than 40 base-pairs