Description
Identifies duplicate reads in a SAM/BAM/CRAM file.
This tool locates and tags duplicate reads in a coordinate-sorted SAM,
BAM or CRAM file, where duplicate reads are defined as originating from
a single fragment of DNA. Duplicates can arise during sample preparation
(e.g. library construction using PCR) or from a single amplification
cluster incorrectly detected as multiple clusters by the optical sensor
of the sequencing instrument (optical duplicates).
The tool works by comparing sequences in the 5' positions of both reads
and read-pairs. After duplicate reads are collected, the tool
differentiates the primary and duplicate reads using an algorithm that
ranks reads by the sums of their base-quality scores by default.
Duplicate reads are marked with the hexadecimal SAM flag value 0x0400
(decimal 1024).
In addition to the dedup-tagged output file, the tool produces a metrics
file indicating the numbers of duplicates for both single- and
paired-end reads.
Type
bash_script
License
Apache-2.0
Keywords
Contributors
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
output: "$id.$key.output.bam"
metrics: "$id.$key.metrics.txt"
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/biobox.git \
-revision v0.5.0 \
-main-script target/nextflow/gatk4/gatk4_markduplicates/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input -I | file required multiple |
Name | Type & Properties |
|---|---|
--output -O | file required output |
--metrics -M | file required output |
Name | Type & Properties |
|---|---|
--add_pg_tag_to_reads | boolean |
--assume_sort_order -ASO | string |
--barcode_tag | string |
--clear_dt | boolean |
--comment -CO | string multiple |
--create_index | boolean_true |
--duplex_umi | boolean_true |
--duplicate_scoring_strategy -DS | string |
--max_file_handles_for_read_ends_map -MAX_FILE_HANDLES | integer |
--max_optical_duplicate_set_size | long |
--max_records_in_ram | integer |
--molecular_identifier_tag | string |
--optical_duplicate_pixel_distance | integer |
--program_group_command_line -PG_COMMAND | string |
--program_group_name -PG_NAME | string |
--program_group_version -PG_VERSION | string |
--program_record_id -PG | string |
--read_name_regex | string |
--read_one_barcode_tag | string |
--read_two_barcode_tag | string |
--reference_sequence -R | file |
--remove_duplicates | boolean_true |
--remove_sequencing_duplicates | boolean_true |
--sorting_collection_size_ratio | double |
--tag_duplicate_set_members | boolean_true |
--tagging_policy | string |
--validation_stringency | string |