@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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/tengo/software/main.sw.json +1 -1
- package/package.json +1 -1
- package/pkg-platforma-open-milaboratories.run-diff-clonotype-abundance-deseq2-r.software-main-1.9.0.tgz +0 -0
- package/src/package.sw.json +1 -0
- package/src/run_onlyDESeq2.R +19 -2
- package/pkg-platforma-open-milaboratories.run-diff-clonotype-abundance-deseq2-r.software-main-1.8.0.tgz +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -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.
|
|
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
|
[32minfo[39m: Rendering entrypoint descriptors...
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
[32minfo[39m: Building software package 'main' for platform 'linux-x64'...
|
|
9
9
|
[32minfo[39m: packing software into a package
|
|
10
10
|
[32minfo[39m: generating cross-platform package
|
|
11
|
-
[32minfo[39m: 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.
|
|
11
|
+
[32minfo[39m: 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 +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.
|
|
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
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"registry":"platforma-open","package":"platforma-open/milaboratories.run-diff-clonotype-abundance-deseq2-r.software/main/1.9.0.tgz"}
|
package/src/run_onlyDESeq2.R
CHANGED
|
@@ -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)
|