Description
Sort and (optionally) index alignments.
Reads are sorted by leftmost coordinates, or by read name when --sort_by_read_names is used.
An appropriate @HD-SO sort order header tag will be added or an existing one updated if necessary.
Note that to generate an index file (by specifying --output_bai), the default coordinate sort must be used.
Thus the --sort_by_read_names and --sort_by <TAG> options are incompatible with --output_bai.
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
output_bam: "$id.$key.output_bam.bam"
output_bai: "$id.$key.output_bai.bai"
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision 1.0.3 \
-main-script target/nextflow/mapping/samtools_sort/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input | file required |
Name | Type & Properties |
|---|---|
--output_bam | file required output |
--output_bai | file output |
--output_format | string |
--compression | integer |
Name | Type & Properties |
|---|---|
--minimizer_cluster | boolean_true |
--minimizer_kmer | integer |
--sort_by_read_names | boolean_true |
--sort_by | string |
--no_pg | boolean_true |