biopipen 0.34.13__py3-none-any.whl → 0.34.14__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.34.13"
1
+ __version__ = "0.34.14"
@@ -111,7 +111,8 @@ if (file.exists(celltypist_outfile) &&
111
111
  command <- paste(command, "-v")
112
112
  }
113
113
  log$info("Running celltypist:")
114
- print("- {command}")
114
+ # print("- {command}")
115
+ log$debug(" {command}")
115
116
  rc <- system(command)
116
117
  if (rc != 0) {
117
118
  stop("Failed to run celltypist. Check the job.stderr file to see the error message.")
@@ -607,8 +607,14 @@ run_case <- function(name) {
607
607
  return(invisible())
608
608
  }
609
609
 
610
- case$object <- if (is.null(subset_)) srtobj else filter(srtobj, !!parse_expr(subset_))
610
+ # Let RunSeuratDEAnalysis handle the subset
611
+ case$subset <- subset_
612
+ case$object <- srtobj
611
613
  markers <- do_call(RunSeuratDEAnalysis, case)
614
+ case$object <- NULL # Release memory
615
+ gc()
616
+
617
+ subobj <- if (is.null(subset_)) srtobj else filter(srtobj, !!parse_expr(subset_))
612
618
 
613
619
  if (is.null(case$ident_1)) {
614
620
  all_idents <- unique(as.character(markers[[case$group_by]]))
@@ -621,7 +627,7 @@ run_case <- function(name) {
621
627
 
622
628
  attr(ident_markers, "ident_1") <- ident
623
629
  enrich <- process_markers(ident_markers, info = info, case = list(
624
- object = case$object,
630
+ object = subobj,
625
631
  dbs = dbs,
626
632
  group_by = case$group_by,
627
633
  sigmarkers = sigmarkers,
@@ -638,7 +644,7 @@ run_case <- function(name) {
638
644
  log$info("- Visualizing all markers together ...")
639
645
  process_allmarkers(
640
646
  markers,
641
- object = case$object,
647
+ object = subobj,
642
648
  comparison_by = case$group_by,
643
649
  plotcases = allmarker_plots,
644
650
  casename = name,
@@ -658,7 +664,7 @@ run_case <- function(name) {
658
664
  } else {
659
665
  info <- case_info(name, outdir, create = TRUE)
660
666
  enrich <- process_markers(markers, info = info, case = list(
661
- object = case$object,
667
+ object = subobj,
662
668
  dbs = dbs,
663
669
  group_by = case$group_by,
664
670
  sigmarkers = sigmarkers,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: biopipen
3
- Version: 0.34.13
3
+ Version: 0.34.14
4
4
  Summary: Bioinformatics processes/pipelines that can be run from `pipen run`
5
5
  License: MIT
6
6
  Author: pwwang
@@ -1,4 +1,4 @@
1
- biopipen/__init__.py,sha256=wgMjsjpJp94VKXjF2z1Lam_lUNV2X8aqhQOuo-pcpZg,24
1
+ biopipen/__init__.py,sha256=EumHAzPCe3UipaK_9iqfQf47_8LP5jWSnXBVUZmzQTA,24
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=lZV_vbYWk6uqm19ZWJcsZCcSNqAdIfN2fOfamzxZpg4,2148
@@ -142,7 +142,7 @@ biopipen/scripts/scrna/AnnData2Seurat.R,sha256=wc5PDbK9TkuJtoXXxF4W1ODylWhyfKWd3
142
142
  biopipen/scripts/scrna/CCPlotR-patch.R,sha256=KpB8fwacBaWaUNjIidcLUkMShLjS4Gq9UY8LUgIITB0,8369
143
143
  biopipen/scripts/scrna/CellCellCommunication.py,sha256=LnEuV8YHOJSYM7Tb_jwLbTQdMSpJw5ChRIiLktcJzSQ,4471
144
144
  biopipen/scripts/scrna/CellCellCommunicationPlots.R,sha256=IcqqhVWasSE54PDWaw85u5_yup_YHVNNwZI7oOy9250,2456
145
- biopipen/scripts/scrna/CellTypeAnnotation-celltypist.R,sha256=CwYR8WWQMf8r7V2CTalG4kxdKnYMtyhpJBe9zP2sQWA,6964
145
+ biopipen/scripts/scrna/CellTypeAnnotation-celltypist.R,sha256=FqxVHFNUC7tcOeA5I_IcxzxU0WDLKZrKObgq2PwaVS8,6995
146
146
  biopipen/scripts/scrna/CellTypeAnnotation-direct.R,sha256=jwjSBql66ku11b4O_7bIs9zuwbqHiGgrAFDk1tSbwg4,3111
147
147
  biopipen/scripts/scrna/CellTypeAnnotation-hitype.R,sha256=vvjhxin4aoA9heecey0dpr6ofirybygY3ApjgtQW89Y,2094
148
148
  biopipen/scripts/scrna/CellTypeAnnotation-sccatch.R,sha256=xxB4K1MzBSNQnDxa44s5ExeU67MbncOBf8lGFr7RvwQ,1870
@@ -155,7 +155,7 @@ biopipen/scripts/scrna/ExprImputation-rmagic.R,sha256=ePgbMZ_3bKbeUrjsMdkdtBM_MS
155
155
  biopipen/scripts/scrna/ExprImputation-scimpute.R,sha256=MI_bYfvCDKJsuGntUxfx_-NdrssBoQgL95-DGwJVE5s,1191
156
156
  biopipen/scripts/scrna/ExprImputation.R,sha256=GcdZJpkDpq88hRQjtLZY5-byp8V43stEFm5T-pQbU6A,319
157
157
  biopipen/scripts/scrna/LoomTo10X.R,sha256=c6F0p1udsL5UOlb84-53K5BsjSDWkdFyYTt5NQmlIec,1059
158
- biopipen/scripts/scrna/MarkersFinder.R,sha256=4SVcjG9GjR_WvKjkbOsu0GBDUkFTIqo2z45_gqUhqog,26187
158
+ biopipen/scripts/scrna/MarkersFinder.R,sha256=nz18T_70ni9sfoFYp8weQMCiojphF61l5yHe9f_gOSM,26320
159
159
  biopipen/scripts/scrna/MetaMarkers.R,sha256=BgYaWYEj6obwqaZaDWqNPtxb1IEEAnXAeBE0Ji9PvBA,12426
160
160
  biopipen/scripts/scrna/ModuleScoreCalculator.R,sha256=_mvo35a-wk5miUb_kMIVwvKK0b6InRa1NKtN8zznGwk,4457
161
161
  biopipen/scripts/scrna/PseudoBulkDEG.R,sha256=IuM4hl-KHZ5aaaTqZeylw4b1ZenMZaY4qobD5qxAlHs,25199
@@ -284,7 +284,7 @@ biopipen/utils/misc.py,sha256=pDZ-INWVNqHuXYvcjmu8KqNAigkh2lsHy0BxX44CPvc,4048
284
284
  biopipen/utils/reference.py,sha256=Oc6IlA1giLxymAuI7DO-IQLHQ7-DbsWzOQE86oTDfMU,5955
285
285
  biopipen/utils/reporter.py,sha256=VwLl6xyVDWnGY7NEXyqBlkW8expKJoNQ5iTyZSELf5c,4922
286
286
  biopipen/utils/vcf.py,sha256=MmMbAtLUcKPp02jUdk9TzuET2gWSeoWn7xgoOXFysK0,9393
287
- biopipen-0.34.13.dist-info/METADATA,sha256=0G3Xs0cXYh9cnRf4y8g7rjznqdxB_VxqfZUEiEK3bfo,1027
288
- biopipen-0.34.13.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
289
- biopipen-0.34.13.dist-info/entry_points.txt,sha256=BYqHGBQJxyFDNLYqgH64ycI5PYwnlqwYcCFsMvJgzAU,653
290
- biopipen-0.34.13.dist-info/RECORD,,
287
+ biopipen-0.34.14.dist-info/METADATA,sha256=uIS3ZdJr3bVM1TspZIe2NmoVavOa_XGKe4qsuRk7gdw,1027
288
+ biopipen-0.34.14.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
289
+ biopipen-0.34.14.dist-info/entry_points.txt,sha256=BYqHGBQJxyFDNLYqgH64ycI5PYwnlqwYcCFsMvJgzAU,653
290
+ biopipen-0.34.14.dist-info/RECORD,,