The dephd package

[Tags:gpl, program]

dephd - A simple tool for base calling and quality appraisal.

Reads files in phd-format (phred output), either specified individually, or in a directory (use the --input-dirs option to read directories or --input-list to read from an index file). Can also read FASTA with an associated quality file.

Can trim according to Lucy or Phred parameters, can mask by quality, can plot graphs (via gnuplot) of sequence quality to a window, or to JPG/EPS files. Can categorize sequences according to overall quality.

The Darcs repository is at

[Skip to Readme]


Versions 0.0, 0.1, 0.1.1, 0.1.3, 0.1.4, 0.1.5, 0.1.6
Dependencies base (==3.*), bio (>=0.4), bytestring, directory, process, regex-compat [details]
License GPL
Author Ketil Malde
Maintainer Ketil Malde <>
Stability Unknown
Category Bioinformatics
Home page
Uploaded Tue Jun 16 10:38:03 UTC 2009 by KetilMalde
Distributions NixOS:0.1.6
Downloads 1608 total (6 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-12-31 [all 6 reports]


Maintainer's Corner

For package maintainers and hackage trustees

Readme for dephd

Readme for dephd-0.1.3


dephd - A simple tool for base calling and quality appraisal

Reads files in phd-format (phred output), either specified individually,
or in a directory (use the --dir option to read directories).


You need the GHC compiler, or if you know what you are doing, another
Haskell compiler or interpreter with Cabal.  You also need to install
the 'bio' library (darcs get

With those things in place, you should be able to do

     runhaskell Setup configure
     runhaskell Setup build
     sudo runhaskell Setup install

Optionally, add "--prefix $HOME" (without the quotes) after configure
to install to your home directory - in which case you don't need the 'sudo'.


A brief usage report is printed if you run 'dephd -h'.  Somewhat more detailed:

Input is specified either as a list of phd-files (typcially generated
by Phred), a list of directories containing phd-files (using the
--input-dirs) option, a file containing a list of names of phd-files
(--input-list), or a Fasta and associated quality file (-i foo.fasta

Output is specified by -J, -X, -P, -R foo.ranks, -F foo.fasta, and/or
-Q foo.qual.  The first three generate a plot of sequence quality in
JPEG files, an X window, or Postscript files, respectively.  If you
use -X on multiple files, hit q to terminate one window and go to the

The remaining three options (-R, -F, and -Q) output different aspects
of the sequence information to files (specify '-' for printing to
standard output instead - obviously this will be messy if you do it
for more than one option!).  -F and -Q is for generating the standard
Fasta and Quality files, while -R produces a file with one line per
sequence containing various quality measures, including a verdict
ranging from Excellent, through Good and Poor, to Junk.

Filtering can be specified with the -t option, which interprets
trimming information from Phred or Lucy, and chops off the offending
parts, or with the -q options, which masks poor quality parts of
sequences to lower case, and really poor quality parts to 'n'


Not many, I hope.  The program should work in (approximately) constant
space, and be able to deal with large amounts of sequences.

For further questions, email me at <>