Changes between Version 41 and Version 42 of SOPs/qc_shortReads
- Timestamp:
- 09/26/17 08:48:11 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/qc_shortReads
v41 v42 210 210 * more options than fastx_clipper, such as specifically trimming 5' or 3' adapters and specifying error rate (allowed mismatches) 211 211 * much more conservative than fastx_clipper. 212 * [wiki:SOPs/cutadapt sample usage] 212 * In paired-end mode, if a read is removed from one file, its pair will be removed from the other file 213 * [https://cutadapt.readthedocs.io/en/stable/guide.html|User guide] 213 214 * a vs b options from [[http://journal.embnet.org/index.php/embnetjournal/article/view/200|EMBnet.journal]] 214 215 [[Image(cutadapt.2.jpeg,500px)]] 215 * sample command: 216 217 * sample commands: 216 218 {{{ 217 bsub cutadapt -a GATCGGAAGAGCTCGTATGCCGTCTT -o Nanog_noAdapter.fastq Nanog.fastq 219 # single-end reads 220 bsub cutadapt -a GATCGGAAGAGCTCGTATGCCGTCTT -o Reads_noAdapter.fastq Reads.fastq 218 221 219 222 In the above command: 220 223 -a: Sequence of an adapter that was ligated to the 3' end. 221 224 -o: output file name 225 226 # paired-end reads 227 bsub cutadapt -a GATCGGAAGAGCTCGTATGCCGTCTT -o Reads_trimmed.1.fq -p Reads_trimmed.2.fq Reads.1.fq Reads.2.fq 222 228 }}} 223 229 224 225 * '''Method 2''': [[http://hannonlab.cshl.edu/fastx_toolkit/commandline.html#fastx_clipper_usage|fastx_clipper]] 230 * '''Method 2''': [[https://www.bioinformatics.babraham.ac.uk/projects/trim_galore/|Trim Galore!]] combines cutadapt, FastQC, and the ability to guess what your adapters are 231 * Sample command 232 {{{ 233 # Usage (single-end reads): trim_galore [options] <filename(s)> 234 trim_galore --phred64 --fastqc -o my_trimmed_reads raw_reads/My_reads.fq.gz 235 # Usage (paired-end reads; discard pair if at least one read is too short): 236 trim_galore --paired --phred64 --fastqc -o my_trimmed_reads raw_reads/My_reads_1.fq.gz raw_reads/My_reads_2.fq.gz 237 # Get all options 238 trim_galore --help 239 240 --phred64 ==> Use Illumina 1.5 encoding quality scores 241 --fastqc ==> Run FastQC after trimming 242 -o ==> Print output files in this directory instead of the current directory 243 }}} 244 245 * '''Method 3''': [[http://hannonlab.cshl.edu/fastx_toolkit/commandline.html#fastx_clipper_usage|fastx_clipper]] 226 246 * Sample command: 227 247 {{{ … … 243 263 * fastx_clipper -a CTGTAGGCACCATCAAT -Q 33 -i s2_sequence.txt -v -l 22 -o s2_sequence_noLinker.txt 244 264 245 * '''Method 3''': [[https://www.bioinformatics.babraham.ac.uk/projects/trim_galore/|Trim Galore!]] combines cutadapt, FastQC, and the ability to guess what your adapters are 246 * Sample command 247 {{{ 248 # Usage : trim_galore [options] <filename(s)> 249 trim_galore --phred64 --fastqc -o my_trimmed_reads raw_reads/My_reads.fq.gz 250 # Get all options 251 trim_galore --help 252 253 --phred64 ==> Use Illumina 1.5 encoding quality scores 254 --fastqc ==> Run FastQC after trimming 255 -o ==> Print output files in this directory instead of the current directory 256 }}} 265 257 266 258 267 == Trim reads to a specified length ==