Skip to content

Commit b8ba281

Browse files
committed
feat(params): accept --limitGenomeGenerateRAM for STAR CLI compatibility
STAR exposes --limitGenomeGenerateRAM as a memory cap for genomeGenerate. Pipelines that wrap STAR commonly derive a value from their task resources and pass it through. Currently rustar rejects the flag at the CLI parser, breaking those pipelines. Accept the flag with STAR's default of 31 GiB. The value is parsed but not enforced — rustar's memory management is independent. Fixes #25
1 parent 70be24d commit b8ba281

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/params.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,12 @@ pub struct Parameters {
363363
#[arg(long = "limitBAMsortRAM", default_value_t = 0)]
364364
pub limit_bam_sort_ram: u64,
365365

366+
/// Maximum available RAM (bytes) for genome generation.
367+
///
368+
/// Accepted for STAR CLI compatibility. Not currently enforced — rustar uses its own memory management.
369+
#[arg(long = "limitGenomeGenerateRAM", default_value_t = 31_000_000_000_u64)]
370+
pub limit_genome_generate_ram: u64,
371+
366372
/// Route primary alignment output to stdout instead of a file.
367373
/// Values: None (default), SAM, BAM_Unsorted, BAM_SortedByCoordinate.
368374
#[arg(long = "outStd", default_value = "None")]

0 commit comments

Comments
 (0)