Changes between Version 56 and Version 57 of SOPs/qc_shortReads


Ignore:
Timestamp:
12/15/20 10:49:10 (4 years ago)
Author:
gbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/qc_shortReads

    v56 v57  
    311311The *common.out reads should be used for paired-read mapping.
    312312
     313== Select a subset of reads by read ID  ==
     314
     315To get a list of read IDs from a fastq file, one can use a command like
     316{{{
     317zmore Reads.fq.gz | awk 'NR % 4 == 1' | perl -pe 's/^\@//' >| Selected_read_IDs.txt
     318}}}
     319
     320Using 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{{{
     322seqtk subseq All_reads.fq.gz Selected_read_IDs.txt >| Selected_reads.fq
     323}}}
     324
    313325\\
    314326= Analyzing potential species composition/contamination of reads in a fastq file =