Skip to content

Commit 715f65b

Browse files
Merge remote-tracking branch 'origin/develop' into fb_bound_containerfilter
2 parents c9d7415 + dcba669 commit 715f65b

File tree

52 files changed

+1506
-480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1506
-480
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/SequenceAnalysisService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ static public void setInstance(SequenceAnalysisService instance)
8989

9090
abstract public String getVCFLineCount(File vcf, Logger log, boolean passOnly) throws PipelineJobException;
9191

92-
abstract public File getPicardJar();
93-
9492
abstract public File writeAllCellHashingBarcodes(File webserverDir, User u, Container c) throws PipelineJobException;
9593

94+
abstract public File writeAllCiteSeqBarcodes(File webserverDir, User u, Container c) throws PipelineJobException;
95+
9696
abstract public String createReferenceLibrary(List<Integer> sequenceIds, Container c, User u, String name, String assemblyId, String description, boolean skipCacheIndexes, boolean skipTriggers) throws IOException;
9797

9898
abstract public String createReferenceLibrary(List<Integer> sequenceIds, Container c, User u, String name, String assemblyId, String description, boolean skipCacheIndexes, boolean skipTriggers, Set<GenomeTrigger> extraTriggers) throws IOException;

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/SequenceOutputFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public ExpData getExpData()
222222
throw new IllegalAccessError("This method should only be called from the webserver");
223223
}
224224

225-
return _dataId > 0 ? ExperimentService.get().getExpData(_dataId) : null;
225+
return _dataId != null && _dataId > 0 ? ExperimentService.get().getExpData(_dataId) : null;
226226
}
227227

228228
public File getFile()

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/AbstractPipelineStep.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,23 @@
2525
abstract public class AbstractPipelineStep implements PipelineStep
2626
{
2727
private PipelineContext _ctx;
28-
private PipelineStepProvider _provider;
28+
private PipelineStepProvider<?> _provider;
2929
private int _stepIdx = 0;
3030

31-
public AbstractPipelineStep(PipelineStepProvider provider, PipelineContext ctx)
31+
public AbstractPipelineStep(PipelineStepProvider<?> provider, PipelineContext ctx)
3232
{
3333
_ctx = ctx;
3434
_provider = provider;
3535
}
3636

37+
@Override
3738
public PipelineContext getPipelineCtx()
3839
{
3940
return _ctx;
4041
}
4142

42-
public PipelineStepProvider getProvider()
43+
@Override
44+
public PipelineStepProvider<?> getProvider()
4345
{
4446
return _provider;
4547
}

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/BamProcessingStep.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ public interface BamProcessingStep extends PipelineStep
2929
{
3030
public BamProcessingStep.Output processBam(Readset rs, File inputBam, ReferenceGenome referenceGenome, File outputDirectory) throws PipelineJobException;
3131

32+
/**
33+
* The BamProcessingStep must call Output.setBam() to explicitly specify the modified file. This method exists as a check
34+
* to prevent the developer from forgetting this. Unless this is overridden, the pipeline will error if the original BAM is returned
35+
* instead.
36+
*/
37+
default boolean expectToCreateNewBam()
38+
{
39+
return true;
40+
}
41+
3242
public static interface Output extends PipelineStepOutput
3343
{
3444
/**

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/DefaultPipelineStepOutput.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ public List<File> getIntermediateFiles()
7777
return Collections.unmodifiableList(_intermediateFiles);
7878
}
7979

80+
@Override
81+
public void removeIntermediateFiles(File toRemove)
82+
{
83+
_intermediateFiles.remove(toRemove);
84+
}
85+
8086
@Override
8187
public List<PicardMetricsOutput> getPicardMetricsFiles()
8288
{

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/PipelineStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface PipelineStep
2828
{
2929
public PipelineContext getPipelineCtx();
3030

31-
public PipelineStepProvider getProvider();
31+
public PipelineStepProvider<?> getProvider();
3232

3333
public int getStepIdx();
3434

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/PipelineStepOutput.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ public interface PipelineStepOutput
5555
*/
5656
public List<File> getIntermediateFiles();
5757

58+
/**
59+
* Remove a previously added intermediate file
60+
* @param toRemove The file to remove
61+
*/
62+
public void removeIntermediateFiles(File toRemove);
63+
5864
public List<PicardMetricsOutput> getPicardMetricsFiles();
5965

6066
/**

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/ProcessUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void run()
8383
try (BufferedReader procReader = new BufferedReader(new InputStreamReader(_readStdErr ? tmpProcess.getErrorStream() : tmpProcess.getInputStream(), StringUtilsLabKey.DEFAULT_CHARSET)))
8484
{
8585
String line;
86-
while (tmpProcess.isAlive() && (line = procReader.readLine()) != null)
86+
while ((line = procReader.readLine()) != null)
8787
{
8888
if (_writeOutputToLog)
8989
_log.log(Level.DEBUG, "\t" + line);

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/SequencePipelineService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,5 @@ static public void setInstance(SequencePipelineService instance)
124124

125125
abstract public PreprocessingStep.Output simpleTrimFastqPair(File fq1, File fq2, List<String> params, File outDir, Logger log) throws PipelineJobException;
126126

127-
abstract public File runCiteSeqCount(PipelineStepOutput output, @Nullable String outputCategory, Readset htoReadset, File htoList, File cellBarcodeList, File outputDir, String basename, Logger log, List<String> extraArgs, boolean doHtoFiltering, @Nullable Integer minCountPerCell, File localPipelineDir, @Nullable Integer editDistance, boolean scanEditDistances, Readset parentReadset, @Nullable Integer genomeId) throws PipelineJobException;
127+
abstract public File runCiteSeqCount(PipelineStepOutput output, @Nullable String outputCategory, Readset htoReadset, File htoList, File cellBarcodeList, File outputDir, String basename, Logger log, List<String> extraArgs, boolean doHtoFiltering, @Nullable Integer minCountPerCell, File localPipelineDir, @Nullable Integer editDistance, boolean scanEditDistances, Readset parentReadset, @Nullable Integer genomeId, boolean generateHtoCalls) throws PipelineJobException;
128128
}

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/run/AbstractCommandWrapper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ protected void setLogLevel(Level logLevel)
263263
_logLevel = logLevel;
264264
}
265265

266+
public Level getLogLevel()
267+
{
268+
return _logLevel;
269+
}
270+
266271
public void setWarnNonZeroExits(boolean warnNonZeroExits)
267272
{
268273
_warnNonZeroExits = warnNonZeroExits;

0 commit comments

Comments
 (0)