Skip to content

Commit 1ba56ca

Browse files
committed
Fix merge conflicts
2 parents 7ce24ff + ee6ea2c commit 1ba56ca

File tree

17 files changed

+1237
-1446
lines changed

17 files changed

+1237
-1446
lines changed

SequenceAnalysis/resources/web/SequenceAnalysis/window/LiftoverWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Ext4.define('SequenceAnalysis.window.LiftoverWindow', {
115115
},{
116116
xtype: 'checkbox',
117117
itemId: 'useBcfTools',
118-
checked: false,
118+
checked: true,
119119
fieldLabel: 'Use bcftools'
120120
},{
121121
xtype: 'checkbox',

SequenceAnalysis/src/org/labkey/sequenceanalysis/analysis/HaplotypeCallerHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
101101
List<String> args = new ArrayList<>();
102102
args.addAll(getClientCommandArgs(params));
103103

104-
wrapper.execute(so.getFile(), referenceGenome.getWorkingFastaFile(), outputFile, args);
104+
boolean doReblock = params.optBoolean("doReblock", true);
105+
wrapper.execute(so.getFile(), referenceGenome.getWorkingFastaFile(), outputFile, args, doReblock);
105106

106107
action.addOutput(outputFile, "gVCF File", false);
107108
if (idxFile.exists())

SequenceAnalysis/src/org/labkey/sequenceanalysis/analysis/LiftoverHandler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
178178
boolean dropGenotypes = params.optBoolean("dropGenotypes", false);
179179
boolean useBcfTools = params.optBoolean("useBcfTools", false);
180180
boolean doNotRetainUnmapped = params.optBoolean("doNotRetainUnmapped", false);
181+
if (doNotRetainUnmapped && !useBcfTools)
182+
{
183+
ctx.getLogger().debug("Picard LiftoverVcf requires an output file for rejected sites, so setting doNotRetainUnmapped to true");
184+
doNotRetainUnmapped = true;
185+
}
181186

182187
int chainFileId = params.getInt("chainFileId");
183188
File chainFile = ctx.getSequenceSupport().getCachedData(chainFileId);

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/HaplotypeCallerAnalysis.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ public static List<ToolParameterDescriptor> getToolDescriptors()
5353
ToolParameterDescriptor.createCommandLineParam(CommandLineParam.createSwitch("--dont-use-soft-clipped-bases"), "dontUseSoftClippedBases", "Don't Use Soft Clipped Bases", "If specified, we will not analyze soft clipped bases in the reads", "checkbox", null, false),
5454
ToolParameterDescriptor.createCommandLineParam(CommandLineParam.createSwitch("--max-alternate-alleles"), "maxAlternateAlleles", "Max Alternate Alleles", "Passed to --max-alternate-alleles", "ldk-integerfield", new JSONObject(){{
5555
put("minValue", 0);
56-
}}, 6)
56+
}}, 6),
57+
ToolParameterDescriptor.create("doReblock", "Do Reblock", "If checked, this will run Reblock GVCFs", "checkbox", new JSONObject(){{
58+
put("checked", true);
59+
}}, true)
5760
);
5861
}
5962

@@ -72,7 +75,8 @@ public Output performAnalysisPerSampleRemote(Readset rs, File inputBam, Referenc
7275
List<String> args = new ArrayList<>();
7376
args.addAll(getClientCommandArgs());
7477

75-
getWrapper().execute(inputBam, referenceGenome.getWorkingFastaFile(), outputFile, args);
78+
boolean doReblock = getProvider().getParameterByName("doReblock").extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx(), Boolean.class, true);
79+
getWrapper().execute(inputBam, referenceGenome.getWorkingFastaFile(), outputFile, args, doReblock);
7680

7781
output.addOutput(outputFile, "gVCF File");
7882
output.addSequenceOutput(outputFile, outputFile.getName(), "gVCF File", rs.getReadsetId(), null, referenceGenome.getGenomeId(), "GATK Version: " + getWrapper().getVersionString());

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/ImmunoGenotypingAnalysis.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
*/
5555
public class ImmunoGenotypingAnalysis extends AbstractCommandPipelineStep<ImmunoGenotypingWrapper> implements AnalysisStep
5656
{
57-
public ImmunoGenotypingAnalysis(PipelineStepProvider provider, PipelineContext ctx)
57+
public ImmunoGenotypingAnalysis(PipelineStepProvider<?> provider, PipelineContext ctx)
5858
{
5959
super(provider, ctx, new ImmunoGenotypingWrapper(ctx.getLogger()));
6060
}

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/variant/MergeVcfsAndGenotypesHandler.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
9696
inputFiles.forEach(x -> action.addInput(x.getFile(), "Input VCF"));
9797

9898
ReferenceGenome genome = ctx.getSequenceSupport().getCachedGenome(genomeIds.iterator().next());
99-
new MergeVcfsAndGenotypesWrapper(ctx.getLogger()).execute(genome.getWorkingFastaFile(), inputVCFs, outputVcf, null);
100-
if (!outputVcf.exists())
101-
{
102-
throw new PipelineJobException("unable to find output: " + outputVcf.getPath());
103-
}
10499

105100
if (doSort)
106101
{
@@ -110,6 +105,16 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
110105
SequencePipelineService.get().sortVcf(f, null, genome.getSequenceDictionary(), ctx.getLogger());
111106
}
112107
}
108+
else
109+
{
110+
ctx.getLogger().debug("Pre-sorting will not be performed");
111+
}
112+
113+
new MergeVcfsAndGenotypesWrapper(ctx.getLogger()).execute(genome.getWorkingFastaFile(), inputVCFs, outputVcf, null);
114+
if (!outputVcf.exists())
115+
{
116+
throw new PipelineJobException("unable to find output: " + outputVcf.getPath());
117+
}
113118

114119
action.addOutput(outputVcf, "Combined VCF", false);
115120
SequenceOutputFile so = new SequenceOutputFile();

0 commit comments

Comments
 (0)