All Projects → pgxcentre → manhattan_generator

pgxcentre / manhattan_generator

Licence: other
Manhattan plot Generator

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to manhattan generator

region-plot
A tool to plot significant regions of GWAS
Stars: ✭ 20 (+0%)
Mutual labels:  genomics, genetics, plot
awesome-genetics
A curated list of awesome bioinformatics software.
Stars: ✭ 60 (+200%)
Mutual labels:  genomics, genetics
graphsim
R package: Simulate Expression data from igraph network using mvtnorm (CRAN; JOSS)
Stars: ✭ 16 (-20%)
Mutual labels:  genomics, genetics
fwdpy11
Forward-time simulation in Python using fwdpp
Stars: ✭ 25 (+25%)
Mutual labels:  genomics, genetics
dee2
Digital Expression Explorer 2 (DEE2): a repository of uniformly processed RNA-seq data
Stars: ✭ 32 (+60%)
Mutual labels:  genomics, genetics
HumanIdiogramLibrary
Resource of human chromosome schematics & images
Stars: ✭ 76 (+280%)
Mutual labels:  genomics, genetics
genipe
Genome-wide imputation pipeline
Stars: ✭ 28 (+40%)
Mutual labels:  genomics, genetics
genoiser
use the noise
Stars: ✭ 15 (-25%)
Mutual labels:  genomics
OpenOmics
A bioinformatics API and web-app to integrate multi-omics datasets & interface with public databases.
Stars: ✭ 22 (+10%)
Mutual labels:  genomics
DriverPower
DriverPower
Stars: ✭ 22 (+10%)
Mutual labels:  genomics
graph
A basic plotting lib in nim
Stars: ✭ 25 (+25%)
Mutual labels:  plot
instaGRAAL
Large genome reassembly based on Hi-C data, continuation of GRAAL
Stars: ✭ 32 (+60%)
Mutual labels:  genomics
nthash
ntHash implementation in Rust
Stars: ✭ 26 (+30%)
Mutual labels:  genomics
genepattern-server
The GenePattern Server web application
Stars: ✭ 26 (+30%)
Mutual labels:  genomics
shell-genomics
Introduction to the Command Line for Genomics
Stars: ✭ 54 (+170%)
Mutual labels:  genomics
gubbins
Rapid phylogenetic analysis of large samples of recombinant bacterial whole genome sequences using Gubbins
Stars: ✭ 103 (+415%)
Mutual labels:  genomics
CUT-RUNTools-2.0
CUT&RUN and CUT&Tag data processing and analysis
Stars: ✭ 36 (+80%)
Mutual labels:  genomics
mapping-iterative-assembler
Consensus calling (or "reference assisted assembly"), chiefly of ancient mitochondria
Stars: ✭ 15 (-25%)
Mutual labels:  genomics
GnuPlot
A PHP Library for using GnuPlot
Stars: ✭ 26 (+30%)
Mutual labels:  plot
CuteVCF
simple viewer for variant call format using htslib
Stars: ✭ 30 (+50%)
Mutual labels:  genomics

Manhattan Plot Generator

manhattan_generator is a python tool to create beautiful Manhattan plots.

Dependencies

Here are the dependencies of the tool:

Installation

We recommend installing the tool in a Python virtual environment.

manhattan_generator should work on Windows and MacOS, even though it hasn't been fully tested for full compatibility.

Basic usage

$ manhattan_generator --help
usage: manhattan_generator [-h] [-v] [--twopoint FILE] [--multipoint FILE]
                           [--col-chr COL] [--col-name COL] [--col-pos COL]
                           [--col-cm COL] [--col-pvalue COL] [--col-lod COL]
                           [-o NAME] [-f FORMAT] [--web] [--dpi INT] [--bp]
                           [--use-pvalues] [--exclude-chr STRING]
                           [--no-negative-values] [--max-ylim FLOAT]
                           [--min-ylim FLOAT] [--no-y-padding]
                           [--graph-title TITLE] [--graph-xlabel TEXT]
                           [--graph-ylabel TEXT] [--graph-width WIDTH]
                           [--graph-height HEIGHT] [--point-size SIZE]
                           [--significant-point-size SIZE]
                           [--abline POS1,POS2,...]
                           [--significant-threshold FLOAT] [--no-annotation]
                           [--axis-text-size INT] [--chr-text-size INT]
                           [--label-text-size INT]
                           [--chromosome-box-color COLOR]
                           [--even-chromosome-color COLOR]
                           [--odd-chromosome-color COLOR]
                           [--multipoint-color COLOR]
                           [--significant-color COLOR]

