All Projects → sanger-pathogens → snp-sites

sanger-pathogens / snp-sites

Licence: other
Finds SNP sites from a multi-FASTA alignment file

Programming Languages

c
50402 projects - #5 most used programming language
M4
1887 projects
perl
6916 projects
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to snp-sites

saffrontree
SaffronTree: Reference free rapid phylogenetic tree construction from raw read data
Stars: ✭ 17 (-90.66%)
Mutual labels:  research, genomics, pathogen, sequencing, next-generation-sequencing, bioinformatics-pipeline, global-health, infectious-diseases
plasmidtron
Assembling the cause of phenotypes and genotypes from NGS data
Stars: ✭ 27 (-85.16%)
Mutual labels:  research, genomics, pathogen, sequencing, next-generation-sequencing, bioinformatics-pipeline, global-health, infectious-diseases
gff3toembl
Converts Prokka GFF3 files to EMBL files for uploading annotated assemblies to EBI
Stars: ✭ 27 (-85.16%)
Mutual labels:  research, genomics, pathogen, sequencing, next-generation-sequencing, bioinformatics-pipeline, global-health, infectious-diseases
assembly improvement
Improve the quality of a denovo assembly by scaffolding and gap filling
Stars: ✭ 46 (-74.73%)
Mutual labels:  research, genomics, pathogen, sequencing, next-generation-sequencing, bioinformatics-pipeline, global-health, infectious-diseases
mlst check
Multilocus sequence typing by blast using the schemes from PubMLST
Stars: ✭ 22 (-87.91%)
Mutual labels:  research, genomics, pathogen, sequencing, next-generation-sequencing, bioinformatics-pipeline, global-health, infectious-diseases
gubbins
Rapid phylogenetic analysis of large samples of recombinant bacterial whole genome sequences using Gubbins
Stars: ✭ 103 (-43.41%)
Mutual labels:  research, genomics, pathogen, sequencing, next-generation-sequencing, bioinformatics-pipeline, global-health, infectious-diseases
tiptoft
Predict plasmids from uncorrected long read data
Stars: ✭ 27 (-85.16%)
Mutual labels:  research, genomics, pathogen, bioinformatics-pipeline, global-health, infectious-diseases
Artemis
Artemis is a free genome viewer and annotation tool that allows visualization of sequence features and the results of analyses within the context of the sequence, and its six-frame translation
Stars: ✭ 135 (-25.82%)
Mutual labels:  research, genomics, sequencing
Circlator
A tool to circularize genome assemblies
Stars: ✭ 121 (-33.52%)
Mutual labels:  research, genomics, sequencing
Ariba
Antimicrobial Resistance Identification By Assembly
Stars: ✭ 96 (-47.25%)
Mutual labels:  research, genomics, sequencing
Gubbins
Rapid phylogenetic analysis of large samples of recombinant bacterial whole genome sequences using Gubbins
Stars: ✭ 67 (-63.19%)
Mutual labels:  research, genomics, sequencing
Roary
Rapid large-scale prokaryote pan genome analysis
Stars: ✭ 176 (-3.3%)
Mutual labels:  research, genomics, sequencing
Deepvariant
DeepVariant is an analysis pipeline that uses a deep neural network to call genetic variants from next-generation DNA sequencing data.
Stars: ✭ 2,404 (+1220.88%)
Mutual labels:  genomics, sequencing
Sequenceserver
Intuitive local web frontend for the BLAST bioinformatics tool
Stars: ✭ 198 (+8.79%)
Mutual labels:  genomics, sequencing
Hgvs
Python library to parse, format, validate, normalize, and map sequence variants. `pip install hgvs`
Stars: ✭ 138 (-24.18%)
Mutual labels:  genomics, sequencing
Htsjdk
A Java API for high-throughput sequencing data (HTS) formats.
Stars: ✭ 220 (+20.88%)
Mutual labels:  genomics, sequencing
bac-genomics-scripts
Collection of scripts for bacterial genomics
Stars: ✭ 39 (-78.57%)
Mutual labels:  genomics, sequencing
Genomicsqlite
Genomics Extension for SQLite
Stars: ✭ 90 (-50.55%)
Mutual labels:  genomics, sequencing
Genomics
A collection of scripts and notes related to genomics and bioinformatics
Stars: ✭ 101 (-44.51%)
Mutual labels:  genomics, sequencing
HLA
xHLA: Fast and accurate HLA typing from short read sequence data
Stars: ✭ 84 (-53.85%)
Mutual labels:  genomics, sequencing

