Skip to content

Commit cd22e7a

Browse files
authored
Merge pull request #179 from BimberLab/22.11_fb_merge
Merge discvr-22.7 to discvr-22.11
2 parents 45ef66b + 9e402da commit cd22e7a

File tree

13 files changed

+20
-13
lines changed

13 files changed

+20
-13
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/VariantProcessingJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ else if (_scatterGatherMethod == VariantProcessingStep.ScatterGatherMethod.fixed
159159

160160
public boolean doAllowSplitContigs()
161161
{
162-
return getParameterJson().optBoolean("scatterGather.allowSplitChromosomes", true);
162+
return getParameterJson().optBoolean("scatterGather.allowSplitChromosomes", false);
163163
}
164164

165165
public boolean isScatterJob()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private File runPbsvCall(JobContext ctx, List<File> inputs, ReferenceGenome geno
248248

249249
for (File s : inputs)
250250
{
251-
String ret = StringUtils.trimToNull(runner.executeWithOutput(Arrays.asList("/bin/bash", "-c", tabix.getExe().getPath() + " -l '" + s.getPath() + "' | awk ' { $1 == \"" + contig + "\" } ' | wc -l")));
251+
String ret = StringUtils.trimToNull(runner.executeWithOutput(Arrays.asList("/bin/bash", "-c", tabix.getExe().getPath() + " -l '" + s.getPath() + "' | awk ' $1 == \"" + contig + "\" ' | wc -l")));
252252
if ("0".equals(ret))
253253
{
254254
ctx.getLogger().info("Sample is missing contig: " + contig + ", skipping: " + s.getPath());

singlecell/resources/chunks/ClrNormalizeByGroup.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
for (datasetId in names(seuratObjects)) {
22
printName(datasetId)
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
4-
seuratObj <- CellMembrane::ClrNormalizeByGroup(seuratObj, groupingVar = groupingVar, assayName = assayName, targetAssayName = targetAssayName, margin = margin, minCellsPerGroup = minCellsPerGroup, calculatePerFeatureUCell = calculatePerFeatureUCell, featureInclusionList = featureWhitelist, featureExclusionList = featureExclusionList)
4+
seuratObj <- CellMembrane::ClrNormalizeByGroup(seuratObj, groupingVar = groupingVar, assayName = assayName, targetAssayName = targetAssayName, margin = margin, minCellsPerGroup = minCellsPerGroup, calculatePerFeatureUCell = calculatePerFeatureUCell, featureInclusionList = featureWhitelist, featureExclusionList = featureExclusionList, doAsinhTransform = doAsinhTransform)
55

66
saveData(seuratObj, datasetId)
77

singlecell/resources/chunks/Functions.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ savedFiles <- data.frame(datasetId = character(), datasetName = character(), fil
6464
if (file.exists('/work/savedSeuratObjects.txt')) {
6565
unlink('/work/savedSeuratObjects.txt')
6666
}
67+
file.create('/work/savedSeuratObjects.txt')
6768

6869
saveData <- function(seuratObj, datasetId) {
6970
print(paste0('Saving dataset: ', datasetId))

singlecell/resources/chunks/RunScGate.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ for (datasetId in names(seuratObjects)) {
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
44

55
if (useRhesusDefaults) {
6-
seuratObj <- RIRA::RunScGateWithRhesusModels(seuratObj, dropAmbiguousConsensusValues = dropAmbiguousConsensusValues)
6+
seuratObj <- RIRA::RunScGateWithRhesusModels(seuratObj, dropAmbiguousConsensusValues = dropAmbiguousConsensusValues, assay = assayName)
77
} else {
8-
seuratObj <- RIRA::RunScGateForModels(seuratObj, modelNames = modelNames, labelRename = list(Tcell = 'T_NK', NK = 'T_NK'), dropAmbiguousConsensusValues = dropAmbiguousConsensusValues, consensusModels = consensusModels)
8+
seuratObj <- RIRA::RunScGateForModels(seuratObj, modelNames = modelNames, labelRename = list(Tcell = 'T_NK', NK = 'T_NK'), dropAmbiguousConsensusValues = dropAmbiguousConsensusValues, consensusModels = consensusModels, assay = assayName)
99
}
1010

1111
saveData(seuratObj, datasetId)

singlecell/src/org/labkey/singlecell/pipeline/singlecell/CalculateUCellScores.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public Provider()
2525
SeuratToolParameter.create("storeRanks", "Store Ranks", "Passed directly to UCell::AddModuleScore_UCell.", "checkbox", new JSONObject(){{
2626

2727
}}, false),
28-
SeuratToolParameter.create("assayName", "Assay Name", "Passed directly to UCell::AddModuleScore_UCell.", "checkbox", new JSONObject(){{
28+
SeuratToolParameter.create("assayName", "Assay Name", "Passed directly to UCell::AddModuleScore_UCell.", "textfield", new JSONObject(){{
2929

3030
}}, "RNA")
3131
), null, null);

singlecell/src/org/labkey/singlecell/pipeline/singlecell/CiteSeqDimReduxDist.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Provider()
2323
SeuratToolParameter.create("performClrNormalization", "Perform CLR Normalization", "If true, Seurat CLR normalization will be performed. Otherwise any pre-existing normalization is used.", "checkbox", new JSONObject(){{
2424
put("checked", true);
2525
}}, true, "performClrNormalization", true),
26-
SeuratToolParameter.create("assayName", "Assay Name", "The assay to use", "textbox", new JSONObject(){{
26+
SeuratToolParameter.create("assayName", "Assay Name", "The assay to use", "textfield", new JSONObject(){{
2727

2828
}}, "ADT")
2929
), null, null);

singlecell/src/org/labkey/singlecell/pipeline/singlecell/CiteSeqDimReduxPca.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public Provider()
3333
put("delimiter", ",");
3434
put("stripCharsRe", "/['\"]/g");
3535
}}, null).delimiter(","),
36-
SeuratToolParameter.create("assayName", "Assay Name", "The assay to use", "textbox", new JSONObject(){{
36+
SeuratToolParameter.create("assayName", "Assay Name", "The assay to use", "textfield", new JSONObject(){{
3737

3838
}}, "ADT")
3939
), null, null);

singlecell/src/org/labkey/singlecell/pipeline/singlecell/CiteSeqPlots.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static class Provider extends AbstractPipelineStepProvider<SingleCellStep
2020
public Provider()
2121
{
2222
super("CiteSeqPlots", "CiteSeq/ADT Plots", "CellMembrane/Seurat", "This will create FeaturePlots for all features in the ADT assay.", Arrays.asList(
23-
SeuratToolParameter.create("assayName", "Assay Name", "The assay to use", "textbox", new JSONObject(){{
23+
SeuratToolParameter.create("assayName", "Assay Name", "The assay to use", "textfield", new JSONObject(){{
2424

2525
}}, "ADT")
2626
), null, null);

singlecell/src/org/labkey/singlecell/pipeline/singlecell/ClrNormalizeByGroup.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ public Provider()
3535
SeuratToolParameter.create("minCellsPerGroup", "Min Cells Per Group", "Any group with fewer than this many cells will be dropped.", "ldk-integerfield", new JSONObject(){{
3636

3737
}}, 20),
38-
SeuratToolParameter.create("calculatePerFeatureUCell", "Calculate Per Feature UCell ", "If checked, UCell will be run over each ", "checkbox", new JSONObject(){{
38+
SeuratToolParameter.create("calculatePerFeatureUCell", "Calculate Per Feature UCell ", "If checked, UCell will be run over each ADT", "checkbox", new JSONObject(){{
39+
put("checked", true);
40+
}}, true),
41+
SeuratToolParameter.create("doAsinhTransform", "Do asinh Transform ", "If checked, count data will be transformed using asinh prior to CLR", "checkbox", new JSONObject(){{
3942
put("checked", true);
4043
}}, true),
4144
SeuratToolParameter.create("featureWhitelist", "Genes to Add to VariableFeatures", "These genes, entered comma-separated or one/line, will be added to the default Seurat::VariableFeatures gene set when running PCA", "sequenceanalysis-trimmingtextarea", new JSONObject(){{

0 commit comments

Comments
 (0)