This script produces nice Manhattan plots for either linkage or GWAS results.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit

Input Options:
  Options for the input file(s) (name of the file, type of graph, etc.).
  Note that for GWAS results, only the '--twopoint' option should be used.

  --twopoint FILE       The input FILE for two-point linkage.
  --multipoint FILE     The input FILE for multipoint linkage.

Column Options:
  The name of the different columns in the input file(s).

  --col-chr COL         The name of the column containing the chromosomes
                        [Default: chr].
  --col-name COL        The name of the column containing the marker names
                        [Default: name].
  --col-pos COL         The name of the column containing the marker positions
                        [Default: pos].
  --col-cm COL          The name of the column containing the marker cM
                        [Default: cm].
  --col-pvalue COL      The name of the column containing the marker p values
                        [Default: p_value]
  --col-lod COL         The name of the column containing the marker LOD score
                        [Default: lod]

Graph Output Options:
  Options for the ouput file (name of the file, type of graph, etc.).

  -o NAME, --output NAME
                        The NAME of the ouput file [Default: manhattan].
  -f FORMAT, --format FORMAT
                        The FORMAT of the plot (ps, pdf, png, eps) [Default:
                        png].
  --web                 Always write a PNG file for web display, and return
                        the path of the PNG file.
  --dpi INT             The quality of the output (in dpi) [Default: 600].

Graph Options:
  Options for the graph type (two-point, multipoint, etc.).

  --bp                  Use physical positions (bp) instead of genetic
                        positions (cM).
  --use-pvalues         Use pvalues instead of LOD score. Requires to compute
                        -log10(pvalue).
  --exclude-chr STRING  Exclude those chromosomes (list of chromosomes,
                        separated by a coma) [Default: None].

Graph Presentation Options:
  Options for the graph presentation (title, axis label, etc.).

  --no-negative-values  Do not plot negative values.
  --max-ylim FLOAT      The maximal Y value to plot [Default: maximum of
                        max(LOD) and 1+significant-threshold].
  --min-ylim FLOAT      The minimal Y value to plot [Default: -2.0].
  --no-y-padding        Do not add Y padding to the Y limit
  --graph-title TITLE   The TITLE of the graph [Default: empty].
  --graph-xlabel TEXT   The TEXT for the x label. [Default: Chromosome].
  --graph-ylabel TEXT   The TEXT for the y label. [Default: LOD].
  --graph-width WIDTH   The WIDTH of the graph, in inches [Default: 14].
  --graph-height HEIGHT
                        The HEIGHT of the graph, in inches [Default: 7].
  --point-size SIZE     The SIZE of each points [Default: 2.1].
  --significant-point-size SIZE
                        The SIZE of each significant points [Default: 4.5].
  --abline POS1,POS2,...
                        The y value where to create a horizontal line,
                        separated by a comma [Default: 3,-2].
  --significant-threshold FLOAT
                        The significant threshold for linkage or association
                        [Default: 3.0]
  --no-annotation       Do not draw annotation (SNP names) for the significant
                        results.
  --axis-text-size INT  The axis font size [Default: 12]
  --chr-text-size INT   The axis font size [Default: 12]
  --label-text-size INT
                        The axis font size [Default: 12]

Graph Colors Options:
  Options for the graph colors.

  --chromosome-box-color COLOR
                        The COLOR for the box surrounding even chromosome
                        numbers [Default: #E5E5E5].
  --even-chromosome-color COLOR
                        The COLOR for the box surrounding even chromosome
                        numbers [Default: #1874CD].
  --odd-chromosome-color COLOR
                        The COLOR for the box surrounding odd chromosome
                        numbers [Default: #4D4D4D].
  --multipoint-color COLOR
                        The COLOR for the multipoint plot [Default: #FF8C00].
  --significant-color COLOR
                        The COLOR for points representing significant linkage
                        [Default: #FF0000].

Example

As an example, we used the dataset publicly provided by Wood et al. 2014 (doi: 10.1038/ng.3097], as part of the GIANT consortium for height (available here).

manhattan_generator \
    --twopoint ../data/GIANT_HEIGHT_Wood_et_al_2014_publicrelease_HapMapCeuFreq.grch37.txt \
    --col-chr Chromosome \
    --col-name MarkerName \
    --col-pos Position \
    --col-pvalue p \
    --bp \
    --use-pvalues \
    --abline 95 \
    --significant-threshold 95 \
    --no-annotation \
    --significant-point-size 2 \
    --point-size 1 \
    --graph-title "GIANT height (Wood et al. 2014, public release)" \
    --chr-text-size 10 \
    --exclude-chr 23,24

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].