• Stars
    star
    923
  • Rank 47,551 (Top 1.0 %)
  • Language
    Java
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A set of command line tools (in Java) for manipulating high-throughput sequencing (HTS) data and formats such as SAM/BAM/CRAM and VCF.

User Support:

For user questions please look for answers and ask first in the GATK forum.


Build Status License: MIT

A set of Java command line tools for manipulating high-throughput sequencing (HTS) data and formats.

Picard is implemented using the HTSJDK Java library HTSJDK to support accessing file formats that are commonly used for high-throughput sequencing data such as SAM and VCF.

As of version 3.0, Picard requires Java 1.17.

Building Picard

  • First, clone the repo:
    git clone https://github.com/broadinstitute/picard.git
    cd picard/
  • Picard is now built using gradle. A wrapper script (gradlew) is included which will download the appropriate version of gradle on the first invocation.

  • To build a fully-packaged, runnable Picard jar with all dependencies included, run:

    ./gradlew shadowJar
  • The resulting jar will be in build/libs. To run it, the command is:
    java -jar build/libs/picard.jar
    
    or
    
    java -jar build/libs/picard-<VERSION>-all.jar 
  • To build a jar containing only Picard classes (without its dependencies), run:
    ./gradlew jar
  • To clean the build directory, run:
    ./gradlew clean

Running Tests

  • To run all tests, the command is:
    ./gradlew test
  • To run a specific test, the command is:
    ./gradlew legacyTest --tests "*TestClassName*"
    
    or
    
    ./gradlew barclayTest --tests "*TestClassName*"

Running legacyTest uses the legacy commandline parser while barclayTest uses the new parser.

Changing the released version of HTSJDK that Picard depends on

To switch Picard's HTSJDK dependency to a different released version:

  • Open build.gradle
  • Edit VERSION in the following line to be a different released version of HTSJDK. HTSJDK releases are listed here
    final htsjdkVersion = System.getProperty('htsjdk.version', 'VERSION')`
  • Open a pull request with this change

Building Picard with a Custom Version of HTSJDK

During development in Picard, it is sometimes necessary to build locally against an unreleased version or branch of HTSJDK.

  • To build against an unreleased version of HTSJDK's master branch:

    • Go to the Broad artifactory, where continuous snapshots of HTSJDK's master branch are published, and select the version you want to use. For example, 2.5.1-9-g5740ca1-SNAPSHOT. You can search by tag or short git commit hash.
    • In your Picard clone, run ./gradlew shadowJar -Dhtsjdk.version=VERSION, where VERSION is the version of the HTSJDK master branch snapshot you want to use.
  • To build against a version of HTSJDK that has not yet been merged into HTSJDK's master branch:

    • Clone HTSJDK, and in your clone check out the tag or branch you want to build Picard with.
    • Run ./gradlew install printVersion in your htsjdk clone to install that version to your local maven repository. Take note of the version number that gets printed at the end.
    • Switch back to your Picard clone, and run ./gradlew shadowJar -Dhtsjdk.version=VERSION, where VERSION is the version of HTSJDK you installed to your local maven repository.

Releasing Picard

Full instructions on how to create a new release of Picard are here

Path providers

Picard has limited support for reading from Path providers. Currently only google's api is supported, and only a few tools support this. To run with this support you need to compile the cloudJar target with gradle:

./gradlew cloudJar

then run picard as follows:

java -jar build/lib/picardcloud.jar <Picard arguments starting from program>

For example:

java -jar build/lib/picardcloud.jar CrosscheckFingerprints \
   I=gs://sample1.vcf \
   I=gs://sample2.vcf \
   CROSSCHECK_BY=FILE \
   H=Haplotype_db.txt \
   O=crosscheck.out

Alternatively, you can run the tool via the GATK which bundles the Google-Cloud jar, and should thus "Just Work".


Citing

Please cite this repository when using Picard tools for your publications.

β€œPicard Toolkit.” 2019. Broad Institute, GitHub Repository. https://broadinstitute.github.io/picard/; Broad Institute

@misc{Picard2019toolkit,
  title = {Picard toolkit},
  year = {2019},
  publisher = {Broad Institute},
  journal = {Broad Institute, GitHub repository},
  howpublished = {\url{https://broadinstitute.github.io/picard/}}
}

Identifiers from software registries are increasingly accepted by journals, as in (biotools:picard_tools) or (RRID:SCR_006525).

Picard is migrating to semantic versioning. We will eventually adhere to it strictly and bump our major version whenever there are breaking changes to our API, but until we more clearly define what constitutes our official API, clients should assume that every release potentially contains at least minor changes to public methods.

Please see the Picard Documentation for more information.

More Repositories

1

gatk

Official code repository for GATK versions 4 and up
Java
1,604
star
2

cromwell

Scientific workflow engine designed for simplicity & scalability. Trivially transition between one off use cases to massive scale production environments
Scala
953
star
3

keras-rcnn

Keras package for region-based convolutional neural networks (RCNNs)
Python
548
star
4

infercnv

Inferring CNV from Single-Cell RNA-Seq
R
509
star
5

gtex-pipeline

GTEx & TOPMed data production and analysis pipelines
Python
323
star
6

pilon

Pilon is an automated genome assembly improvement and variant detection tool
Scala
306
star
7

keras-resnet

Keras package for deep residual networks
Python
294
star
8

CellBender

CellBender is a software package for eliminating technical artifacts from high-throughput single-cell RNA sequencing (scRNA-seq) data.
Python
243
star
9

Tangram

Spatial alignment of single cell transcriptomic data.
Jupyter Notebook
219
star
10

ssGSEA2.0

Single sample Gene Set Enrichment analysis (ssGSEA) and PTM Enrichment Analysis (PTM-SEA)
R
218
star
11

ABC-Enhancer-Gene-Prediction

Cell type specific enhancer-gene predictions using ABC model (Fulco, Nasser et al, Nature Genetics 2019)
Python
183
star
12

warp

WDL Analysis Research Pipelines
WDL
183
star
13

viral-ngs

Viral genomics analysis pipelines
Python
180
star
14

seqr

web-based analysis tool for rare disease genomics
Python
164
star
15

gatk-sv

A structural variation pipeline for short-read sequencing
Python
157
star
16

ichorCNA

Estimating tumor fraction in cell-free DNA from ultra-low-pass whole genome sequencing.
R
156
star
17

tensorqtl

Ultrafast GPU-enabled QTL mapper
Python
142
star
18

wot

A software package for analyzing snapshots of developmental processes
Jupyter Notebook
130
star
19

long-read-pipelines

Long read production pipelines
Jupyter Notebook
116
star
20

ml4h

Jupyter Notebook
105
star
21

xtermcolor

Python library for terminal color support (including 256-color support)
Python
104
star
22

Drop-seq

Java tools for analyzing Drop-seq data
Java
100
star
23

depmap_omics

What you need to process the Quarterly DepMap-Omics releases from Terra
HTML
98
star
24

mutect

MuTect -- Accurate and sensitive cancer mutation detection
Java
92
star
25

genomics-in-the-cloud

Source code and related materials for the O'Reilly book
Jupyter Notebook
87
star
26

gnomad_methods

Hail helper functions for the gnomAD project and Translational Genomics Group
Python
80
star
27

pyro-cov

Pyro models of SARS-CoV-2 variants
Jupyter Notebook
72
star
28

gatk-docs

Documentation archive for GATK tools and workflows
HTML
71
star
29

catch

A package for designing compact and comprehensive capture probe sets.
Python
67
star
30

gnomad-browser

Explore gnomAD datasets on the web
TypeScript
66
star
31

oncotator

Python
64
star
32

gtex-viz

GTEx Visualizations
JavaScript
62
star
33

single_cell_portal_core

Rails/Docker application for the Broad Institute's single cell RNA-seq data portal
Ruby
60
star
34

PhylogicNDT

HTML
57
star
35

docker-terraform

Docker container for running the Terraform application
Shell
56
star
36

cromshell

CLI for interacting with Cromwell servers
Python
53
star
37

2020_scWorkshop

Code and data repository for the 2020 physalia course on single cell RNA sequencing.
Shell
51
star
38

viral-pipelines

viral-ngs: complete pipelines
WDL
48
star
39

gnomad_qc

Jupyter Notebook
48
star
40

single_cell_portal

Tutorials, workflows, and convenience scripts for Single Cell Portal
HTML
44
star
41

sam

workbench identity and access management
Scala
41
star
42

gistic2

Genomic Identification of Significant Targets in Cancer (GISTIC), version 2
MATLAB
41
star
43

gamgee

A C++14 library for NGS data formats
C++
41
star
44

dsde-deep-learning

DSDE Deep Learning Club
Python
40
star
45

gtex-v8

Notebooks and scripts for reproducing analyses and figures from the V8 GTEx Consortium paper
Jupyter Notebook
38
star
46

SignatureAnalyzer-GPU

GPU implementation of ARD NMF
Python
37
star
47

wdl-ide

Rich IDE support for Workflow Description Language
Python
36
star
48

Celligner_ms

Code related to the Celligner manuscript
R
36
star
49

cellpainting-gallery

Cell Painting Gallery
35
star
50

cell-health

Predicting Cell Health with Morphological Profiles
HTML
35
star
51

gatk-protected

Obsolete/Legacy GATK repository -- go to https://github.com/broadinstitute/gatk instead
Java
34
star
52

pyqtl

Collection of analysis tools for quantitative trait loci
Python
32
star
53

PANOPLY

Repository for the Broad Institute Proteogenomic Data Analysis Center (PGDAC) established by the NIH Clinical Proteomics Tumor Analysis Consortium (CPTAC)
R
31
star
54

python-cert_manager

Python interface to the Sectigo Certificate Manager REST API
Python
31
star
55

StrainGE

strain-level analysis tools
Python
30
star
56

firecloud-orchestration

Scala
29
star
57

gdctools

Python and UNIX CLI utilities to simplify interaction with the NIH/NCI Genomics Data Commons
Python
29
star
58

2019_scWorkshop

Repo for Physalia course Analysis of Single Cell RNA-Seq data
TeX
29
star
59

fiss

FireCloud Service Selector (FISS) -- Python bindings and CLI for FireCloud execution engine
Python
28
star
60

single_cell_analysis

Documents used for workshops on single cell analysis
HTML
26
star
61

deepometry

Image classification for imaging flow cytometry.
Python
25
star
62

firepony

Efficient base quality score recalibrator for NGS data
Cuda
24
star
63

adapt

A package for designing activity-informed nucleic acid diagnostics for viruses.
Python
24
star
64

pyfrost

Python bindings for Bifrost with a NetworkX compatible API
Python
24
star
65

str-analysis

Scripts and utilities related to analyzing short tandem repeats (STRs).
Python
23
star
66

rawls

Rawls service for DSDE
Scala
23
star
67

protigy

Proteomics Toolset for Integrative Data Analysis
R
21
star
68

seqr-loading-pipelines

hail-based pipelines for annotating variant callsets and exporting them to elasticsearch
Python
21
star
69

lincs-cell-painting

Processed Cell Painting Data for the LINCS Drug Repurposing Project
Jupyter Notebook
21
star
70

BipolarCell2016

R
21
star
71

cromwell-tools

A collection of Python clients and accessory scripts for interacting with the Cromwell
Python
21
star
72

single_cell_classification

Methods to use SNPs or gene expression to classify single cell RNAseq to reference profiles
R
20
star
73

VariantBam

Filtering and profiling of next-generational sequencing data using region-specific rules
Makefile
20
star
74

longbow

Annotation and segmentation of MAS-seq data
Python
20
star
75

chronos

Modeling of time series data for CRISPR KO experiments
Python
20
star
76

gtex-single-nucleus-reference

Code repository for the snRNA-seq cross-tissue atlas project
Jupyter Notebook
20
star
77

covid19-testing

COVID-19 Diagnostic Processing Dashboard
HTML
19
star
78

AwesomeGenomics

Cancer Data Science's go to place for excellent genomics tools and packages
19
star
79

GATK-for-Microbes

WDL
19
star
80

firecloud-ui

FireCloud user interface for web browsers.
Clojure
19
star
81

BARD

BioAssay Research Database
Groovy
19
star
82

flipbook

A tool that lets you quickly flip through images in a local directory and record notes or answer questions about each one.
Python
18
star
83

palantir-workflows

Utility workflows for the DSP hydro.gen team (formerly palantir)
WDL
18
star
84

wdltool

Scala
18
star
85

vim-wdl

Vim syntax highlighting for WDL
Vim Script
18
star
86

wordpress-crowd-plugin

Crowd Authentication Plugin for Wordpress
PHP
16
star
87

epi-SHARE-seq-pipeline

Epigenomics Program pipeline to analyze SHARE-seq data.
WDL
14
star
88

mix_seq_ms

Code associated with MIX-seq manuscript
R
14
star
89

widdler

A command-line tool for executing, managing, and querying WDL workflows on Cromwell servers.
Python
13
star
90

SpliceAI-lookup

Website for checking SpliceAI and Pangolin scores:
Python
13
star
91

imaging-platform-pipelines

Cell Painting and other pipelines from the Imaging Platform
13
star
92

wdl-runner

Easily run WDL workflows on GCP
Python
13
star
93

cms

Composite of Multiple Signals: tests for selection in meiotically recombinant populations
Python
13
star
94

scRNA-Seq

Python
12
star
95

scalable_analytics

Public collaboration of Scalable Single Cell Analytics
Python
12
star
96

sparklespray

Easy batch submission of adhoc jobs onto GCP
HTML
12
star
97

regional_missense_constraint

Code to calculate regional missense constraint
Python
11
star
98

dropviz

Shiny app for visualization, exploration of mouse brain single cell gene expression
R
11
star
99

gnomad_lof

R
11
star
100

hdf5-java-bindings

java bindings for hdf5
Java
11
star