You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,23 @@ somatic variant calling. These workflows are implemented in the Nextflow (Di Tom
12
12
Find the documentation here [](https://tronflow-docs.readthedocs.io/en/latest/?badge=latest)
13
13
14
14
15
-
The aim of this workflow is the preprocessing of BAM files based on Picard and GATK (DePristo, 2011).
15
+
The aim of this workflow is to preprocess BAM files based on Picard and GATK (DePristo, 2011) best practices.
16
16
17
17
18
18
## Background
19
19
20
-
In order to have a variant calling ready BAM file there are a number of operations that need to be applied on the BAM. This pipeline depends on the particular variant caller, but there are some common operations.
20
+
In order to have a variant calling ready BAM file there are a number of operations that need to be applied on the BAM.
21
+
This pipeline depends on the particular variant caller, but there are some common operations.
21
22
22
-
GATK has been providing a well known best practices document on BAM preprocessing, the latest best practices for GATK4 (https://software.broadinstitute.org/gatk/best-practices/workflow?id=11165) does not perform anymore realignment around indels as opposed to best practices for GATK3 (https://software.broadinstitute.org/gatk/documentation/article?id=3238). This pipeline is based on both Picard and GATK. These best practices have been implemented a number of times, see for instance this implementation in Workflow Definition Language https://github.com/gatk-workflows/gatk4-data-processing/blob/master/processing-for-variant-discovery-gatk4.wdl.
23
+
GATK has been providing a well known best practices document on BAM preprocessing, the latest best practices for
24
+
GATK4 (https://software.broadinstitute.org/gatk/best-practices/workflow?id=11165) does not perform anymore realignment around indels as opposed to best practices for GATK3 (https://software.broadinstitute.org/gatk/documentation/article?id=3238). This pipeline is based on both Picard and GATK. These best practices have been implemented a number of times, see for instance this implementation in Workflow Definition Language https://github.com/gatk-workflows/gatk4-data-processing/blob/master/processing-for-variant-discovery-gatk4.wdl.
23
25
24
26
25
27
## Objectives
26
28
27
-
We aim at providing a single implementation of the BAM preprocessing pipeline that can be used across different situations. For this purpose there are some required steps and some optional steps. This is implemented as a Nextflow pipeline to simplify parallelization of execution in the cluster.
29
+
We aim at providing a single implementation of the BAM preprocessing pipeline that can be used across different
30
+
use cases.
31
+
For this purpose there are some required steps and some optional steps.
28
32
29
33
The input can be either a tab-separated values file (`--input_files`) where each line corresponds to one input BAM or a single BAM (`--input_bam` and `--input_name`).
30
34
@@ -38,7 +42,7 @@ Steps:
38
42
***Mark duplicates** (optional). Identify the PCR and the optical duplications and marks those reads. This uses the parallelized version on Spark, it is reported to scale linearly up to 16 CPUs.
39
43
***Realignment around indels** (optional). This procedure is important for locus based variant callers, but for any variant caller doing haplotype assembly it is not needed. This is computing intensive as it first finds regions for realignment where there are indication of indels and then it performs a local realignment over those regions. Implemented in GATK3, deprecated in GATK4
40
44
***Base Quality Score Recalibration (BQSR)** (optional). It aims at correcting systematic errors in the sequencer when assigning the base call quality errors, as these scores are used by variant callers it improves variant calling in some situations. Implemented in GATK4
41
-
***Metrics** (optional). A number of metrics are obtained over the BAM file with Picard's CollectMetrics (eg: duplication, insert size, alignment, etc.).
45
+
***Metrics** (optional). A number of metrics are obtained from the BAM file with Picard's CollectMetrics, CollectHsMetrics and samtools' coverage and depth.
42
46
43
47

44
48
@@ -49,8 +53,9 @@ Base Quality Score Recalibration (BQSR) requires dbSNP to avoid extracting error
49
53
Realignment around indels requires a set of known indels (`--known_indels1` and `--known_indels2`).
50
54
These resources can be fetched from the GATK bundle https://gatk.broadinstitute.org/hc/en-us/articles/360035890811-Resource-bundle.
51
55
52
-
Optionally, in order to run Picard's CollectHsMetrics an intervals file will need to be provided (`--intervals`).
53
-
This can be built from a BED file using Picard's BedToIntervalList (https://gatk.broadinstitute.org/hc/en-us/articles/360036883931-BedToIntervalList-Picard-)
56
+
Optionally, in order to run Picard's CollectHsMetrics a BED file will need to be provided (`--intervals`).
57
+
This BED file will also be used for `samtools coverage`.
0 commit comments