Skip to content
Snippets Groups Projects
Unverified Commit 61bba4a0 authored by Ruben Vorderman's avatar Ruben Vorderman Committed by GitHub
Browse files

Merge pull request #14 from biowdl/STAR_limitBAMsortRAM

add limitBAMsortRAM to STAR and make sampleConfig write to file
parents 2aff5d1d 52a6e6b1
No related branches found
No related tags found
No related merge requests found
...@@ -84,10 +84,9 @@ task SampleConfig { ...@@ -84,10 +84,9 @@ task SampleConfig {
} }
output { output {
Array[String] keys = read_lines(stdout()) File keysFile = stdout()
File? jsonOutput = jsonOutputPath File? jsonOutput = jsonOutputPath
File? tsvOutput = tsvOutputPath File? tsvOutput = tsvOutputPath
Object values = if (defined(tsvOutput) && size(tsvOutput) > 0) then read_map(tsvOutput) else { "": "" }
} }
runtime { runtime {
......
...@@ -253,6 +253,7 @@ task SplitNCigarReads { ...@@ -253,6 +253,7 @@ task SplitNCigarReads {
String? preCommand String? preCommand
File input_bam File input_bam
File input_bam_index
File ref_fasta File ref_fasta
File ref_fasta_index File ref_fasta_index
File ref_dict File ref_dict
...@@ -271,13 +272,13 @@ task SplitNCigarReads { ...@@ -271,13 +272,13 @@ task SplitNCigarReads {
SplitNCigarReads \ SplitNCigarReads \
-I ${input_bam} \ -I ${input_bam} \
-R ${ref_fasta} \ -R ${ref_fasta} \
-O ${output_bam} # might have to be -o depending on GATK version \ -O ${output_bam} \
-L ${sep=' -L ' intervals} -L ${sep=' -L ' intervals}
} }
output { output {
File bam = output_bam File bam = output_bam
File bam_index = output_bam + ".bai" File bam_index = sub(output_bam, "\\.bam$", ".bai")
} }
runtime { runtime {
......
...@@ -12,6 +12,7 @@ task Star { ...@@ -12,6 +12,7 @@ task Star {
String? outStd String? outStd
String? twopassMode String? twopassMode
Array[String]? outSAMattrRGline Array[String]? outSAMattrRGline
Int? limitBAMsortRAM
Int? memory Int? memory
...@@ -34,6 +35,7 @@ task Star { ...@@ -34,6 +35,7 @@ task Star {
${"--runThreadN " + runThreadN} \ ${"--runThreadN " + runThreadN} \
${"--outStd " + outStd} \ ${"--outStd " + outStd} \
${"--twopassMode " + twopassMode} \ ${"--twopassMode " + twopassMode} \
${"--limitBAMsortRAM " + limitBAMsortRAM} \
${true="--outSAMattrRGline " false="" defined(outSAMattrRGline)} ${sep=" , " outSAMattrRGline} ${true="--outSAMattrRGline " false="" defined(outSAMattrRGline)} ${sep=" , " outSAMattrRGline}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment