biopipen 0.27.5__py3-none-any.whl → 0.27.6__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.27.5"
1
+ __version__ = "0.27.6"
biopipen/core/testing.py CHANGED
@@ -3,7 +3,7 @@ import tempfile
3
3
  from functools import wraps
4
4
  from pathlib import Path
5
5
 
6
- from pipen import Pipen, plugin
6
+ from pipen import Pipen
7
7
 
8
8
  TESTING_INDEX_INIT = 1
9
9
  TESTING_PARENT_DIR = Path(tempfile.gettempdir())
@@ -40,17 +40,6 @@ def _get_test_dirs(testfile, new):
40
40
  return name, workdir, outdir
41
41
 
42
42
 
43
- class PipelineSucceeded:
44
- """A plugin to check if the pipeline succeeded"""
45
-
46
- name = "succeeded"
47
- version = "0.1.0"
48
-
49
- @plugin.impl
50
- async def on_complete(pipen, succeeded):
51
- pipen._succeeded = succeeded
52
-
53
-
54
43
  def get_pipeline(testfile, loglevel="debug", enable_report=False, **kwargs):
55
44
  """Get a pipeline for a test file"""
56
45
  name, workdir, outdir = _get_test_dirs(testfile, False)
@@ -60,7 +49,7 @@ def get_pipeline(testfile, loglevel="debug", enable_report=False, **kwargs):
60
49
  "workdir": workdir,
61
50
  "outdir": outdir,
62
51
  "loglevel": loglevel,
63
- "plugins": [PipelineSucceeded, f"{report_plugin_prefix}report"],
52
+ "plugins": [f"{report_plugin_prefix}report"],
64
53
  }
65
54
  kws.update(kwargs)
66
55
  return Pipen(**kws)
