Skip to content

Commit 4914eb9

Browse files
author
root
committed
Merge discvr-22.11 to develop
2 parents 62421f9 + ea6630a commit 4914eb9

File tree

11 files changed

+46
-22
lines changed

11 files changed

+46
-22
lines changed

SequenceAnalysis/pipeline_code/sequence_tools_install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,8 @@ then
872872
else
873873
CUTADAPT_BRANCH=v4.0
874874
$PIP_EXE install --target ${LKTOOLS_DIR}/cutadapt_pip git+https://github.com/marcelm/cutadapt.git@${CUTADAPT_BRANCH}
875-
ln -s ${LKTOOLS_DIR}/cutadapt_pip/bin/cutadapt ${LKTOOLS_DIR}/cutadapt
875+
cd ${LKTOOLS_DIR}
876+
ln -s ./cutadapt_pip/bin/cutadapt cutadapt
876877
fi
877878
else
878879
echo "Already installed"

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceAnalysisMaintenanceTask.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,9 @@ private void deleteFile(File f, Logger log) throws IOException
500500
private static FileType _bamFileType = new FileType("bam");
501501
private static FileType _cramFileType = new FileType("cram");
502502
private static FileType _vcfFileType = new FileType("vcf", FileType.gzSupportLevel.SUPPORT_GZ);
503-
private static FileType _bedFileType = new FileType("bed");
503+
private static FileType _bedFileType = new FileType("bed", FileType.gzSupportLevel.SUPPORT_GZ);
504504
private static FileType _fastaFileType = new FileType(Arrays.asList("fasta", "fa"), "fasta", FileType.gzSupportLevel.SUPPORT_GZ);
505+
private static FileType _gxfFileType = new FileType(Arrays.asList("gtf", "gff", "gff3"), "gff", FileType.gzSupportLevel.SUPPORT_GZ);
505506

