Skip to content

neufeld/pandaseq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5eb701b · Dec 21, 2020
Mar 3, 2017
May 15, 2014
Nov 6, 2014
May 23, 2018
Mar 11, 2014
Jul 5, 2018
Nov 18, 2013
Jan 29, 2012
Sep 20, 2016
Oct 12, 2013
Jul 5, 2018
Nov 6, 2014
Nov 2, 2013
Jul 31, 2014
Dec 24, 2013
May 15, 2015
Jul 17, 2014
Jul 17, 2014
Jul 17, 2014
Jul 31, 2014
Nov 11, 2014
Mar 27, 2017
Dec 24, 2013
Nov 6, 2014
Mar 13, 2015
Jul 17, 2014
Nov 6, 2014
Nov 6, 2014
Mar 13, 2015
May 15, 2015
Jan 29, 2012
Feb 13, 2014
Apr 19, 2013
May 23, 2013
Apr 26, 2013
Jan 10, 2014
Sep 20, 2016
Mar 3, 2017
May 15, 2015
Nov 23, 2013
May 15, 2015
Jun 16, 2015
Mar 13, 2015
Nov 6, 2014
Aug 29, 2013
Jul 18, 2014
Jan 7, 2014
Jun 12, 2015
Feb 1, 2014
Dec 24, 2013
Nov 24, 2014
Dec 24, 2013
Jul 17, 2014
Jul 18, 2014
Nov 11, 2014
Mar 17, 2017
Dec 20, 2013
Mar 13, 2015
Mar 21, 2017
Sep 26, 2012
Nov 6, 2014
Aug 30, 2018
Sep 26, 2012
Mar 4, 2013
Nov 6, 2014
Nov 6, 2014
Nov 6, 2014
Mar 6, 2013
Sep 20, 2016
Feb 1, 2014
May 24, 2013
May 26, 2013
Aug 15, 2013
Dec 19, 2013
Jan 24, 2014
Jan 1, 2014
Oct 31, 2014
Jan 24, 2014
Mar 8, 2014
Aug 29, 2013
Sep 3, 2013
Jan 10, 2014
Jan 10, 2014
Dec 21, 2020
Mar 13, 2015
Aug 9, 2014
Oct 9, 2013
Mar 6, 2013
Nov 18, 2015
Nov 22, 2013
Dec 6, 2012
Jul 17, 2014
Jul 17, 2014
Jul 17, 2014
May 15, 2015
Jul 17, 2014
Jul 17, 2014
Jul 17, 2014
Apr 26, 2016
Jul 18, 2014
Jul 17, 2014
Jan 24, 2014
Jul 17, 2014
May 15, 2015
Aug 29, 2013
Dec 19, 2013
Sep 20, 2016
Jul 17, 2014
Jul 31, 2014
Jun 29, 2016
May 15, 2015

Repository files navigation

PANDASEQ

PANDASEQ is a program to align Illumina reads, optionally with PCR primers embedded in the sequence, and reconstruct an overlapping sequence.

INSTALLATION

Build Status

Binary packages are available for recent versions of Windows, MacOS and Linux. Source code is also available. See Installation instructions for details.

Development packages for zlib and libbz2 are needed, as well as a standard compiler environment. On Ubuntu, this can be installed via:

sudo apt-get install build-essential libtool automake zlib1g-dev libbz2-dev pkg-config

On MacOS, the Apple Developer tools and Fink (or MacPorts or Brew) must be installed, then:

sudo fink install bzip2-dev pkgconfig

The newer AutoTools from Fink are needed over the ones provided by Apple, so ensure that Fink's bin directory precedes /usr/bin in the $PATH.

After the support packages are installed, one should be able to do:

./autogen.sh && ./configure && make && sudo make install

If you receive an error that libpandaseq.so.[number] is not found on Linux, try running:

sudo ldconfig

USAGE

Please consult the manual page by invoking:

man pandaseq

or visiting online PANDAseq manual page.

The short version is:

pandaseq -f forward.fastq -r reverse.fastq

REPORTING BUGS

Before filing a bug, consult how to file a bug.

