biopipen 0.31.0__py3-none-any.whl → 0.31.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of biopipen might be problematic. Click here for more details.
- biopipen/__init__.py +1 -1
- biopipen/scripts/scrna/SeuratMap2Ref.R +20 -3
- {biopipen-0.31.0.dist-info → biopipen-0.31.1.dist-info}/METADATA +1 -1
- {biopipen-0.31.0.dist-info → biopipen-0.31.1.dist-info}/RECORD +6 -6
- {biopipen-0.31.0.dist-info → biopipen-0.31.1.dist-info}/WHEEL +0 -0
- {biopipen-0.31.0.dist-info → biopipen-0.31.1.dist-info}/entry_points.txt +0 -0
biopipen/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.31.
|
|
1
|
+
__version__ = "0.31.1"
|
|
@@ -45,6 +45,10 @@ if (is.null(split_by)) {
|
|
|
45
45
|
future::plan(strategy = "multicore", workers = ncores)
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
.is_sct <- function(x) {
|
|
49
|
+
return(Seurat:::IsSCT(assay = x@assays[[DefaultAssay(x)]]))
|
|
50
|
+
}
|
|
51
|
+
|
|
48
52
|
.expand_dims = function(args, name = "dims") {
|
|
49
53
|
# Expand dims from 30 to 1:30
|
|
50
54
|
if (is.numeric(args[[name]]) && length(args[[name]] == 1)) {
|
|
@@ -63,6 +67,8 @@ if (endsWith(ref, ".rds") || endsWith(ref, ".RDS")) {
|
|
|
63
67
|
} else {
|
|
64
68
|
reference = LoadH5Seurat(ref)
|
|
65
69
|
}
|
|
70
|
+
reference = UpdateSeuratObject(reference)
|
|
71
|
+
reference = UpdateSCTAssays(reference)
|
|
66
72
|
|
|
67
73
|
# check if refdata exists in the reference
|
|
68
74
|
for (rname in names(mapquery_args$refdata)) {
|
|
@@ -84,9 +90,20 @@ for (rname in names(mapquery_args$refdata)) {
|
|
|
84
90
|
}
|
|
85
91
|
}
|
|
86
92
|
|
|
87
|
-
if (refnorm == "auto" &&
|
|
93
|
+
if (refnorm == "auto" && .is_sct(reference)) {
|
|
88
94
|
refnorm = "SCTransform"
|
|
89
95
|
}
|
|
96
|
+
if (refnorm == "SCTransform") {
|
|
97
|
+
# Check if the reference is SCTransform'ed
|
|
98
|
+
if (!.is_sct(reference)) {
|
|
99
|
+
stop("Reference is not SCTransform'ed")
|
|
100
|
+
}
|
|
101
|
+
n_models = length(x = slot(object = reference[[DefaultAssay(reference)]], name = "SCTModel.list"))
|
|
102
|
+
if (n_models == 0) {
|
|
103
|
+
stop("Reference doesn't contain SCTModel.")
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
90
107
|
log_info(" Normalization method used: {refnorm}")
|
|
91
108
|
if (refnorm == "SCTransform") {
|
|
92
109
|
findtransferanchors_args$normalization.method = "SCT"
|
|
@@ -307,14 +324,14 @@ sobj@meta.data = sobj@meta.data %>% mutate(
|
|
|
307
324
|
Idents(sobj) = ident
|
|
308
325
|
|
|
309
326
|
# Check if PrepSCTFindMarkers is done
|
|
310
|
-
if (
|
|
327
|
+
if (.is_sct(sobj) && is.null(sobj@commands$PrepSCTFindMarkers)) {
|
|
311
328
|
log_info("- Running PrepSCTFindMarkers ...")
|
|
312
329
|
sobj <- PrepSCTFindMarkers(sobj)
|
|
313
330
|
# compose a new SeuratCommand to record it to sobj@commands
|
|
314
331
|
commands <- names(pbmc_small@commands)
|
|
315
332
|
scommand <- pbmc_small@commands[[commands[length(commands)]]]
|
|
316
333
|
scommand@time.stamp <- Sys.time()
|
|
317
|
-
scommand@assay.used <-
|
|
334
|
+
scommand@assay.used <- DefaultAssay(sobj)
|
|
318
335
|
scommand@call.string <- "PrepSCTFindMarkers(object = sobj)"
|
|
319
336
|
scommand@params <- list()
|
|
320
337
|
sobj@commands$PrepSCTFindMarkers <- scommand
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
biopipen/__init__.py,sha256=
|
|
1
|
+
biopipen/__init__.py,sha256=PB3hjnlSwoWLBLl2ge7lsrSRubKXRdIanr_Hg2t3ViA,23
|
|
2
2
|
biopipen/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
biopipen/core/config.py,sha256=edK5xnDhM8j27srDzsxubi934NMrglLoKrdcC8qsEPk,1069
|
|
4
4
|
biopipen/core/config.toml,sha256=7IXvviRicZ2D1h6x3BVgbLJ96nsh-ikvZ0sVlQepqFE,1944
|
|
@@ -164,7 +164,7 @@ biopipen/scripts/scrna/SeuratClustering-common.R,sha256=JX4Cn2FC6GOcBqaVyGDD3MM5
|
|
|
164
164
|
biopipen/scripts/scrna/SeuratClustering.R,sha256=0OKRBQ5rFuupK7c03_sSt2HMwMdMnCYFqTvkRXFKchs,1706
|
|
165
165
|
biopipen/scripts/scrna/SeuratFilter.R,sha256=BrYK0MLdaTtQvInMaQsmOt7oH_hlks0M1zykkJtg2lM,509
|
|
166
166
|
biopipen/scripts/scrna/SeuratLoading.R,sha256=ekWKnHIqtQb3kHVQiVymAHXXqiUxs6KKefjZKjaykmk,900
|
|
167
|
-
biopipen/scripts/scrna/SeuratMap2Ref.R,sha256
|
|
167
|
+
biopipen/scripts/scrna/SeuratMap2Ref.R,sha256=KARt5IVBDYpNhLZ7_j0FEi1u5S8PxU_mB4THH26s7AM,12008
|
|
168
168
|
biopipen/scripts/scrna/SeuratMetadataMutater.R,sha256=PMwG0Xvl_EEVKkicfrIi4arEqpY948PkYLkb59kTAXI,1135
|
|
169
169
|
biopipen/scripts/scrna/SeuratPreparing-common.R,sha256=WuD7lGS17eAUQWSiIdAoV0EIeqS3Tnkkx-7PbP6Q3tc,16279
|
|
170
170
|
biopipen/scripts/scrna/SeuratPreparing-doublet_detection.R,sha256=TNN2lfFjpnnO0rguMsG38JYCP1nFUhcPLJ1LqGj-Sc8,6674
|
|
@@ -279,7 +279,7 @@ biopipen/utils/reference.py,sha256=oi5evicLwHxF0KAIPNZohBeHJLJQNWFJH0cr2y5pgcg,5
|
|
|
279
279
|
biopipen/utils/rnaseq.R,sha256=Ro2B2dG-Z2oVaT5tkwp9RHBz4dp_RF-JcizlM5GYXFs,1298
|
|
280
280
|
biopipen/utils/single_cell.R,sha256=pJjYP8bIZpNAtTQ32rOXhZxaM1Y-6D-xUcK3pql9tbk,4316
|
|
281
281
|
biopipen/utils/vcf.py,sha256=ajXs0M_QghEctlvUlSRjWQIABVF02wPdYd-0LP4mIsU,9377
|
|
282
|
-
biopipen-0.31.
|
|
283
|
-
biopipen-0.31.
|
|
284
|
-
biopipen-0.31.
|
|
285
|
-
biopipen-0.31.
|
|
282
|
+
biopipen-0.31.1.dist-info/METADATA,sha256=uPOVUaGxNgT5ZJwJWBDXqmnxaBUxaMvyErjqFCRsV60,882
|
|
283
|
+
biopipen-0.31.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
284
|
+
biopipen-0.31.1.dist-info/entry_points.txt,sha256=69SbeMaF47Z2DS40yo-qDyoBKmMmumrNnsjEZMOioCE,625
|
|
285
|
+
biopipen-0.31.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|