Giter Site home page Giter Site logo

preston / pfastqcount Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 140 KB

pfastqcount is an optimized C implementation of a FASTQ sequence prefix counter. The program counts the number of times every four-nucleotide prefix is encountered via the sequential memory mapping of each ASCII-encoded FASTQ file into the process space. This is useful as part of a genomic data sequencing pipeline to sanity check that barcodes used in multiplexed sample experiments occur as expected. An alternative Ruby implementation is provided (pfastqcount.rb) for maximum portability and validation. The C implementation has been written for 64-bit Unix-like systems only. The output of the program is valid comma-separated value (CSV) data that may be opened in your favorite spreadsheet software such as Excel, OpenOffice, R etc.

License: MIT License

Makefile 0.93% C 91.75% Ruby 7.31%

pfastqcount's Introduction

pfastqcount

Preston's FASTQ Primer Counter

Please use a release tag (not HEAD) for production purposes!

About

pfastqcount is an optimized C implementation of a FASTQ sequence prefix counter. The program counts the number of times every four-nucleotide prefix is encountered via the sequential memory mapping of each ASCII-encoded FASTQ file into the process space. This is useful as part of a genomic data sequencing pipeline to sanity check that barcodes used in multiplexed sample experiments occur as expected. An alternative Ruby implementation is provided (pfastqcount.rb) for maximum portability and validation. The C implementation has been written for 64-bit Unix-like systems only. The output of the program is valid comma-separated value (CSV) data that may be opened in your favorite spreadsheet software such as Excel, OpenOffice, R etc.

Please cite and attribute this work properly when using it in your own.

Input files are assumed to be ASCII-encoded and structured according to the FASTQ file format specification. The output may or may not be erroneous if the file is otherwise formatted.

Installation

You will need a C compiler (such as GCC) installed to compile the program. Most Linux systems ship with GCC. Mac OS X users should install Xcode before compiling. It is not officially supported on Windows, though patches will be accepted.

./build.sh

This will produce the pfastqcount binary for your system. You may move it elsewhere, if you like.

Usage

To get syntax help:

./pfastqcount

To run the program one one or more data files and print the results to the screen:

./pfastqcount 42 some_data.fastq more_data.fastq

To run the program one one or more data files and create a .csv file:

./pfastqcount 42 data1.fastq data2.fastq > results.csv

You may specify as many .fastq files as you'd like. The results will be merged and summed before output is generated.

Author

Preston Lee

License & Copyright

See LICENSE file for details.

pfastqcount's People

Stargazers

 avatar  avatar

Watchers

Preston Lee avatar  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.