@@ -52,12 +52,13 @@ do_one_group <- function(obj, features, group, outputdir, h1) {
52
52
  if (any(table(classes) < 5)) {
53
53
  msg <- paste("Group", group, "has less than 5 cells, or only 5 cells left.")
54
54
  log_warn(msg)
55
- add_report(
56
- list(kind = "error", content = msg),
57
- h1 = ifelse(is.null(h1), groupname, h1),
58
- h2 = ifelse(is.null(h1), "#", groupname)
55
+ return(
56
+ list(
57
+ list(kind = "error", content = msg),
58
+ h1 = ifelse(is.null(h1), groupname, h1),
59
+ h2 = ifelse(is.null(h1), "#", groupname)
60
+ )
59
61
  )
60
- return()
61
62
  }
62
63
 
63
64
  exprs = GetAssayData(obj)[features, , drop = FALSE]
biopipen/utils/gsea.R CHANGED
@@ -172,12 +172,12 @@ runFGSEA = function(
172
172
 
173
173
  tablefig = file.path(outdir, "gsea_table.png")
174
174
  png(tablefig, res=100, width=1000, height=200 + 40 * length(topPathways))
175
- print(plotGseaTable(
175
+ plotGseaTable(
176
176
  envs$pathways[topPathways],
177
177
  ranks,
178
178
  gsea_res,
179
179
  gseaParam = if (!is.null(envs$gseaParam)) envs$gseaParam else 1
180
- ))
180
+ )
181
181
  dev.off()
182
182
 
183
183
  for (pathway in topPathways) {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: biopipen
3
- Version: 0.27.5
3
+ Version: 0.27.6
4
4
  Summary: Bioinformatics processes/pipelines that can be run from `pipen run`
5
5
  License: MIT
6
6
  Author: pwwang
@@ -1,11 +1,11 @@
1
- biopipen/__init__.py,sha256=E1FuUUku2gzKP9EaIByX13BXhDU2SYE99gN_s2YdX7s,23
1
+ biopipen/__init__.py,sha256=BwKhBzWMdVser1JHOUEX0Aa2nBqgua67wsNi17fRle0,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=20RCI30Peee1EQdfb_UbV3Hf74XUPndJnYZlUThytsw,1781
5
5
  biopipen/core/defaults.py,sha256=yPeehPLk_OYCf71IgRVCWuQRxLAMixDF81Ium0HtPKI,344
6
6
  biopipen/core/filters.py,sha256=HLrjXGsvvjRtTWIAmg_f4IMymWaRD769HlDwsCTh170,12424
7
7
  biopipen/core/proc.py,sha256=60lUP3PcUAaKbDETo9N5PEIoeOYrLgcSmuytmrhcx8g,912
8
- biopipen/core/testing.py,sha256=fZ8lzLwM5AhYapx0LDdYZPumqC0dj7GZpQuabhlqyGI,3665
8
+ biopipen/core/testing.py,sha256=lZ_R5ZbYPO2NPuLHdbzg6HbD_f4j8paVVbyeUqwg6FE,3411
9
9
  biopipen/ns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  biopipen/ns/bam.py,sha256=5AsYrB0mtr_mH6mCL6gjJ5rC4NywpjFkpFjUrBGp7Fk,9301
11
11
  biopipen/ns/bcftools.py,sha256=puCDfIL-1z6cz2y1Rlz-ESNIr8xJgeIjEQ440qicCvM,3467
@@ -157,7 +157,7 @@ biopipen/scripts/scrna/Subset10X.R,sha256=T2nJBTwOe12AIKC2FZsMSv6xx3s-67CYZokpz5
157
157
  biopipen/scripts/scrna/TopExpressingGenes.R,sha256=kXMCYHVytgVgO_Uq66fKKFCFV2PPXE8VREy_0yYPLpU,7475
158
158
  biopipen/scripts/scrna/celltypist-wrapper.py,sha256=f5M8f4rU5nC7l17RS0YVmUPpLLz4D6PIcgWtA77UExM,1722
159
159
  biopipen/scripts/scrna/sctype.R,sha256=NaUJkABwF5G1UVm1CCtcMbwLSj94Mo24mbYCKFqo1Bw,6524
160
- biopipen/scripts/scrna_metabolic_landscape/MetabolicFeatures.R,sha256=b77yG5FeRse3bNfFgLIEYGHNZzydAn1OeyyR_n5Ju60,4790
160
+ biopipen/scripts/scrna_metabolic_landscape/MetabolicFeatures.R,sha256=nSBNn1BMwqoApTqmvzLeRhFu2JW_mNhOXICxmBYIP6E,4813
161
161
  biopipen/scripts/scrna_metabolic_landscape/MetabolicFeaturesIntraSubset.R,sha256=ic8Fy8QqYDGh_izmvZVJ3KL66podg_CSF5ITL3FZsvo,5196
162
162
  biopipen/scripts/scrna_metabolic_landscape/MetabolicPathwayActivity.R,sha256=95DLX1Rz0tobOuDZ8V9YdGgO0KiNthhccoeeOK21tno,16216
163
163
  biopipen/scripts/scrna_metabolic_landscape/MetabolicPathwayHeterogeneity.R,sha256=rQ9iwGh9FNRZlJJzM4QItdyXmebfzLAq05ZAjb1kGUw,9831
@@ -230,7 +230,7 @@ biopipen/utils/caching.R,sha256=qANQqH8p-VpvD8V4VSoqSfp0TFr4esujC7x3OFZsJMw,1687
230
230
  biopipen/utils/common_docstrs.py,sha256=Ow-g-yS5P7DEO37cP1X-xioRbYWygfQHxIuLIaDdrjs,6288
231
231
  biopipen/utils/gene.R,sha256=BzAwlLA8hO12vF-3t6IwEuTEeLa_jBll4zm_5qe3qoE,1243
232
232
  biopipen/utils/gene.py,sha256=qE_BqTayrJWxRdniffhcz6OhZcw9GUoOrj2EtFWH9Gw,2246
233
- biopipen/utils/gsea.R,sha256=UMQOlWGstQTOBScvy1wIzrB7I3CE28Xo2v1sy4lmJ-M,7549
233
+ biopipen/utils/gsea.R,sha256=2sN3AM0XjLWbTv6cB3JHCBWjuhmD4wEjPaaBY7wkhCI,7542
234
234
  biopipen/utils/io.R,sha256=jIYdqdn0iRWfQYAZa5CjXi3fikqmYvPPLIXhobRe8sw,537
235
235
  biopipen/utils/misc.R,sha256=jXusPDCxSIaYRq_qm4khUsu9nyMhbpBVcj8BVn4j8Ic,10629
236
236
  biopipen/utils/misc.py,sha256=KJziAFY4Kl-0ZsO93vteY9gRLZg9BSYig-TDocHY36k,3601
@@ -240,7 +240,7 @@ biopipen/utils/reference.py,sha256=6bPSwQa-GiDfr7xLR9a5T64Ey40y24yn3QfQ5wDFZkU,4
240
240
  biopipen/utils/rnaseq.R,sha256=Ro2B2dG-Z2oVaT5tkwp9RHBz4dp_RF-JcizlM5GYXFs,1298
241
241
  biopipen/utils/single_cell.R,sha256=pJjYP8bIZpNAtTQ32rOXhZxaM1Y-6D-xUcK3pql9tbk,4316
242
242
  biopipen/utils/vcf.py,sha256=ajXs0M_QghEctlvUlSRjWQIABVF02wPdYd-0LP4mIsU,9377
243
- biopipen-0.27.5.dist-info/METADATA,sha256=V-P-6i9I4Q1OE-KDY39Nkki_Iv_5jpP-65kxeUuCc88,882
244
- biopipen-0.27.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
245
- biopipen-0.27.5.dist-info/entry_points.txt,sha256=wu70aoBcv1UahVbB_5237MY-9M9_mzqmWjDD-oi3yz0,621
246
- biopipen-0.27.5.dist-info/RECORD,,
243
+ biopipen-0.27.6.dist-info/METADATA,sha256=t7ROsmFyR6-E4YXGAwiuNxRjZz5IX6_H7mT1rs9OSfE,882
244
+ biopipen-0.27.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
245
+ biopipen-0.27.6.dist-info/entry_points.txt,sha256=wu70aoBcv1UahVbB_5237MY-9M9_mzqmWjDD-oi3yz0,621
246
+ biopipen-0.27.6.dist-info/RECORD,,