Skip to content

Commit

Permalink
Addresses PGP-UK#5 ;WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cgpu committed Dec 23, 2019
1 parent c3a9567 commit 126603a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,9 @@ process MapReads {
extra = status == 1 ? "-B 3" : ""
convertToFastq = hasExtension(inputFile1, "bam") ? "gatk --java-options -Xmx${task.memory.toGiga()}g SamToFastq --INPUT=${inputFile1} --FASTQ=/dev/stdout --INTERLEAVE=true --NON_PF=true | \\" : ""
input = hasExtension(inputFile1, "bam") ? "-p /dev/stdin - 2> >(tee ${inputFile1}.bwa.stderr.log >&2)" : "${inputFile1} ${inputFile2}"
// Pseudo-code: Add soft-coded memory allocation to the two tools:
bwa_memory = task.memory.toGiga() * 0.60
sort_memory = task.memory.toGiga() * 0.40
"""
${convertToFastq}
bwa mem -K 100000000 -R \"${readGroup}\" ${extra} -M ${fasta} \
Expand Down

0 comments on commit 126603a

Please sign in to comment.