SNP-sites

Rapidly extracts SNPs from a multi-FASTA alignment.

Build Status
License: GPL v3
status
install with bioconda
Container ready
Docker Build Status
Docker Pulls
codecov

Contents

Introduction

Rapidly decreasing genome sequencing costs have led to a proportionate increase in the number of samples used in prokaryotic population studies. Extracting single nucleotide polymorphisms (SNPs) from a large whole genome alignment is now a routine task, but existing tools have failed to scale efficiently with the increased size of studies. These tools are slow, memory inefficient and are installed through non-standard procedures. We present SNP-sites which can rapidly extract SNPs from a multi-FASTA alignment using modest resources and can output results in multiple formats for downstream analysis. SNPs can be extracted from a 8.3 GB alignment file (1,842 taxa, 22,618 sites) in 267 seconds using 59 MB of RAM and 1 CPU core, making it feasible to run on modest computers. It is easy to install through the Debian and Homebrew package managers, and has been successfully tested on more than 20 operating systems. SNP-sites is implemented in C and is available under the open source license GNU GPL version 3.

Installation

There are a few ways to install SNP-sites. The simpliest way is using apt (Debian/Ubuntu) or Conda. If you encounter an issue when installing SNP-sites please contact your local system administrator. If you encounter a bug please log it here.

  • Linux - Ubuntu/Debian
  • OSX/Linux - using Bioconda
  • OSX/Linux - from source
  • OSX/Linux - from a release tarball

Linux - Ubuntu/Debian

If you have a recent version of Ubuntu or Debian then you can install it using apt.

   apt-get install snp-sites

OSX/Linux - using Bioconda

Install Conda and install the bioconda channels.

conda config --add channels conda-forge
conda config --add channels defaults
conda config --add channels r
conda config --add channels bioconda
conda install snp-sites

OSX/Linux - from source

This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using Conda instead. First install a standard development environment (e.g. gcc, automa
ke, autoconf, libtool). Download the software from GitHub.

autoreconf -i -f
./configure
make
sudo make install

OSX/Linux - from a release tarball

This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using Conda instead. First install a standard development environment (e.g. gcc, automa
ke, autoconf, libtool).

tar xzvf snp-sites-x.y.z.tar.gz
cd snp-sites-x.y.z
./configure
make
sudo make install

All platforms - Docker

Bioconda produce a Docker container so you can use the software out of the box. Install Docker and then pull the container from Bioconda https://quay.io/repository/biocontainers/snp-sites

Running the tests

The test can be run from the top level directory:

autoreconf -i
./configure
make
make check

This requires libcheck (the check package in Ubuntu) to be installed.

Usage

Usage: snp-sites [-mvph] [-o output_filename] <file>
This program finds snp sites from a multi fasta alignment file.
 -r     output internal pseudo reference sequence
 -m     output a multi fasta alignment file (default)
 -v     output a VCF file
 -p     output a phylip file
 -o STR specify an output filename [STDOUT]
 -c     only output columns containing exclusively ACGT
 -b     output monomorphic sites, used for BEAST
 -h     this help message
 -V     print version and exit
 <file> input alignment file which can optionally be gzipped

This application takes in a multi fasta alignment, finds all the SNP sites, then outputs the SNP sites in the following formats:

  • a multi fasta alignment,
  • VCF,
  • relaxed phylip format.

Example input

For the given input file:

>sample1
AGACACAGTCAC
>sample1
AGACAC----AC
>sample1
AAACGCATTCAN

the output is:

>sample1
GAG
>sample1
GA-
>sample1
AGT

Example usage

snp-sites my_alignment.aln
snp-sites my_gzipped_alignment.aln.gz

Output

  • Multi Fasta Alignment - Similar to the input file but just containing the SNP sites.

  • VCF - This contains the position of each SNP in the reference sequence, and the occurrence in each other sample. Can be loaded into Artemis for visualisation.

  • Relaxed Phylip format - All the SNP sites in a format for RAxML and other tree building applications.

License

SNP-sites is free software, licensed under GPLv3.

Feedback/Issues

This software is community supported. Please report any issues to the issues page.

Citation

If you use this software please cite:

"SNP-sites: rapid efficient extraction of SNPs from multi-FASTA alignments", Andrew J. Page, Ben Taylor, Aidan J. Delaney, Jorge Soares, Torsten Seemann, Jacqueline A. Keane, Simon R. Harris, Microbial Genomics 2(4), (2016)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].