Changes between Version 56 and Version 57 of SOPs/qc_shortReads
- Timestamp:
- 12/15/20 10:49:10 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/qc_shortReads
v56 v57 311 311 The *common.out reads should be used for paired-read mapping. 312 312 313 == Select a subset of reads by read ID == 314 315 To get a list of read IDs from a fastq file, one can use a command like 316 {{{ 317 zmore Reads.fq.gz | awk 'NR % 4 == 1' | perl -pe 's/^\@//' >| Selected_read_IDs.txt 318 }}} 319 320 Using this list of read IDs, one can extract this subset of reads from a larger fastq file (using [[https://github.com/lh3/seqtk|seqtk]]) like 321 {{{ 322 seqtk subseq All_reads.fq.gz Selected_read_IDs.txt >| Selected_reads.fq 323 }}} 324 313 325 \\ 314 326 = Analyzing potential species composition/contamination of reads in a fastq file =