Please run:

curl https://raw.github.com/neufeld/pandaseq/master/pandabug | sh

or

wget -O- https://raw.github.com/neufeld/pandaseq/master/pandabug | sh

to create a header with basic details about your system. Please include:

  1. The output of the above script.
  2. The exact error message. If this is a compilation error, do not truncate the output. If this is a problem when assembling, keep the INFO ARG lines, and the last few lines, but you may truncate the middle.
  3. If you have tried multiple different things, please list them all.
  4. Your sequencing data may be requested. This usually does not necessitate all the reads.

BINDING

PANDAseq may be used in other programs via a programmatic interface. Consult the header file pandaseq.h for more details. The C interface is pseudo-object oriented and documented in the header. The library provides pkg-config information, so compiling against it can be done using something like:

cc mycode.c `pkg-config --cflags --libs pandaseq-2`

or using, in configure.ac:

PKG_CHECK_MODULES(PANDASEQ, [ pandaseq-2 >= 2.5 ])

Other language bindings are welcome.

FAQ

Can I insist that PANDAseq only assemble perfect sequences?

Yes, but you shouldn't want to do it. The whole point is to fix sequences which are probably good. There is no quality setting that will achieve this effect. You can use the plugin completely_miss_the_point, but this really does miss the point. Moreover, assuming that the sequencer is right in the overlap region and in the non-overlapping regions requires an unsound leap in statistics.

Can I use SAM/BAM files as input without converting them to FASTQ?

Yes. PANDAseq-sam extends PANDAseq to do this. SAM/BAM files do not guarantee that sequences will be in the right order, so using SAM/BAM files may be slower and PANDAseq will use more memory.

The scores of the output bases seem really low. What's wrong?

Nothing. The quality scores of the output do not have any similarity to the original quality scores and are not uniform across the sequence (i.e., the overlap is scored differently from the unpaired ends.

In the overlap region where there is a mismatch, it is probable that one base was sequenced correctly and the other was sequenced incorrectly. If both bases have high scores (i.e., are probably correct), the chance of the resulting base is low (i.e., is probably incorrect). For more information, see the paper. Also, remember that the PHRED to probability conversion is not linear, so most scores are relatively high. It's also not uncommon to see the PHRED score !, which is zero, but in this context, it means less than " (PHRED = 1, P = .20567).

Again, these scores are not meant to be interpreted as regular scores and should not be processed by downstream applications expecting PHRED scores from Illumina sequences.

The scores of the non-overlapping regions are not the same as the original reads. Why?

The PHRED scores from the input are not copied directly to the output when using FASTQ (-F) output. They go through a transformation from PHRED scores into probabilities, which is what PANDAseq uses. When output as FASTQ, the probabilities are converted back to PHRED scores. The rounding error involved can cause a score to jump by one.

How many sequences should there be in the output?

You should expect that PANDAseq will output fewer sequences than the read pairs given to it. The log contains several STAT lines that will help with the analysis. Lines containing STAT READS report the number of read pairs in the input. Sequences first go through a number of basic filtering steps and then user-specified filtering steps. If provided, forward and reverse primers are aligned and clipped. The optimal overlap is selected and the sequence is constructed. The quality score is verified and any user-specified filtering is done. Any of these steps might fail and cause the sequence to be rejected. For each of the possible rejection reasons, the log file will contain a STAT line reporting the number of sequences filtered, as is described in the Output Statistics section of the manual.

If multiple threads are used, which the default on most platforms, each thread collects this information separately. The output log will output a group of STAT lines per thread.

The STAT SLOW line is informative; those sequences were not rejected. The other STAT lines (i.e., not READS or SLOW) should sum to the STAT READS line.

ALTERNATIVES

Similar algorithms (i.e., determine the overlap, then fuse the reads):

Completely different methods:

CITATION

Andre P Masella, Andrea K Bartram, Jakub M Truszkowski, Daniel G Brown and Josh D Neufeld. PANDAseq: paired-end assembler for illumina sequences. BMC Bioinformatics 2012, 13:31. http://www.biomedcentral.com/1471-2105/13/31