Git Product home page Git Product logo

filter_fastq_by_average_base_quality's Introduction

Filter_FASTQ_By_Average_Base_Quality

Installation

cd to-some-desired-base-directory
git clone https://github.com/jelber2/Filter_FASTQ_By_Average_Base_Quality.git
cd Filter_FASTQ_By_Average_Base_Quality
cargo build --release

Usage

Reads in from stdin, allows user to specify average base quality value to filter reads by, and outputs to stdout, other information is outputted to stderr: For example:

echo -e "@1\n\ACTG\n+\n????" |./target/release/Filter_FASTQ_By_Average_Base_Quality 30

PHRED Quality =  Percentile
30            = 0th
30            = 1.25th
30            = 2.5th
30            = 5th
30            = 10th
30            = 20th
30            = 25th
30            = 50th
30            = 75th
30            = 100th
1 total reads
1 kept reads at average Q30

@1
\ACTG
+
????

For a real use case, one might do

zcat 0.pbccs-6.3.0.icecreamfinder-38.94.fastq.gz |~/git/Filter_FASTQ_By_Average_Base_Quality/target/release/Filter_FASTQ_By_Average_Base_Quality 30 > /dev/null

PHRED Quality =  Percentile
19.987514            = 0th
20.295076            = 1.25th
20.589355            = 2.5th
21.206745            = 5th
22.52666            = 10th
25.032253            = 20th
26.204447            = 25th
31.818943            = 50th
36.49015            = 75th
41.000195            = 100th
14411 total reads
8397 kept reads at average Q30

Then,

zcat 0.pbccs-6.3.0.icecreamfinder-38.94.fastq.gz |~/git/Filter_FASTQ_By_Average_Base_Quality/target/release/Filter_FASTQ_By_Average_Base_Quality 21.206745 |gzip > No-5th-percentile.fastq.gz

To filter out the lower 5th percentile.

filter_fastq_by_average_base_quality's People

Contributors

jelber2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.