biopipen 0.23.1__py3-none-any.whl → 0.23.2__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.23.1"
1
+ __version__ = "0.23.2"
@@ -294,6 +294,7 @@ do_barplot_and_tests <- function(info, case, counts) {
294
294
  geom_errorbar(
295
295
  aes(ymin = mean_sd1, ymax = mean_sd2),
296
296
  width = 0.4,
297
+ linewidth = 0.8,
297
298
  position = position_dodge(0.9),
298
299
  color = "#333333"
299
300
  ) +
@@ -326,10 +327,21 @@ do_barplot_and_tests <- function(info, case, counts) {
326
327
  group_by(!!sym(case$ident)) %>%
327
328
  summarise(
328
329
  comparison = paste0(pair, collapse = " - "),
330
+ n = paste(as.list(table(!!sym(case$by)))[pair], collapse = "; "),
331
+ mean = paste(
332
+ (tibble(.frac, !!sym(case$by)) %>%
333
+ group_by(!!sym(case$by)) %>%
334
+ summarise(mean = mean(.frac)) %>%
335
+ column_to_rownames(case$by) %>%
336
+ t() %>%
337
+ as.data.frame() %>%
338
+ as.list())[pair] %>% unlist() %>% round(3),
339
+ collapse = "; "
340
+ ),
329
341
  !!sym(paste0(case$test, "_pval")) := ifelse(
330
342
  case$test == "wilcox",
331
- wilcox.test(.frac ~ !!sym(case$by))$p.value,
332
- t.test(.frac ~ !!sym(case$by))$p.value
343
+ tryCatch(wilcox.test(.frac ~ !!sym(case$by))$p.value, error = function(e) NA),
344
+ tryCatch(t.test(.frac ~ !!sym(case$by))$p.value, error = function(e) NA)
333
345
  )
334
346
  )
335
347
  test_results <- rbind(test_results, dat)
@@ -426,10 +438,11 @@ run_one_case <- function(casename) {
426
438
 
427
439
  # Get the counts
428
440
  if (!is.null(case$each)) {
429
- counts <- meta %>% filter(!!sym(case$each) == case$each_value) %>% drop_na(!!sym(case$by))
441
+ counts <- meta %>% filter(!!sym(case$each) == case$each_value)
430
442
  } else {
431
- counts <- meta %>% drop_na(!!sym(case$by))
443
+ counts <- meta
432
444
  }
445
+ counts <- counts %>% drop_na(!!sym(case$by)) %>% drop_na(!!sym(case$ident))
433
446
  do_radarplot(info, case, counts)
434
447
 
435
448
  if (!is.null(case$breakdown)) {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: biopipen
3
- Version: 0.23.1
3
+ Version: 0.23.2
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=EmtVqV41YmZp6Mj5pkm4iGXDMznVEE4GQEUYGGidq30,23
1
+ biopipen/__init__.py,sha256=yninyH3Qwkx3xw1ShRaTmjGR_Q-bmMjaMjZVzxS2tLM,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=Rn7Cta7WsMtmQkKGC4h9d5dU_STaIVBgR8UliiGgL6o,1757
@@ -122,7 +122,7 @@ biopipen/scripts/scrna/ExprImpution.R,sha256=7768ezrr59xUZDXq8lO9jj2XhnkSsx-xxBm
122
122
  biopipen/scripts/scrna/MarkersFinder.R,sha256=P0tUurKdEhT-ED49f_c9pqAjQafYiYGE4LJehWblBlQ,26182
123
123
  biopipen/scripts/scrna/MetaMarkers.R,sha256=dJJs9fTYNcWJpDs_m_Gu4Z8vYHuTS1ZuORrw5BtXFzY,12348
124
124
  biopipen/scripts/scrna/ModuleScoreCalculator.R,sha256=JSHd-_-KiFqW8avCGxgU4T-C5BtDr2u0kwIvEu2lFIg,4188
125
- biopipen/scripts/scrna/RadarPlots.R,sha256=zDMnmRztKWY8Y-hhvHIAJeab3PMRBJfkcCKG6erRtjg,13495
125
+ biopipen/scripts/scrna/RadarPlots.R,sha256=aYx6eGdvfXCJA7GfryWiCdRHMF6Do8DbO1XzU845sg8,14193
126
126
  biopipen/scripts/scrna/SCImpute.R,sha256=dSJOHhmJ3x_72LBRXT72dbCti5oiB85CJ-OjWtqONbk,2958
127
127
  biopipen/scripts/scrna/ScFGSEA.R,sha256=2nJN1AAe55SyR-jwVj5ds2pyt32fTIn548zjvEB4Jt0,7332
128
128
  biopipen/scripts/scrna/SeuratClusterStats-dimplots.R,sha256=pZKv1SnSNEGXDeE0_2VYp0GAikYitohW2FR5YGKjs8Q,2351
@@ -218,7 +218,7 @@ biopipen/utils/reference.py,sha256=6bPSwQa-GiDfr7xLR9a5T64Ey40y24yn3QfQ5wDFZkU,4
218
218
  biopipen/utils/rnaseq.R,sha256=Ro2B2dG-Z2oVaT5tkwp9RHBz4dp_RF-JcizlM5GYXFs,1298
219
219
  biopipen/utils/single_cell.R,sha256=bKduqOQjSC8BtZJuwfUShR49omoEMbB57n3Gi6dYlqA,4147
220
220
  biopipen/utils/vcf.py,sha256=ajXs0M_QghEctlvUlSRjWQIABVF02wPdYd-0LP4mIsU,9377
221
- biopipen-0.23.1.dist-info/METADATA,sha256=wGVABk9XUoP2BhdNKWsKxD3iZz6wN3khvt70meDYfkE,886
222
- biopipen-0.23.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
223
- biopipen-0.23.1.dist-info/entry_points.txt,sha256=16Apdku3RFwghe1nb0JR7eVo4IzLae6hCWjU1VxYUn0,525
224
- biopipen-0.23.1.dist-info/RECORD,,
221
+ biopipen-0.23.2.dist-info/METADATA,sha256=DUY229wIE-gE3ifKTbpHQBjxSNXZAyzRjZTSL4X6gcI,886
222
+ biopipen-0.23.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
223
+ biopipen-0.23.2.dist-info/entry_points.txt,sha256=16Apdku3RFwghe1nb0JR7eVo4IzLae6hCWjU1VxYUn0,525
224
+ biopipen-0.23.2.dist-info/RECORD,,