506507
/**
507508
* This is intended to return any files associated with an input, which is primarily designed to pick up index files
@@ -532,9 +533,17 @@ else if (_vcfFileType.isType(f))
532533
ret.add(f.getName() + ".gz.idx");
533534
}
534535
}
535-
else if (_bedFileType.isType(f))
536+
else if (_bedFileType.isType(f) || _gxfFileType.isType(f))
536537
{
537538
ret.add(f.getName() + ".idx");
539+
ret.add(f.getName() + ".tbi");
540+
541+
if (includeGz)
542+
{
543+
ret.add(f.getName() + ".gz");
544+
ret.add(f.getName() + ".gz.tbi");
545+
ret.add(f.getName() + ".gz.idx");
546+
}
538547
}
539548
else if (_fastaFileType.isType(f))
540549
{

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/preprocessing/TagPcrSummaryStep.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public Provider()
7272
put("checked", true);
7373
}}, true),
7474
ToolParameterDescriptor.createCommandLineParam(CommandLineParam.create("--insert-name"), "insertType", "Insert Type", "The type of insert to detect.", "ldk-simplecombo", new JSONObject(){{
75-
put("storeValues", "PiggyBac;Lentivirus");
75+
put("storeValues", "PiggyBac;Lentivirus;PREDICT");
7676
put("allowBlank", false);
77-
}}, "PiggyBac"),
77+
}}, null),
7878
ToolParameterDescriptor.create(DESIGN_PRIMERS, "Design Primers", "If selected, Primer3 will be used to design primers to flank integration sites", "checkbox", new JSONObject(){{
7979
put("checked", false);
8080
}}, false),

singlecell/resources/chunks/RunCelltypist.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ for (datasetId in names(seuratObjects)) {
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
44

55
for (mn in modelNames) {
6-
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = paste0(mn, '.pkl'), convertAmbiguousToNA = convertAmbiguousToNA, columnPrefix = paste0('celltypist.', mn, '.'), pThreshold = pThreshold, minProp = minProp, maxAllowableClasses = maxAllowableClasses, minFractionToInclude = minFractionToInclude, useMajorityVoting = useMajorityVoting, mode = mode, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix)
6+
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = paste0(mn, '.pkl'), columnPrefix = paste0('celltypist.', mn, '.'), pThreshold = pThreshold, minProp = minProp, maxAllowableClasses = maxAllowableClasses, minFractionToInclude = minFractionToInclude, useMajorityVoting = useMajorityVoting, mode = mode, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix)
77
}
88

99
saveData(seuratObj, datasetId)

singlecell/resources/chunks/RunCelltypistCustomModel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ for (datasetId in names(seuratObjects)) {
22
printName(datasetId)
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
44

5-
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = modelFile, columnPrefix = columnPrefix, convertAmbiguousToNA = convertAmbiguousToNA, pThreshold = pThreshold, minProp = minProp, maxAllowableClasses = maxAllowableClasses, minFractionToInclude = minFractionToInclude, useMajorityVoting = useMajorityVoting, mode = mode, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix)
5+
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = modelFile, columnPrefix = columnPrefix, pThreshold = pThreshold, minProp = minProp, maxAllowableClasses = maxAllowableClasses, minFractionToInclude = minFractionToInclude, useMajorityVoting = useMajorityVoting, mode = mode, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix)
66

77
saveData(seuratObj, datasetId)
88
}

singlecell/resources/chunks/RunRiraClassification.R

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

5-
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = 'RIRA_Immune_v1', maxBatchSize = maxBatchSize, columnPrefix = 'RIRA_Immune_v1.', retainProbabilityMatrix = retainProbabilityMatrix)
6-
seuratObj <- RIRA::Classify_TNK(seuratObj, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix, columnPrefix = 'RIRA_TNK_v2.')
5+
seuratObj <- RIRA::Classify_ImmuneCells(seuratObj, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix)
6+
seuratObj <- RIRA::Classify_TNK(seuratObj, maxBatchSize = maxBatchSize, retainProbabilityMatrix = retainProbabilityMatrix)
77

88
seuratObj$RIRA_TNK_v2.predicted_labels[seuratObj$RIRA_Immune_v1.majority_voting != 'T_NK'] <- 'Other'
99

singlecell/resources/chunks/SplitSeurat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ for (datasetId in names(seuratObjects)) {
22
printName(datasetId)
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
44

5-
newList <- CellMembrane::SplitSeurat(seuratObj, splitField = splitField, minCellsToKeep = minCellsToKeep)
5+
newList <- CellMembrane::SplitSeurat(seuratObj, splitField = splitField, minCellsToKeep = minCellsToKeep, excludedClasses = excludedClasses)
66
for (name in names(newList)) {
77
saveData(newList[[name]], paste0(datasetId, '-', name))
88
}

singlecell/resources/views/singleCellDataManagement.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,27 @@
6161
})
6262
},{
6363
name: 'Readsets Not Archived to SRA',
64-
url: LABKEY.ActionURL.buildURL('query', 'executeQuery.view', null, {schemaName: 'sequenceanalysis', queryName: 'sequence_readsets', 'query.totalForwardReads~isnonblank': null, 'query.isArchived~eq': 0})
65-
},{
64+
url: LABKEY.ActionURL.buildURL('query', 'executeQuery.view', null, {
65+
schemaName: 'sequenceanalysis',
66+
queryName: 'sequence_readsets',
67+
'query.totalForwardReads~isnonblank': null,
68+
'query.isArchived~eq': 0}
69+
)
70+
}, {
6671
name: 'Analyses Using Old Readsets',
67-
url: LABKEY.ActionURL.buildURL('query', 'executeQuery.view', null, {schemaName: 'sequenceanalysis', queryName: 'sequence_analyses', 'query.readset/status~isnonblank': null})
72+
url: LABKEY.ActionURL.buildURL('query', 'executeQuery.view', null, {
73+
schemaName: 'sequenceanalysis',
74+
queryName: 'sequence_analyses',
75+
'query.readset/status~isnonblank': null
76+
})
77+
},{
78+
name: 'Orphan 10x Run Summaries',
79+
url: LABKEY.ActionURL.buildURL('query', 'executeQuery.view', null, {
80+
schemaName: 'sequenceanalysis',
81+
queryName: 'outputfiles',
82+
'query.category~eq': '10x Run Summary',
83+
'query.readset/totalOutputs~eq': 1
84+
})
6885
}]
6986
}]
7087
}]

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ public Provider()
2727
put("delimiter", ";");
2828
put("joinReturnValue", true);
2929
}}, "Immune_All_Low.pkl", null, true, true).delimiter(";"),
30-
SeuratToolParameter.create("convertAmbiguousToNA", "Convert Ambiguous To NA", "If true, any values for majority_voting with commas (indicating they are ambiguous) will be converted to NA", "checkbox", new JSONObject()
31-
{{
32-
put("checked", false);
33-
}}, false),
3430
SeuratToolParameter.create("maxAllowableClasses", "Max Allowable Classes", "Celltypist can assign a cell to many classes, creating extremely long labels. Any cell with more than this number of labels will be set to NA", "ldk-integerfield", new JSONObject()
3531
{{
3632
put("minValue", 0);

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ public Provider()
3434
put("performGenomeFilter", false);
3535
}}, null),
3636
SeuratToolParameter.create("columnPrefix", "Column Prefix", "This string will be pre-pended to the normal output columns (i.e. majority_voting and predicted_labels)", "textfield", null, null),
37-
SeuratToolParameter.create("convertAmbiguousToNA", "Convert Ambiguous To NA", "If true, any values for majority_voting with commas (indicating they are ambiguous) will be converted to NA", "checkbox", new JSONObject()
38-
{{
39-
put("checked", false);
40-
}}, false),
4137
SeuratToolParameter.create("maxAllowableClasses", "Max Allowable Classes", "Celltypist can assign a cell to many classes, creating extremely long labels. Any cell with more than this number of labels will be set to NA", "ldk-integerfield", new JSONObject()
4238
{{
4339
put("minValue", 0);

0 commit comments

Comments
 (0)