What it does
For de novo analyses, this program will pull in paired-end reads, if available, assemble the paired-end contig and merge it with the single-end locus, align reads to the locus, and call SNPs.
For reference-aligned analyses, this program will build loci from the single and/or paired-end reads before calling SNPs. The single- and paired-end reads must be aligned and stored together in the intput BAM or SAM files and the reads must be sorted. The gstacks program will detect if single- or paired-end reads are present.
In either mode, gstacks is able to remove PCR duplicates if requested.
Input files
If a population map is given BAM records must be assigned to samples using BAM "reads groups" (gstacks uses the ID/identifier and SM/sample name fields). Read groups must be consistent if repeated different files. Otherwise read groups are unneeded and ignored.
Output files
Created by:
Stacks was developed by Julian Catchen with contributions from Angel Amores, Paul Hohenlohe, and Bill Cresko
Project links: