Skip to content

Commit

Permalink
Walk back create-bam arg in CellRangerVDJWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Aug 28, 2024
1 parent 0365054 commit e7b6133
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Ext4.define('SequenceAnalysis.panel.AnalysisSectionPanel', {
title: 'Add Steps',
border: false,
width: 800,
autoScroll: true,
maxHeight: '90%',
items: items,
buttons: [{
text: 'Done',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,6 @@ public AlignmentStep.AlignmentOutput performAlignment(Readset rs, List<File> inp
lockFile.delete();
}

boolean discardBam = getProvider().getParameterByName(AbstractAlignmentStepProvider.DISCARD_BAM).extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx(), Boolean.class, false);
args.add("--create-bam=" + !discardBam);

getWrapper().execute(args);

File outdir = new File(outputDirectory, id);
Expand Down Expand Up @@ -490,14 +487,13 @@ private File processOutputsForType(String sampleId, Readset rs, ReferenceGenome
}
}

boolean discardBam = getProvider().getParameterByName(AbstractAlignmentStepProvider.DISCARD_BAM).extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx(), Boolean.class, false);
File bam = new File(sampleDir, "all_contig.bam");
if (!discardBam && !bam.exists())
if (!bam.exists())
{
throw new PipelineJobException("Unable to find file: " + bam.getPath());
}

if (!discardBam && isPrimaryDir)
if (isPrimaryDir)
{
output.setBAM(bam);
}
Expand Down

0 comments on commit e7b6133

Please sign in to comment.