Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fastq-tool

This perl script could be used to parse the FASTQ file for various respects of processing.

Date: 2016/10/14
Upgrade: 2018/1/23
Author: Jeff

Usage: fastq_tool.pl [OPTIONS] < in.fastq

Options:
-h, -?, --help
        This help message.
-cr, --count-read
        Count total reads and bases from FASTQ file.
-c, --clip-primer
        Fetch reads that contained forward primer and reverse primer sequences on read 5'-end and read 3'-end, respectively, and then clip primers.
-fl, --fetch-long-read [length]
        Filter out the length of read shorter than the user-defined.
-fs, --fetch-short-read [length]
        Filter out the length of read longer than the user-defined.
-fa, --fastq-to-fasta
        Convert FASTQ format to FASTA format.
-fp, --fetch-paired-read [reverse_R2.fastq]
        Compare the FASTQ R1/R2 files and then output the paired reads into individual forward and reverse files. The FASTQ file of reverse reads need be named the reverse_R2.fastq! The ID of each read must have the original illumina format!
-m, --merge-pair-read [mismatch] [reverse_R2.fastq]
        Compare the paired-reads and then output forward reads that present similar context of DNA with reverse reads. The length of forward and reverse reads need be same. The FASTQ file of reverse reads need be named the reverse_R2.fastq! The ID of each read must have the original illumina format!
-rc, --reverse-complement
        Reverse complement of reads.
-rl, --re-label-read [read_label]
        Re-label reads to user defined label as prefix of label. The suffix of label will use continuous numeric format, such as 1, 2, 3 and so on.
-tf, --trim-read-five-prime [length]
        Trim reads from 5'-end according to the user-defined length.
-tt, --trim-read-three-prime [length]
        Trim reads from 3'-end according to the user-defined length.
-ff, --fetch-read-five-prime [length]
        Fetch subsequence from 5'-end of reads according to the user-defined length.
-ft, --fetch-read-three-prime [length]
        Fetch subsequence from 3'-end of reads according to the user-defined length.

If the flag of -c is used, please provide the primer file including forward and reserve sequences.
        Please refer the example file, i.e. primer.txt.

About

This perl script could be used to parse the FASTQ file for various respects of processing.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages