Picard
Supported Tool
Picard is a set of Java command line tools for manipulating high-throughput sequencing data.
Description
The Picard module parses results generated by Picard, a set of Java command line tools for manipulating high-throughput sequencing data.
Supported commands:
AlignmentSummaryMetrics
BaseDistributionByCycle
CollectIlluminaBasecallingMetrics
CollectIlluminaLaneMetrics
CrosscheckFingerprints
ExtractIlluminaBarcodes
GcBiasMetrics
HsMetrics
InsertSizeMetrics
MarkDuplicates
MarkIlluminaAdapters
OxoGMetrics
QualityByCycleMetrics
QualityScoreDistributionMetrics
QualityYieldMetrics
RnaSeqMetrics
RrbsSummaryMetrics
ValidateSamFile
VariantCallingMetrics
WgsMetrics
Coverage Levels
It’s possible to customise the HsMetrics “Target Bases 30X” coverage and
WgsMetrics “Fraction of Bases over 30X” that are
shown in the general statistics table. This must correspond to field names in the
picard report, such as PCT_TARGET_BASES_2X
/ PCT_10X
. Any numbers not found in the
reports will be ignored.
The coverage levels available for HsMetrics are typically 1, 2, 10, 20, 30, 40, 50 and 100X.
The coverage levels available for WgsMetrics are typically 1, 5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 80, 90 and 100X.
To customise this, add the following to your MultiQC config:
CrosscheckFingerprints
In addition to adding a table of results, a Crosschecks All Expected
column will be added to the General Statistics. If all comparisons for a sample were Expected
, then the value of the field will be True
and green. If not it will be False
and Red.
You can customize the columns show in the CrosscheckFingerprints table with the config keys CrosscheckFingerprints_table_cols
and CrosscheckFingerprints_table_cols_hidden
. For example:
The column names will be normalized, ex LOD_SCORE -> Lod score
.
Note that if CALCULATE_TUMOR_AWARE_RESULTS
was set to true on the CLI for any of the CrosscheckFingerprints result files, then the LOD_SCORE_TUMOR_NORMAL
and LOD_SCORE_NORMAL_TUMOR
will be displayed.
HsMetrics
Note that the Target Region Coverage plot is generated using the PCT_TARGET_BASES_
table columns from the HsMetrics output (not immediately obvious when looking at the log files).
You can customize the columns shown in the HsMetrics table with the config keys HsMetrics_table_cols
and HsMetrics_table_cols_hidden
. For example:
Only values listed in HsMetrics_table_cols
will be included in the table.
Anything listed in HsMetrics_table_cols_hidden
will be hidden by default.
A similar config is available for customising the HsMetrics columns in the General Stats table:
InsertSizeMetrics
By default, the insert size plot is smoothed to contain a maximum of 500 data points per sample. This is to prevent the MultiQC report from being very large with big datasets. If you would like to customise this value to get a better resolution you can set the following MultiQC config values, with the new maximum number of points:
The plotted maximum insert size can be set with:
MarkDuplicates
If a BAM
file contains multiple read groups, Picard MarkDuplicates generates a report
with multiple metric lines, one for each “library”.
By default, MultiQC will sum the values for every library it finds and recompute the
PERCENT_DUPLICATION
and ESTIMATED_LIBRARY_SIZE
fields, giving a single set of results
for each BAM
file.
If instead you would prefer each library to be treated as a separate sample, you can do so by setting the following MultiQC config:
This prevents the merge and recalculation and appends the library name to the sample name.
This behaviour is present in MultiQC since version 1.9. Before this, only the metrics from the first library were taken and all others were ignored.
ValidateSamFile Search Pattern
Generally, Picard adds identifiable content to the output of function calls. This is not the case for ValidateSamFile. In order to identify logs the MultiQC Picard submodule ValidateSamFile
will search for filenames that contain ‘validatesamfile’ or ‘ValidateSamFile’. One can customise the used search pattern by overwriting the picard/sam_file_validation
pattern in your MultiQC config. For example:
WgsMetrics
The coverage histogram from Picard typically shows a normal distribution with a very long tail. To make the plot easier to view, by default the module plots the line up to 99% of the data. This typically removes the long tail and gives a more useful graph.
If you would like, you can set a specific value for the maximum coverage to cut the graph at. By setting this to a very large value, you will disable the cutting (the graph will automatically limit the axis at the maximum data point). You can do this as follows:
If running with very high coverage samples or using the Picard CAP_COVERAGE
option,
the coverage histogram can become very large indeed. For eaxmple, if reporting coverages of 1 million,
it will have 1 million data points per sample. That can crash the browser and take a long time to run.
There are two customisation MultiQC options to help with this.
Firstly, MultiQC will automatically “smooth” the histogram to a maximum of 1000
data points by binning.
This should stop the browser from crashing. You can tweak how many bins are used with the following:
Change 1000
to whatever number you want. If you don’t want any smoothing, set it to a very high number
bigger than the number of data points you have.
Secondly, if you would prefer to instead simply skip the histogram, you can set the following:
This will omit that section from the report entirely, and also skip parsing the histogram data. By specifying this option you may speed up the run time for MultiQC with these types of files significantly.
Sample names
MultiQC supports outputs from multiple runs of a Picard tool merged together into one
file. In order to handle multiple sample data in on file correctly, MultiQC needed
to take the sample name elsewhere rather than the file name. For this reason, MultiQC
attempts to parse the command line recorded in the output header. For example, an
output from the GcBias
tool contains a header line like this:
MultiQC would extract the BAM file name that goes after INPUT=
and take P0001_101
as a sample name. If MultiQC fails to parse the command line for any reason, it will
fall back to using the file name. It is also possible to force using the file names
as sample names by enabling the following config option:
File search patterns
picard/alignment_metrics:
- contents: picard.analysis.AlignmentSummaryMetrics
- contents: --algo AlignmentStat
picard/basedistributionbycycle:
contents: BaseDistributionByCycleMetrics
picard/crosscheckfingerprints:
contents: CrosscheckFingerprints
picard/gcbias:
- contents: GcBiasDetailMetrics
- contents: GcBiasSummaryMetrics
- contents: --algo GCBias
picard/hsmetrics:
- contents: HsMetrics
- contents: --algo HsMetricAlgo
picard/insertsize:
- contents: picard.analysis.InsertSizeMetrics
- contents: --algo InsertSizeMetricAlgo
picard/markdups:
- contents: picard.sam.MarkDuplicates
- contents: picard.sam.DuplicationMetrics
- contents: picard.sam.markduplicates.MarkDuplicates
- contents: markduplicates.DuplicationMetrics
- contents: MarkDuplicatesSpark
- contents: markduplicates.GATKDuplicationMetrics
- contents: --algo Dedup
picard/oxogmetrics:
contents: OxoGMetrics
picard/pcr_metrics:
contents: TargetedPcrMetrics
picard/quality_by_cycle:
- contents_re: "[Qq]uality[Bb]y[Cc]ycle"
contents: MEAN_QUALITY
- contents: --algo MeanQualityByCycle
picard/quality_score_distribution:
- contents_re: "[Qq]uality[Ss]core[Dd]istribution"
contents: COUNT_OF_Q
- contents: --algo QualDistribution
picard/quality_yield_metrics:
contents: QualityYieldMetrics
picard/rnaseqmetrics:
contents_re: "[Rr]na[Ss]eq[Mm]etrics"
picard/rrbs_metrics:
contents: RrbsSummaryMetrics
picard/sam_file_validation:
fn: "*[Vv]alidate[Ss]am[Ff]ile*"
picard/variant_calling_metrics:
contents: VariantCallingDetailMetrics
picard/wgs_metrics:
contents_re: "## METRICS CLASS.*WgsMetrics"
picard/collectilluminabasecallingmetrics:
contents: CollectIlluminaBasecallingMetrics
picard/collectilluminalanemetrics:
contents: CollectIlluminaLaneMetrics
picard/extractilluminabarcodes:
contents: ExtractIlluminaBarcodes
picard/markilluminaadapters:
contents: MarkIlluminaAdapters