@platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software 1.8.0 → 1.9.0

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.
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/differential-clonotype-abundance/differential-clonotype-abundance/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software@1.8.0 build /home/runner/work/differential-clonotype-abundance/differential-clonotype-abundance/software
3
+ > @platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software@1.9.0 build /home/runner/work/differential-clonotype-abundance/differential-clonotype-abundance/software
4
4
  > pl-pkg build
5
5
 
6
6
  info: Rendering entrypoint descriptors...
@@ -8,4 +8,4 @@
8
8
  info: Building software package 'main' for platform 'linux-x64'...
9
9
  info: packing software into a package
10
10
  info: generating cross-platform package
11
- info: software package was written to '/home/runner/work/differential-clonotype-abundance/differential-clonotype-abundance/software/pkg-platforma-open-milaboratories.run-diff-clonotype-abundance-deseq2-r.software-main-1.8.0.tgz'
11
+ info: software package was written to '/home/runner/work/differential-clonotype-abundance/differential-clonotype-abundance/software/pkg-platforma-open-milaboratories.run-diff-clonotype-abundance-deseq2-r.software-main-1.9.0.tgz'
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.run-deseq2-r.software
2
2
 
3
+ ## 1.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 349f6fb: Updated block to capture correctly specs in latest MiXCR clonotyping exports.
8
+
3
9
  ## 1.8.0
4
10
 
5
11
  ### Minor Changes
@@ -1 +1 @@
1
- {"name":"@platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software:main","binary":{"type":"R","registry":"platforma-open","package":"platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software/main/1.8.0.tgz","cmd":["Rscript","{pkg}/run_onlyDESeq2.R"],"envVars":[],"runEnv":{"name":"@platforma-open/milaboratories.runenv-r-differential-expression:main","type":"R","registry":"platforma-open","package":"platforma-open/milaboratories.runenv-r-differential-expression/main/1.0.7-{os}-{arch}.tgz","binDir":"bin"},"toolset":"renv","dependencies":{}}}
1
+ {"name":"@platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software:main","binary":{"type":"R","registry":"platforma-open","package":"platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software/main/1.9.0.tgz","cmd":["Rscript","{pkg}/run_onlyDESeq2.R"],"envVars":[],"runEnv":{"name":"@platforma-open/milaboratories.runenv-r-differential-expression:main","type":"R","registry":"platforma-open","package":"platforma-open/milaboratories.runenv-r-differential-expression/main/1.0.7-{os}-{arch}.tgz","binDir":"bin"},"toolset":"renv","dependencies":{}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "description": "Block Software: Run DESeq2 with R",
6
6
  "block-software": {
@@ -0,0 +1 @@
1
+ {"registry":"platforma-open","package":"platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software/main/1.9.0.tgz"}
@@ -44,6 +44,22 @@ option_list <- list(
44
44
  opt_parser <- OptionParser(option_list = option_list)
45
45
  opt <- parse_args(opt_parser)
46
46
 
47
+ # Print passed arguments for debugging
48
+ cat("--- Script Arguments ---\n")
49
+ cat("Count matrix path:", opt$count_matrix, "\n")
50
+ cat("Metadata path:", opt$metadata, "\n")
51
+ cat("Contrast factor column:", opt$contrast_factor, "\n")
52
+ cat("Numerator:", opt$numerator, "\n")
53
+ cat("Denominator:", opt$denominator, "\n")
54
+ cat("Output file:", opt$output, "\n")
55
+ cat("Log2 Fold Change Threshold:", opt$fc_threshold, "\n")
56
+ cat("Adjusted P-value Threshold:", opt$p_threshold, "\n")
57
+ cat("Values column name:", opt$values_column, "\n")
58
+ cat("IDs column name:", opt$IDs_column, "\n")
59
+ cat("Minimum counts filter:", opt$min_counts, "\n")
60
+ cat("Sample fraction for filter:", opt$fraction_for_filter, "\n")
61
+ cat("------------------------\n\n")
62
+
47
63
  if (is.null(opt$count_matrix) || is.null(opt$metadata) || is.null(opt$contrast_factor) || is.null(opt$numerator) || is.null(opt$denominator)) {
48
64
  stop("Missing required arguments")
49
65
  }
@@ -73,7 +89,7 @@ colnames(metadata) <- make.names(colnames(metadata))
73
89
 
74
90
  # Transform long format to wide format
75
91
  count_matrix <- count_long %>%
76
- pivot_wider(names_from = Sample, values_from = values_col) %>%
92
+ pivot_wider(names_from = Sample, values_from = all_of(values_col)) %>%
77
93
  as.data.frame()
78
94
 
79
95
  # Set Id columns as row name and remove it
@@ -88,7 +104,8 @@ min_samples <- max(floor(ncol(count_matrix) * filter_fraction), 1)
88
104
  count_matrix <- count_matrix[rowSums(count_matrix >= min_counts) >= min_samples, ]
89
105
 
90
106
  # For differentialclonotype abundance we add 1 as minimum clonotype count (after filtering)
91
- count_matrix <- replace(count_matrix, count_matrix == 0, 1)
107
+ # count_matrix <- replace(count_matrix, count_matrix == 0, 1)
108
+ count_matrix <- count_matrix + 1
92
109
 
93
110
  # Prepare DESeq2 dataset
94
111
  set.seed(42)