#id #list #fastq #file #record #retaining

bin+lib fq-filter-reads

This is a simple program to filter a fastq file with a provided list of IDs

1 unstable release

0.1.0 Jan 29, 2023

#235 in Biology

Apache-2.0

16KB
109 lines

fq-filter-reads

CI

This is a simple program to filter a fastq file with a provided list of IDs.

Install

Installation from source:

git clone https://github.com/wckdouglas/fq-filter-reads.git
cd fq-filter-reads
cargo install --path .

Usage

$ fq-filter-reads -h
Retaining fastq records with the given ID

Usage: fq-filter-reads [OPTIONS] --in-fastq <IN_FASTQ> --in-id-list <IN_ID_LIST>

Options:
      --in-fastq <IN_FASTQ>      input fastq file path
      --in-id-list <IN_ID_LIST>  input id list file, one per line
      --inverse                  only keep reads with ids NOT in the given id list i.e. removing any records with id in the id list
  -h, --help                     Print help
  -V, --version                  Print version

Example

Some test examples can be found under test_script.sh

Dependencies

~18MB
~319K SLoC