Skip to content

Commit

Permalink
Support maxLibrarySizeRatio for nimble
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 10, 2024
1 parent 98cfa80 commit fa471aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion singlecell/resources/chunks/AppendNimble.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for (datasetId in names(seuratObjects)) {
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])

for (genomeId in names(nimbleGenomes)) {
seuratObj <- Rdiscvr::DownloadAndAppendNimble(seuratObject = seuratObj, allowableGenomes = genomeId, targetAssayName = nimbleGenomes[[genomeId]], enforceUniqueFeatureNames = TRUE, dropAmbiguousFeatures = !retainAmbiguousFeatures)
seuratObj <- Rdiscvr::DownloadAndAppendNimble(seuratObject = seuratObj, allowableGenomes = genomeId, targetAssayName = nimbleGenomes[[genomeId]], enforceUniqueFeatureNames = TRUE, dropAmbiguousFeatures = !retainAmbiguousFeatures, maxLibrarySizeRatio = maxLibrarySizeRatio)
}

saveData(seuratObj, datasetId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ public Provider()
SeuratToolParameter.create("retainAmbiguousFeatures", "Retain Ambiguous Features", "If checked, features hitting more than one reference will be retained", "checkbox", new JSONObject()
{{
put("check", false);
}}, false, null, true)
}}, false, null, true),
SeuratToolParameter.create("maxLibrarySizeRatio", "Max Library Size Ratio", "This normalization relies on the assumption that the library size of the assay being normalized in negligible relative to the assayForLibrarySize. To verify this holds true, the method will error if librarySize(assayToNormalize)/librarySize(assayForLibrarySize) exceeds this value", "ldk-numberfield", new JSONObject()
{{
put("decimalPrecision", 4);
}}, 0.1, null, true)
), Arrays.asList("sequenceanalysis/field/GenomeField.js", "/singlecell/panel/NimbleAppendPanel.js"), null);
}

Expand Down

0 comments on commit fa471aa

Please sign in to comment.