×

nf-core/picard/positionbaseddownsamplesam @ 0.0.0-0c7146d

Samples a SAM/BAM/CRAM file using flowcell position information for the best approximation of having sequenced fewer reads

Latest version: 0.0.0-0c7146d
Total downloads: 1
Source: nf-core/modules
Authors: @bwlang

Summary

Samples a SAM/BAM/CRAM file using flowcell position information for the best approximation of having sequenced fewer reads

Get started

Add the following snippet to your workflow script to include this module.

include { PICARD_POSITIONBASEDDOWNSAMPLESAM } from 'nf-core/picard/positionbaseddownsamplesam'

License

MIT License

Process
Name PICARD_POSITIONBASEDDOWNSAMPLESAM
Input 1 channel
#1 tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

bam file

BAM file

*.{bam,cram,sam}
fraction float

Fraction of reads to downsample to

Output 4 channels
#1 bai tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

*.ds*.bai file

An optional BAM index file. If desired, --CREATE_INDEX must be passed as a flag

*.{bai}
#2 bam tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

*.ds*.bam file

A downsampled BAM file

*.{bam}
#3 num_reads tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

ACTUAL_NUM_READS integer

The actual number of downsampled reads

#4 versions_picard tuple
${task.process} string

The process the versions were collected from

picard string

The tool name

picard PositionBasedDownsampleSam --version 2>&1 | sed -n 's/.*Version://p' string

The command used to generate the version of the tool

Tool Description Homepage
picard A set of command line tools (in Java) for manipulating high-throughput sequencing (HTS) data and formats such as SAM/BAM/CRAM and VCF. https://broadinstitute.github.io/picard/
Version 0.0.0-0c7146d
Commit ID 135d883a43b1a2324b4112cd270cf22e20835533
Release Date 08 Apr 2026 19:02:57 (UTC)
Download URL https://registry-stage.nextflow.io/api/v1/modules/nf-core%2Fpicard%2Fpositionbaseddownsamplesam/0.0.0-0c7146d/download
OCI Store URL https://public.cr.stage-seqera.io/v2/nextflow/plugin-stage/modules/nf-core/picard/positionbaseddownsamplesam/blobs/sha256:37dbf902cc0e96f39794ee468d2cbd28b493bf7ec3afcbf350b6b0b55cf8effa
Size 3.0 KB
Checksum sha256:37dbf902cc0e96f39794ee468d2cbd28b493bf7ec3afcbf350b6b0b55cf8effa
Downloads 1
Version Date Status Downloads Size Diff
0.0.0-0c7146d 08 Apr 2026 19:02:57 (UTC) 1 3.0 KB -