Build branch htrnaseq/main with version main to htrnaseq on branch main (5d5edb7)
Build pipeline: vsh-ci-build-template-j6nf8
Source commit: 5d5edb7888
Source message: Runner: avoid duplicate input paths when publishing results (#76)
This commit is contained in:
22
CHANGELOG.md
22
CHANGELOG.md
@@ -1,3 +1,25 @@
|
|||||||
|
# htrnaseq v0.12.2
|
||||||
|
|
||||||
|
## Bug fixes
|
||||||
|
|
||||||
|
* Avoid duplicate input paths when publishing results (PR #76).
|
||||||
|
|
||||||
|
# htrnaseq v0.12.1
|
||||||
|
|
||||||
|
# Minor changes
|
||||||
|
|
||||||
|
* Update `parallel_map` cpu label from `lowcpu` to `highcpu` (PR 75).
|
||||||
|
|
||||||
|
# htrnaseq v0.12.0
|
||||||
|
|
||||||
|
# Minor changes
|
||||||
|
|
||||||
|
* Improve publishing speed by keeping symbolic links (PR #74).
|
||||||
|
|
||||||
|
# Bug fixes
|
||||||
|
|
||||||
|
* Avoid double slashes in the publish directory path in order to not create empty objects on S3 (PR #72).
|
||||||
|
|
||||||
# htrnaseq v0.11.0
|
# htrnaseq v0.11.0
|
||||||
|
|
||||||
## Breaking changes
|
## Breaking changes
|
||||||
|
|||||||
@@ -11,5 +11,5 @@ echo "Copying files..."
|
|||||||
IFS=";" read -ra input <<<$par_input
|
IFS=";" read -ra input <<<$par_input
|
||||||
|
|
||||||
for i in "${input[@]}"; do
|
for i in "${input[@]}"; do
|
||||||
cp -rL "$i" "$par_output/"
|
cp -a --keep-directory-symlink "$i" "$par_output/"
|
||||||
done
|
done
|
||||||
@@ -7,87 +7,60 @@ echo "Publishing results to multiple output directories"
|
|||||||
# Create output directories for multiple files
|
# Create output directories for multiple files
|
||||||
echo "Creating output directories..."
|
echo "Creating output directories..."
|
||||||
|
|
||||||
path_pars=(
|
declare -A path_pars_dirs=(
|
||||||
par_star_output_dir
|
["par_star_output_dir"]="par_star_output"
|
||||||
par_nrReadsNrGenesPerChrom_dir
|
["par_nrReadsNrGenesPerChrom_dir"]="par_nrReadsNrGenesPerChrom"
|
||||||
par_star_qc_metrics_dir
|
["par_star_qc_metrics_dir"]="par_star_qc_metrics"
|
||||||
par_eset_dir
|
["par_eset_dir"]="par_eset"
|
||||||
par_f_data_dir
|
["par_f_data_dir"]="par_f_data"
|
||||||
par_p_data_dir
|
["par_p_data_dir"]="par_p_data"
|
||||||
par_html_report_output
|
|
||||||
par_run_params_output
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for par in ${path_pars[@]}; do
|
declare -A path_pars_files=(
|
||||||
|
["par_html_report_output"]="par_html_report"
|
||||||
|
["par_run_params_output"]="par_run_params"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Canonicalizing output paths."
|
||||||
|
all_path_args=( "${!path_pars_files[@]}" "${!path_pars_dirs[@]}" )
|
||||||
|
for par in ${all_path_args[@]}; do
|
||||||
curr_val="${!par}"
|
curr_val="${!par}"
|
||||||
|
printf "\t%s\n" "Canonicalizing path '$curr_val'"
|
||||||
new_value=$(realpath --canonicalize-missing "$curr_val")
|
new_value=$(realpath --canonicalize-missing "$curr_val")
|
||||||
|
printf "\t%s\n" "New output path for '$par': '$new_value'"
|
||||||
declare -g "$par=$new_value"
|
declare -g "$par=$new_value"
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p "$par_star_output_dir" && echo "$par_star_output_dir created"
|
echo "Creating output directories"
|
||||||
mkdir -p "$par_nrReadsNrGenesPerChrom_dir" && echo "$par_nrReadsNrGenesPerChrom_dir created"
|
for par in ${!path_pars_dirs[@]}; do
|
||||||
mkdir -p "$par_star_qc_metrics_dir" && echo "$par_star_qc_metrics_dir created"
|
curr_val="${!par}"
|
||||||
mkdir -p "$par_eset_dir" && echo "$par_eset_dir created"
|
mkdir -p "$curr_val" && printf "\t%s\n" "$curr_val created."
|
||||||
mkdir -p "$par_f_data_dir" && echo "$par_f_data_dir created"
|
done
|
||||||
mkdir -p "$par_p_data_dir" && echo "$par_p_data_dir created"
|
for par in ${!path_pars_files[@]}; do
|
||||||
|
curr_val="${!par}"
|
||||||
echo
|
file_dir=$(dirname "$curr_val")
|
||||||
echo "Copying STAR output files..."
|
mkdir -p "$file_dir" && printf "\t%s\n" "$file_dir created."
|
||||||
IFS=";" read -ra star_output <<<$par_star_output
|
|
||||||
for i in "${star_output[@]}"; do
|
|
||||||
echo "Copying $i to $par_star_output_dir/"
|
|
||||||
cp -rL "$i" "$par_star_output_dir/"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo "Copying output for inputs that are directories"
|
||||||
echo "Copying nrReadsNrGenesPerChrom files..."
|
for par in ${!path_pars_dirs[@]}; do
|
||||||
IFS=";" read -ra nrReadsNrGenesPerChrom <<<$par_nrReadsNrGenesPerChrom
|
printf "\t%s\n" "Copying output for '$par'"
|
||||||
for i in "${nrReadsNrGenesPerChrom[@]}"; do
|
output_val="${!par}"
|
||||||
echo "Copying $i to $par_nrReadsNrGenesPerChrom_dir/"
|
input_par_name="${path_pars_dirs[${par}]}"
|
||||||
cp -rL "$i" "$par_nrReadsNrGenesPerChrom_dir/"
|
input_val="${!input_par_name}"
|
||||||
|
IFS=";" read -ra output_files_list <<<$input_val
|
||||||
|
for i in "${output_files_list[@]}"; do
|
||||||
|
printf "\t%s\n" "Copying '$i' to '$output_val'"
|
||||||
|
cp -a --keep-directory-symlink "$i" "$output_val/"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying STAR QC metrics files..."
|
|
||||||
IFS=";" read -ra star_qc_metrics <<<$par_star_qc_metrics
|
|
||||||
for i in "${star_qc_metrics[@]}"; do
|
|
||||||
echo "Copying $i to $par_star_qc_metrics_dir/"
|
|
||||||
cp -rL "$i" "$par_star_qc_metrics_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying eset files..."
|
|
||||||
IFS=";" read -ra eset <<<$par_eset
|
|
||||||
for i in "${eset[@]}"; do
|
|
||||||
echo "Copying $i to $par_eset_dir/"
|
|
||||||
cp -rL "$i" "$par_eset_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying f_data files..."
|
|
||||||
IFS=";" read -ra f_data <<<$par_f_data
|
|
||||||
for i in "${f_data[@]}"; do
|
|
||||||
echo "Copying $i to $par_f_data_dir/"
|
|
||||||
cp -rL "$i" "$par_f_data_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying p_data files..."
|
|
||||||
IFS=";" read -ra p_data <<<$par_p_data
|
|
||||||
for i in "${p_data[@]}"; do
|
|
||||||
echo "Copying $i to $par_p_data_dir/"
|
|
||||||
cp -rL "$i" "$par_p_data_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying single files directly..."
|
echo "Copying single files directly..."
|
||||||
mkdir -p $(dirname "$par_html_report_output")
|
for par in ${!path_pars_files[@]}; do
|
||||||
echo "Copying $par_html_report to $par_html_report_output"
|
output_val="${!par}"
|
||||||
cp -L "$par_html_report" "$par_html_report_output"
|
input_par_name="${path_pars_files[${par}]}"
|
||||||
|
input_val="${!input_par_name}"
|
||||||
|
cp -a --keep-directory-symlink "$input_val" "$output_val"
|
||||||
|
done
|
||||||
|
|
||||||
echo "Copying $par_run_params to $par_run_params_output"
|
|
||||||
mkdir -p $(dirname "$par_run_params_output")
|
|
||||||
cp -L "$par_run_params" "$par_run_params_output"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Publishing completed successfully!"
|
echo "Publishing completed successfully!"
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ workflow run_wf {
|
|||||||
return [id, new_state]
|
return [id, new_state]
|
||||||
}
|
}
|
||||||
| parallel_map.run(
|
| parallel_map.run(
|
||||||
directives: ["label": ["highmem", "lowcpu"]],
|
directives: ["label": ["highmem", "highcpu"]],
|
||||||
fromState: {id, state ->
|
fromState: {id, state ->
|
||||||
[
|
[
|
||||||
"input_r1": state.input_r1,
|
"input_r1": state.input_r1,
|
||||||
|
|||||||
@@ -3,6 +3,16 @@ def date = new Date().format('yyyyMMdd_hhmmss')
|
|||||||
def viash_config = java.nio.file.Paths.get("${moduleDir}/_viash.yaml")
|
def viash_config = java.nio.file.Paths.get("${moduleDir}/_viash.yaml")
|
||||||
def version = get_version(viash_config)
|
def version = get_version(viash_config)
|
||||||
|
|
||||||
|
if (!params.containsKey("results_publish_dir") || !params.containsKey("fastq_publish_dir")) {
|
||||||
|
error "Please set both 'results_publish_dir' and 'fastq_publish_dir'."
|
||||||
|
}
|
||||||
|
|
||||||
|
// S3 paths containing double slashes might cause issues with empty objects being created
|
||||||
|
// Remove trailing slashes from the publish dir. The params map is immutable, so create a copy
|
||||||
|
def regex_trailing_slashes = ~/\/+$/
|
||||||
|
def results_publish_dir = params.results_publish_dir - regex_trailing_slashes
|
||||||
|
def fastq_publish_dir = params.fastq_publish_dir - regex_trailing_slashes
|
||||||
|
|
||||||
workflow run_wf {
|
workflow run_wf {
|
||||||
take:
|
take:
|
||||||
raw_ch
|
raw_ch
|
||||||
@@ -156,7 +166,7 @@ workflow run_wf {
|
|||||||
assert star_sample_dir.name == state.sample_id: "Unexpected state: the parent directory of STAR output \
|
assert star_sample_dir.name == state.sample_id: "Unexpected state: the parent directory of STAR output \
|
||||||
path '${it}' should match with the sample ID ${sample_id}"
|
path '${it}' should match with the sample ID ${sample_id}"
|
||||||
star_sample_dir
|
star_sample_dir
|
||||||
}
|
}.unique()
|
||||||
}
|
}
|
||||||
def new_state = [
|
def new_state = [
|
||||||
"star_output": star_output_samples,
|
"star_output": star_output_samples,
|
||||||
@@ -205,7 +215,7 @@ workflow run_wf {
|
|||||||
fromState: { id, state ->
|
fromState: { id, state ->
|
||||||
def prefix = "${state.project_id}/${state.experiment_id}/data_processed/${date}_htrnaseq_${version}"
|
def prefix = "${state.project_id}/${state.experiment_id}/data_processed/${date}_htrnaseq_${version}"
|
||||||
|
|
||||||
println("Publising results to ${params.results_publish_dir}/${prefix}")
|
println("Publising results to ${results_publish_dir}/${prefix}")
|
||||||
|
|
||||||
[
|
[
|
||||||
// Inputs
|
// Inputs
|
||||||
@@ -231,7 +241,7 @@ workflow run_wf {
|
|||||||
toState: { id, result, state -> result + ["run_params": state.run_params] },
|
toState: { id, result, state -> result + ["run_params": state.run_params] },
|
||||||
directives: [
|
directives: [
|
||||||
publishDir: [
|
publishDir: [
|
||||||
path: "${params.results_publish_dir}",
|
path: results_publish_dir,
|
||||||
overwrite: false,
|
overwrite: false,
|
||||||
mode: "copy"
|
mode: "copy"
|
||||||
]
|
]
|
||||||
@@ -278,7 +288,7 @@ workflow run_wf {
|
|||||||
toState: { id, result, state -> state },
|
toState: { id, result, state -> state },
|
||||||
directives: [
|
directives: [
|
||||||
publishDir: [
|
publishDir: [
|
||||||
path: "${params.fastq_publish_dir}",
|
path: fastq_publish_dir,
|
||||||
overwrite: false,
|
overwrite: false,
|
||||||
mode: "copy"
|
mode: "copy"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ workflow test_wf {
|
|||||||
assert output_state.eset_dir.listFiles().collect{it.name}.toSet() == ["VH02001612.rds", "VH02001614.rds"].toSet()
|
assert output_state.eset_dir.listFiles().collect{it.name}.toSet() == ["VH02001612.rds", "VH02001614.rds"].toSet()
|
||||||
assert output_state.star_output_dir.listFiles().collect{it.name}.toSet() == ["VH02001612", "VH02001614"].toSet()
|
assert output_state.star_output_dir.listFiles().collect{it.name}.toSet() == ["VH02001612", "VH02001614"].toSet()
|
||||||
["VH02001612", "VH02001614"].each{it ->
|
["VH02001612", "VH02001614"].each{it ->
|
||||||
assert output_state.star_output_dir.resolve(it).listFiles().collect{it.name}.toSet() == ["ACACCGAATT", "GGCTATTGAT"].toSet()
|
assert output_state.star_output_dir.resolve(it).toRealPath().listFiles().collect{it.name}.toSet() == ["ACACCGAATT", "GGCTATTGAT"].toSet()
|
||||||
}
|
}
|
||||||
assert output_state.star_qc_metrics_dir.listFiles().collect{it.name}.toSet() == ["VH02001612.txt", "VH02001614.txt"].toSet()
|
assert output_state.star_qc_metrics_dir.listFiles().collect{it.name}.toSet() == ["VH02001612.txt", "VH02001614.txt"].toSet()
|
||||||
assert output_state.nrReadsNrGenesPerChrom_dir.listFiles().collect{it.name}.toSet() == ["VH02001612.txt", "VH02001614.txt"].toSet()
|
assert output_state.nrReadsNrGenesPerChrom_dir.listFiles().collect{it.name}.toSet() == ["VH02001612.txt", "VH02001614.txt"].toSet()
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ build_info:
|
|||||||
output: "target/executable/eset/create_eset"
|
output: "target/executable/eset/create_eset"
|
||||||
executable: "target/executable/eset/create_eset/create_eset"
|
executable: "target/executable/eset/create_eset/create_eset"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -456,9 +456,9 @@ RUN Rscript -e 'options(warn = 2); if (!requireNamespace("remotes", quietly = TR
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component eset create_eset"
|
LABEL org.opencontainers.image.description="Companion container for running component eset create_eset"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:11Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:56Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ build_info:
|
|||||||
output: "target/executable/eset/create_fdata"
|
output: "target/executable/eset/create_fdata"
|
||||||
executable: "target/executable/eset/create_fdata/create_fdata"
|
executable: "target/executable/eset/create_fdata/create_fdata"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -458,9 +458,9 @@ RUN pip install --upgrade pip && \
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component eset create_fdata"
|
LABEL org.opencontainers.image.description="Companion container for running component eset create_fdata"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:12Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:54Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ build_info:
|
|||||||
output: "target/executable/eset/create_pdata"
|
output: "target/executable/eset/create_pdata"
|
||||||
executable: "target/executable/eset/create_pdata/create_pdata"
|
executable: "target/executable/eset/create_pdata/create_pdata"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -458,9 +458,9 @@ RUN pip install --upgrade pip && \
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component eset create_pdata"
|
LABEL org.opencontainers.image.description="Companion container for running component eset create_pdata"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:11Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:54Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ build_info:
|
|||||||
output: "target/executable/integration_test_components/htrnaseq/check_eset"
|
output: "target/executable/integration_test_components/htrnaseq/check_eset"
|
||||||
executable: "target/executable/integration_test_components/htrnaseq/check_eset/check_eset"
|
executable: "target/executable/integration_test_components/htrnaseq/check_eset/check_eset"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -455,9 +455,9 @@ RUN Rscript -e 'options(warn = 2); if (!requireNamespace("remotes", quietly = TR
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont"
|
LABEL org.opencontainers.image.authors="Dries Schaumont"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component integration_test_components/htrnaseq check_eset"
|
LABEL org.opencontainers.image.description="Companion container for running component integration_test_components/htrnaseq check_eset"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:11Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:56Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ build_info:
|
|||||||
output: "target/executable/integration_test_components/well_demultiplexing/check_cutadapt_output"
|
output: "target/executable/integration_test_components/well_demultiplexing/check_cutadapt_output"
|
||||||
executable: "target/executable/integration_test_components/well_demultiplexing/check_cutadapt_output/check_cutadapt_output"
|
executable: "target/executable/integration_test_components/well_demultiplexing/check_cutadapt_output/check_cutadapt_output"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -457,9 +457,9 @@ RUN pip install --upgrade pip && \
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont"
|
LABEL org.opencontainers.image.authors="Dries Schaumont"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component integration_test_components/well_demultiplexing check_cutadapt_output"
|
LABEL org.opencontainers.image.description="Companion container for running component integration_test_components/well_demultiplexing check_cutadapt_output"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:11Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:55Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ build_info:
|
|||||||
output: "target/executable/io/publish_fastqs"
|
output: "target/executable/io/publish_fastqs"
|
||||||
executable: "target/executable/io/publish_fastqs/publish_fastqs"
|
executable: "target/executable/io/publish_fastqs/publish_fastqs"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -450,9 +450,9 @@ RUN apt-get update && \
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component io publish_fastqs"
|
LABEL org.opencontainers.image.description="Companion container for running component io publish_fastqs"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:11Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:56Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
@@ -1093,7 +1093,7 @@ echo "Copying files..."
|
|||||||
IFS=";" read -ra input <<<\$par_input
|
IFS=";" read -ra input <<<\$par_input
|
||||||
|
|
||||||
for i in "\${input[@]}"; do
|
for i in "\${input[@]}"; do
|
||||||
cp -rL "\$i" "\$par_output/"
|
cp -a --keep-directory-symlink "\$i" "\$par_output/"
|
||||||
done
|
done
|
||||||
VIASHMAIN
|
VIASHMAIN
|
||||||
bash "\$tempscript" &
|
bash "\$tempscript" &
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ build_info:
|
|||||||
output: "target/executable/io/publish_results"
|
output: "target/executable/io/publish_results"
|
||||||
executable: "target/executable/io/publish_results/publish_results"
|
executable: "target/executable/io/publish_results/publish_results"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -450,9 +450,9 @@ RUN apt-get update && \
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component io publish_results"
|
LABEL org.opencontainers.image.description="Companion container for running component io publish_results"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:12Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:56Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
@@ -1569,89 +1569,62 @@ echo "Publishing results to multiple output directories"
|
|||||||
# Create output directories for multiple files
|
# Create output directories for multiple files
|
||||||
echo "Creating output directories..."
|
echo "Creating output directories..."
|
||||||
|
|
||||||
path_pars=(
|
declare -A path_pars_dirs=(
|
||||||
par_star_output_dir
|
["par_star_output_dir"]="par_star_output"
|
||||||
par_nrReadsNrGenesPerChrom_dir
|
["par_nrReadsNrGenesPerChrom_dir"]="par_nrReadsNrGenesPerChrom"
|
||||||
par_star_qc_metrics_dir
|
["par_star_qc_metrics_dir"]="par_star_qc_metrics"
|
||||||
par_eset_dir
|
["par_eset_dir"]="par_eset"
|
||||||
par_f_data_dir
|
["par_f_data_dir"]="par_f_data"
|
||||||
par_p_data_dir
|
["par_p_data_dir"]="par_p_data"
|
||||||
par_html_report_output
|
|
||||||
par_run_params_output
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for par in \${path_pars[@]}; do
|
declare -A path_pars_files=(
|
||||||
|
["par_html_report_output"]="par_html_report"
|
||||||
|
["par_run_params_output"]="par_run_params"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Canonicalizing output paths."
|
||||||
|
all_path_args=( "\${!path_pars_files[@]}" "\${!path_pars_dirs[@]}" )
|
||||||
|
for par in \${all_path_args[@]}; do
|
||||||
curr_val="\${!par}"
|
curr_val="\${!par}"
|
||||||
|
printf "\\t%s\\n" "Canonicalizing path '\$curr_val'"
|
||||||
new_value=\$(realpath --canonicalize-missing "\$curr_val")
|
new_value=\$(realpath --canonicalize-missing "\$curr_val")
|
||||||
|
printf "\\t%s\\n" "New output path for '\$par': '\$new_value'"
|
||||||
declare -g "\$par=\$new_value"
|
declare -g "\$par=\$new_value"
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p "\$par_star_output_dir" && echo "\$par_star_output_dir created"
|
echo "Creating output directories"
|
||||||
mkdir -p "\$par_nrReadsNrGenesPerChrom_dir" && echo "\$par_nrReadsNrGenesPerChrom_dir created"
|
for par in \${!path_pars_dirs[@]}; do
|
||||||
mkdir -p "\$par_star_qc_metrics_dir" && echo "\$par_star_qc_metrics_dir created"
|
curr_val="\${!par}"
|
||||||
mkdir -p "\$par_eset_dir" && echo "\$par_eset_dir created"
|
mkdir -p "\$curr_val" && printf "\\t%s\\n" "\$curr_val created."
|
||||||
mkdir -p "\$par_f_data_dir" && echo "\$par_f_data_dir created"
|
done
|
||||||
mkdir -p "\$par_p_data_dir" && echo "\$par_p_data_dir created"
|
for par in \${!path_pars_files[@]}; do
|
||||||
|
curr_val="\${!par}"
|
||||||
echo
|
file_dir=\$(dirname "\$curr_val")
|
||||||
echo "Copying STAR output files..."
|
mkdir -p "\$file_dir" && printf "\\t%s\\n" "\$file_dir created."
|
||||||
IFS=";" read -ra star_output <<<\$par_star_output
|
|
||||||
for i in "\${star_output[@]}"; do
|
|
||||||
echo "Copying \$i to \$par_star_output_dir/"
|
|
||||||
cp -rL "\$i" "\$par_star_output_dir/"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo "Copying output for inputs that are directories"
|
||||||
echo "Copying nrReadsNrGenesPerChrom files..."
|
for par in \${!path_pars_dirs[@]}; do
|
||||||
IFS=";" read -ra nrReadsNrGenesPerChrom <<<\$par_nrReadsNrGenesPerChrom
|
printf "\\t%s\\n" "Copying output for '\$par'"
|
||||||
for i in "\${nrReadsNrGenesPerChrom[@]}"; do
|
output_val="\${!par}"
|
||||||
echo "Copying \$i to \$par_nrReadsNrGenesPerChrom_dir/"
|
input_par_name="\${path_pars_dirs[\${par}]}"
|
||||||
cp -rL "\$i" "\$par_nrReadsNrGenesPerChrom_dir/"
|
input_val="\${!input_par_name}"
|
||||||
|
IFS=";" read -ra output_files_list <<<\$input_val
|
||||||
|
for i in "\${output_files_list[@]}"; do
|
||||||
|
printf "\\t%s\\n" "Copying '\$i' to '\$output_val'"
|
||||||
|
cp -a --keep-directory-symlink "\$i" "\$output_val/"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying STAR QC metrics files..."
|
|
||||||
IFS=";" read -ra star_qc_metrics <<<\$par_star_qc_metrics
|
|
||||||
for i in "\${star_qc_metrics[@]}"; do
|
|
||||||
echo "Copying \$i to \$par_star_qc_metrics_dir/"
|
|
||||||
cp -rL "\$i" "\$par_star_qc_metrics_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying eset files..."
|
|
||||||
IFS=";" read -ra eset <<<\$par_eset
|
|
||||||
for i in "\${eset[@]}"; do
|
|
||||||
echo "Copying \$i to \$par_eset_dir/"
|
|
||||||
cp -rL "\$i" "\$par_eset_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying f_data files..."
|
|
||||||
IFS=";" read -ra f_data <<<\$par_f_data
|
|
||||||
for i in "\${f_data[@]}"; do
|
|
||||||
echo "Copying \$i to \$par_f_data_dir/"
|
|
||||||
cp -rL "\$i" "\$par_f_data_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying p_data files..."
|
|
||||||
IFS=";" read -ra p_data <<<\$par_p_data
|
|
||||||
for i in "\${p_data[@]}"; do
|
|
||||||
echo "Copying \$i to \$par_p_data_dir/"
|
|
||||||
cp -rL "\$i" "\$par_p_data_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying single files directly..."
|
echo "Copying single files directly..."
|
||||||
mkdir -p \$(dirname "\$par_html_report_output")
|
for par in \${!path_pars_files[@]}; do
|
||||||
echo "Copying \$par_html_report to \$par_html_report_output"
|
output_val="\${!par}"
|
||||||
cp -L "\$par_html_report" "\$par_html_report_output"
|
input_par_name="\${path_pars_files[\${par}]}"
|
||||||
|
input_val="\${!input_par_name}"
|
||||||
|
cp -a --keep-directory-symlink "\$input_val" "\$output_val"
|
||||||
|
done
|
||||||
|
|
||||||
echo "Copying \$par_run_params to \$par_run_params_output"
|
|
||||||
mkdir -p \$(dirname "\$par_run_params_output")
|
|
||||||
cp -L "\$par_run_params" "\$par_run_params_output"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Publishing completed successfully!"
|
echo "Publishing completed successfully!"
|
||||||
VIASHMAIN
|
VIASHMAIN
|
||||||
bash "\$tempscript" &
|
bash "\$tempscript" &
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ build_info:
|
|||||||
output: "target/executable/parallel_map"
|
output: "target/executable/parallel_map"
|
||||||
executable: "target/executable/parallel_map/parallel_map"
|
executable: "target/executable/parallel_map/parallel_map"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -461,9 +461,9 @@ ENV STAR_BINARY=STAR
|
|||||||
COPY STAR /usr/local/bin/$STAR_BINARY
|
COPY STAR /usr/local/bin/$STAR_BINARY
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont, Toni Verbeiren"
|
LABEL org.opencontainers.image.authors="Dries Schaumont, Toni Verbeiren"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component parallel_map"
|
LABEL org.opencontainers.image.description="Companion container for running component parallel_map"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:11Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:55Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ build_info:
|
|||||||
output: "target/executable/report/create_report"
|
output: "target/executable/report/create_report"
|
||||||
executable: "target/executable/report/create_report/create_report"
|
executable: "target/executable/report/create_report/create_report"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -465,9 +465,9 @@ RUN Rscript -e 'options(warn = 2); if (!requireNamespace("remotes", quietly = TR
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component report create_report"
|
LABEL org.opencontainers.image.description="Companion container for running component report create_report"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:10Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:55Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ build_info:
|
|||||||
output: "target/executable/stats/combine_star_logs"
|
output: "target/executable/stats/combine_star_logs"
|
||||||
executable: "target/executable/stats/combine_star_logs/combine_star_logs"
|
executable: "target/executable/stats/combine_star_logs/combine_star_logs"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -457,9 +457,9 @@ RUN pip install --upgrade pip && \
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont"
|
LABEL org.opencontainers.image.authors="Dries Schaumont"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component stats combine_star_logs"
|
LABEL org.opencontainers.image.description="Companion container for running component stats combine_star_logs"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:12Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:55Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ build_info:
|
|||||||
output: "target/executable/stats/generate_pool_statistics"
|
output: "target/executable/stats/generate_pool_statistics"
|
||||||
executable: "target/executable/stats/generate_pool_statistics/generate_pool_statistics"
|
executable: "target/executable/stats/generate_pool_statistics/generate_pool_statistics"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -458,9 +458,9 @@ RUN pip install --upgrade pip && \
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component stats generate_pool_statistics"
|
LABEL org.opencontainers.image.description="Companion container for running component stats generate_pool_statistics"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:12Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:55Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ build_info:
|
|||||||
output: "target/executable/stats/generate_well_statistics"
|
output: "target/executable/stats/generate_well_statistics"
|
||||||
executable: "target/executable/stats/generate_well_statistics/generate_well_statistics"
|
executable: "target/executable/stats/generate_well_statistics/generate_well_statistics"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -458,9 +458,9 @@ RUN pip install --upgrade pip && \
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
LABEL org.opencontainers.image.authors="Dries Schaumont, Marijke Van Moerbeke"
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component stats generate_well_statistics"
|
LABEL org.opencontainers.image.description="Companion container for running component stats generate_well_statistics"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:10Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:55Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ build_info:
|
|||||||
output: "target/executable/utils/save_params"
|
output: "target/executable/utils/save_params"
|
||||||
executable: "target/executable/utils/save_params/save_params"
|
executable: "target/executable/utils/save_params/save_params"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -453,9 +453,9 @@ RUN pip install --upgrade pip && \
|
|||||||
pip install --upgrade --no-cache-dir "pyyaml"
|
pip install --upgrade --no-cache-dir "pyyaml"
|
||||||
|
|
||||||
LABEL org.opencontainers.image.description="Companion container for running component utils save_params"
|
LABEL org.opencontainers.image.description="Companion container for running component utils save_params"
|
||||||
LABEL org.opencontainers.image.created="2025-09-10T19:03:11Z"
|
LABEL org.opencontainers.image.created="2025-09-23T11:13:54Z"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
|
||||||
LABEL org.opencontainers.image.revision="03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
LABEL org.opencontainers.image.revision="5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
LABEL org.opencontainers.image.version="main"
|
LABEL org.opencontainers.image.version="main"
|
||||||
|
|
||||||
VIASHDOCKER
|
VIASHDOCKER
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ build_info:
|
|||||||
output: "target/nextflow/eset/create_eset"
|
output: "target/nextflow/eset/create_eset"
|
||||||
executable: "target/nextflow/eset/create_eset/main.nf"
|
executable: "target/nextflow/eset/create_eset/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3309,7 +3309,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/eset/create_eset",
|
"output" : "target/nextflow/eset/create_eset",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ build_info:
|
|||||||
output: "target/nextflow/eset/create_fdata"
|
output: "target/nextflow/eset/create_fdata"
|
||||||
executable: "target/nextflow/eset/create_fdata/main.nf"
|
executable: "target/nextflow/eset/create_fdata/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3279,7 +3279,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/eset/create_fdata",
|
"output" : "target/nextflow/eset/create_fdata",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ build_info:
|
|||||||
output: "target/nextflow/eset/create_pdata"
|
output: "target/nextflow/eset/create_pdata"
|
||||||
executable: "target/nextflow/eset/create_pdata/main.nf"
|
executable: "target/nextflow/eset/create_pdata/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3293,7 +3293,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/eset/create_pdata",
|
"output" : "target/nextflow/eset/create_pdata",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ build_info:
|
|||||||
output: "target/nextflow/integration_test_components/htrnaseq/check_eset"
|
output: "target/nextflow/integration_test_components/htrnaseq/check_eset"
|
||||||
executable: "target/nextflow/integration_test_components/htrnaseq/check_eset/main.nf"
|
executable: "target/nextflow/integration_test_components/htrnaseq/check_eset/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3233,7 +3233,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/integration_test_components/htrnaseq/check_eset",
|
"output" : "target/nextflow/integration_test_components/htrnaseq/check_eset",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ build_info:
|
|||||||
output: "target/nextflow/integration_test_components/well_demultiplexing/check_cutadapt_output"
|
output: "target/nextflow/integration_test_components/well_demultiplexing/check_cutadapt_output"
|
||||||
executable: "target/nextflow/integration_test_components/well_demultiplexing/check_cutadapt_output/main.nf"
|
executable: "target/nextflow/integration_test_components/well_demultiplexing/check_cutadapt_output/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3244,7 +3244,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/integration_test_components/well_demultiplexing/check_cutadapt_output",
|
"output" : "target/nextflow/integration_test_components/well_demultiplexing/check_cutadapt_output",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ build_info:
|
|||||||
output: "target/nextflow/io/publish_fastqs"
|
output: "target/nextflow/io/publish_fastqs"
|
||||||
executable: "target/nextflow/io/publish_fastqs/main.nf"
|
executable: "target/nextflow/io/publish_fastqs/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3207,7 +3207,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/io/publish_fastqs",
|
"output" : "target/nextflow/io/publish_fastqs",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
@@ -3298,7 +3298,7 @@ echo "Copying files..."
|
|||||||
IFS=";" read -ra input <<<\\$par_input
|
IFS=";" read -ra input <<<\\$par_input
|
||||||
|
|
||||||
for i in "\\${input[@]}"; do
|
for i in "\\${input[@]}"; do
|
||||||
cp -rL "\\$i" "\\$par_output/"
|
cp -a --keep-directory-symlink "\\$i" "\\$par_output/"
|
||||||
done
|
done
|
||||||
VIASHMAIN
|
VIASHMAIN
|
||||||
bash "$tempscript"
|
bash "$tempscript"
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ build_info:
|
|||||||
output: "target/nextflow/io/publish_results"
|
output: "target/nextflow/io/publish_results"
|
||||||
executable: "target/nextflow/io/publish_results/main.nf"
|
executable: "target/nextflow/io/publish_results/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3369,7 +3369,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/io/publish_results",
|
"output" : "target/nextflow/io/publish_results",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
@@ -3470,89 +3470,62 @@ echo "Publishing results to multiple output directories"
|
|||||||
# Create output directories for multiple files
|
# Create output directories for multiple files
|
||||||
echo "Creating output directories..."
|
echo "Creating output directories..."
|
||||||
|
|
||||||
path_pars=(
|
declare -A path_pars_dirs=(
|
||||||
par_star_output_dir
|
["par_star_output_dir"]="par_star_output"
|
||||||
par_nrReadsNrGenesPerChrom_dir
|
["par_nrReadsNrGenesPerChrom_dir"]="par_nrReadsNrGenesPerChrom"
|
||||||
par_star_qc_metrics_dir
|
["par_star_qc_metrics_dir"]="par_star_qc_metrics"
|
||||||
par_eset_dir
|
["par_eset_dir"]="par_eset"
|
||||||
par_f_data_dir
|
["par_f_data_dir"]="par_f_data"
|
||||||
par_p_data_dir
|
["par_p_data_dir"]="par_p_data"
|
||||||
par_html_report_output
|
|
||||||
par_run_params_output
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for par in \\${path_pars[@]}; do
|
declare -A path_pars_files=(
|
||||||
|
["par_html_report_output"]="par_html_report"
|
||||||
|
["par_run_params_output"]="par_run_params"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Canonicalizing output paths."
|
||||||
|
all_path_args=( "\\${!path_pars_files[@]}" "\\${!path_pars_dirs[@]}" )
|
||||||
|
for par in \\${all_path_args[@]}; do
|
||||||
curr_val="\\${!par}"
|
curr_val="\\${!par}"
|
||||||
|
printf "\\\\t%s\\\\n" "Canonicalizing path '\\$curr_val'"
|
||||||
new_value=\\$(realpath --canonicalize-missing "\\$curr_val")
|
new_value=\\$(realpath --canonicalize-missing "\\$curr_val")
|
||||||
|
printf "\\\\t%s\\\\n" "New output path for '\\$par': '\\$new_value'"
|
||||||
declare -g "\\$par=\\$new_value"
|
declare -g "\\$par=\\$new_value"
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p "\\$par_star_output_dir" && echo "\\$par_star_output_dir created"
|
echo "Creating output directories"
|
||||||
mkdir -p "\\$par_nrReadsNrGenesPerChrom_dir" && echo "\\$par_nrReadsNrGenesPerChrom_dir created"
|
for par in \\${!path_pars_dirs[@]}; do
|
||||||
mkdir -p "\\$par_star_qc_metrics_dir" && echo "\\$par_star_qc_metrics_dir created"
|
curr_val="\\${!par}"
|
||||||
mkdir -p "\\$par_eset_dir" && echo "\\$par_eset_dir created"
|
mkdir -p "\\$curr_val" && printf "\\\\t%s\\\\n" "\\$curr_val created."
|
||||||
mkdir -p "\\$par_f_data_dir" && echo "\\$par_f_data_dir created"
|
done
|
||||||
mkdir -p "\\$par_p_data_dir" && echo "\\$par_p_data_dir created"
|
for par in \\${!path_pars_files[@]}; do
|
||||||
|
curr_val="\\${!par}"
|
||||||
echo
|
file_dir=\\$(dirname "\\$curr_val")
|
||||||
echo "Copying STAR output files..."
|
mkdir -p "\\$file_dir" && printf "\\\\t%s\\\\n" "\\$file_dir created."
|
||||||
IFS=";" read -ra star_output <<<\\$par_star_output
|
|
||||||
for i in "\\${star_output[@]}"; do
|
|
||||||
echo "Copying \\$i to \\$par_star_output_dir/"
|
|
||||||
cp -rL "\\$i" "\\$par_star_output_dir/"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo "Copying output for inputs that are directories"
|
||||||
echo "Copying nrReadsNrGenesPerChrom files..."
|
for par in \\${!path_pars_dirs[@]}; do
|
||||||
IFS=";" read -ra nrReadsNrGenesPerChrom <<<\\$par_nrReadsNrGenesPerChrom
|
printf "\\\\t%s\\\\n" "Copying output for '\\$par'"
|
||||||
for i in "\\${nrReadsNrGenesPerChrom[@]}"; do
|
output_val="\\${!par}"
|
||||||
echo "Copying \\$i to \\$par_nrReadsNrGenesPerChrom_dir/"
|
input_par_name="\\${path_pars_dirs[\\${par}]}"
|
||||||
cp -rL "\\$i" "\\$par_nrReadsNrGenesPerChrom_dir/"
|
input_val="\\${!input_par_name}"
|
||||||
|
IFS=";" read -ra output_files_list <<<\\$input_val
|
||||||
|
for i in "\\${output_files_list[@]}"; do
|
||||||
|
printf "\\\\t%s\\\\n" "Copying '\\$i' to '\\$output_val'"
|
||||||
|
cp -a --keep-directory-symlink "\\$i" "\\$output_val/"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying STAR QC metrics files..."
|
|
||||||
IFS=";" read -ra star_qc_metrics <<<\\$par_star_qc_metrics
|
|
||||||
for i in "\\${star_qc_metrics[@]}"; do
|
|
||||||
echo "Copying \\$i to \\$par_star_qc_metrics_dir/"
|
|
||||||
cp -rL "\\$i" "\\$par_star_qc_metrics_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying eset files..."
|
|
||||||
IFS=";" read -ra eset <<<\\$par_eset
|
|
||||||
for i in "\\${eset[@]}"; do
|
|
||||||
echo "Copying \\$i to \\$par_eset_dir/"
|
|
||||||
cp -rL "\\$i" "\\$par_eset_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying f_data files..."
|
|
||||||
IFS=";" read -ra f_data <<<\\$par_f_data
|
|
||||||
for i in "\\${f_data[@]}"; do
|
|
||||||
echo "Copying \\$i to \\$par_f_data_dir/"
|
|
||||||
cp -rL "\\$i" "\\$par_f_data_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying p_data files..."
|
|
||||||
IFS=";" read -ra p_data <<<\\$par_p_data
|
|
||||||
for i in "\\${p_data[@]}"; do
|
|
||||||
echo "Copying \\$i to \\$par_p_data_dir/"
|
|
||||||
cp -rL "\\$i" "\\$par_p_data_dir/"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Copying single files directly..."
|
echo "Copying single files directly..."
|
||||||
mkdir -p \\$(dirname "\\$par_html_report_output")
|
for par in \\${!path_pars_files[@]}; do
|
||||||
echo "Copying \\$par_html_report to \\$par_html_report_output"
|
output_val="\\${!par}"
|
||||||
cp -L "\\$par_html_report" "\\$par_html_report_output"
|
input_par_name="\\${path_pars_files[\\${par}]}"
|
||||||
|
input_val="\\${!input_par_name}"
|
||||||
|
cp -a --keep-directory-symlink "\\$input_val" "\\$output_val"
|
||||||
|
done
|
||||||
|
|
||||||
echo "Copying \\$par_run_params to \\$par_run_params_output"
|
|
||||||
mkdir -p \\$(dirname "\\$par_run_params_output")
|
|
||||||
cp -L "\\$par_run_params" "\\$par_run_params_output"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Publishing completed successfully!"
|
echo "Publishing completed successfully!"
|
||||||
VIASHMAIN
|
VIASHMAIN
|
||||||
bash "$tempscript"
|
bash "$tempscript"
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ build_info:
|
|||||||
output: "target/nextflow/parallel_map"
|
output: "target/nextflow/parallel_map"
|
||||||
executable: "target/nextflow/parallel_map/main.nf"
|
executable: "target/nextflow/parallel_map/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3379,7 +3379,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/parallel_map",
|
"output" : "target/nextflow/parallel_map",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ build_info:
|
|||||||
output: "target/nextflow/report/create_report"
|
output: "target/nextflow/report/create_report"
|
||||||
executable: "target/nextflow/report/create_report/main.nf"
|
executable: "target/nextflow/report/create_report/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3323,7 +3323,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/report/create_report",
|
"output" : "target/nextflow/report/create_report",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ build_info:
|
|||||||
output: "target/nextflow/stats/combine_star_logs"
|
output: "target/nextflow/stats/combine_star_logs"
|
||||||
executable: "target/nextflow/stats/combine_star_logs/main.nf"
|
executable: "target/nextflow/stats/combine_star_logs/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3295,7 +3295,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/stats/combine_star_logs",
|
"output" : "target/nextflow/stats/combine_star_logs",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ build_info:
|
|||||||
output: "target/nextflow/stats/generate_pool_statistics"
|
output: "target/nextflow/stats/generate_pool_statistics"
|
||||||
executable: "target/nextflow/stats/generate_pool_statistics/main.nf"
|
executable: "target/nextflow/stats/generate_pool_statistics/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3279,7 +3279,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/stats/generate_pool_statistics",
|
"output" : "target/nextflow/stats/generate_pool_statistics",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ build_info:
|
|||||||
output: "target/nextflow/stats/generate_well_statistics"
|
output: "target/nextflow/stats/generate_well_statistics"
|
||||||
executable: "target/nextflow/stats/generate_well_statistics/main.nf"
|
executable: "target/nextflow/stats/generate_well_statistics/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3361,7 +3361,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/stats/generate_well_statistics",
|
"output" : "target/nextflow/stats/generate_well_statistics",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ build_info:
|
|||||||
output: "target/nextflow/utils/concatRuns"
|
output: "target/nextflow/utils/concatRuns"
|
||||||
executable: "target/nextflow/utils/concatRuns/main.nf"
|
executable: "target/nextflow/utils/concatRuns/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
dependencies:
|
dependencies:
|
||||||
- "target/dependencies/vsh/vsh/craftbox/v0.3.0/nextflow/concat_text"
|
- "target/dependencies/vsh/vsh/craftbox/v0.3.0/nextflow/concat_text"
|
||||||
|
|||||||
@@ -3229,7 +3229,7 @@ meta = [
|
|||||||
"engine" : "native|native",
|
"engine" : "native|native",
|
||||||
"output" : "target/nextflow/utils/concatRuns",
|
"output" : "target/nextflow/utils/concatRuns",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ build_info:
|
|||||||
output: "target/nextflow/utils/listInputDir"
|
output: "target/nextflow/utils/listInputDir"
|
||||||
executable: "target/nextflow/utils/listInputDir/main.nf"
|
executable: "target/nextflow/utils/listInputDir/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3236,7 +3236,7 @@ meta = [
|
|||||||
"engine" : "native|native",
|
"engine" : "native|native",
|
||||||
"output" : "target/nextflow/utils/listInputDir",
|
"output" : "target/nextflow/utils/listInputDir",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ build_info:
|
|||||||
output: "target/nextflow/utils/save_params"
|
output: "target/nextflow/utils/save_params"
|
||||||
executable: "target/nextflow/utils/save_params/main.nf"
|
executable: "target/nextflow/utils/save_params/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3223,7 +3223,7 @@ meta = [
|
|||||||
"engine" : "docker|native",
|
"engine" : "docker|native",
|
||||||
"output" : "target/nextflow/utils/save_params",
|
"output" : "target/nextflow/utils/save_params",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ build_info:
|
|||||||
output: "target/nextflow/workflows/htrnaseq"
|
output: "target/nextflow/workflows/htrnaseq"
|
||||||
executable: "target/nextflow/workflows/htrnaseq/main.nf"
|
executable: "target/nextflow/workflows/htrnaseq/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
dependencies:
|
dependencies:
|
||||||
- "target/nextflow/stats/combine_star_logs"
|
- "target/nextflow/stats/combine_star_logs"
|
||||||
|
|||||||
@@ -3484,7 +3484,7 @@ meta = [
|
|||||||
"engine" : "native|native",
|
"engine" : "native|native",
|
||||||
"output" : "target/nextflow/workflows/htrnaseq",
|
"output" : "target/nextflow/workflows/htrnaseq",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
@@ -3694,7 +3694,7 @@ workflow run_wf {
|
|||||||
return [id, new_state]
|
return [id, new_state]
|
||||||
}
|
}
|
||||||
| parallel_map.run(
|
| parallel_map.run(
|
||||||
directives: ["label": ["highmem", "lowcpu"]],
|
directives: ["label": ["highmem", "highcpu"]],
|
||||||
fromState: {id, state ->
|
fromState: {id, state ->
|
||||||
[
|
[
|
||||||
"input_r1": state.input_r1,
|
"input_r1": state.input_r1,
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ build_info:
|
|||||||
output: "target/nextflow/workflows/runner"
|
output: "target/nextflow/workflows/runner"
|
||||||
executable: "target/nextflow/workflows/runner/main.nf"
|
executable: "target/nextflow/workflows/runner/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
dependencies:
|
dependencies:
|
||||||
- "target/nextflow/utils/listInputDir"
|
- "target/nextflow/utils/listInputDir"
|
||||||
|
|||||||
@@ -3431,7 +3431,7 @@ meta = [
|
|||||||
"engine" : "native|native",
|
"engine" : "native|native",
|
||||||
"output" : "target/nextflow/workflows/runner",
|
"output" : "target/nextflow/workflows/runner",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
@@ -3491,6 +3491,16 @@ def date = new Date().format('yyyyMMdd_hhmmss')
|
|||||||
def viash_config = java.nio.file.Paths.get("${moduleDir}/_viash.yaml")
|
def viash_config = java.nio.file.Paths.get("${moduleDir}/_viash.yaml")
|
||||||
def version = get_version(viash_config)
|
def version = get_version(viash_config)
|
||||||
|
|
||||||
|
if (!params.containsKey("results_publish_dir") || !params.containsKey("fastq_publish_dir")) {
|
||||||
|
error "Please set both 'results_publish_dir' and 'fastq_publish_dir'."
|
||||||
|
}
|
||||||
|
|
||||||
|
// S3 paths containing double slashes might cause issues with empty objects being created
|
||||||
|
// Remove trailing slashes from the publish dir. The params map is immutable, so create a copy
|
||||||
|
def regex_trailing_slashes = ~/\/+$/
|
||||||
|
def results_publish_dir = params.results_publish_dir - regex_trailing_slashes
|
||||||
|
def fastq_publish_dir = params.fastq_publish_dir - regex_trailing_slashes
|
||||||
|
|
||||||
workflow run_wf {
|
workflow run_wf {
|
||||||
take:
|
take:
|
||||||
raw_ch
|
raw_ch
|
||||||
@@ -3644,7 +3654,7 @@ workflow run_wf {
|
|||||||
assert star_sample_dir.name == state.sample_id: "Unexpected state: the parent directory of STAR output \
|
assert star_sample_dir.name == state.sample_id: "Unexpected state: the parent directory of STAR output \
|
||||||
path '${it}' should match with the sample ID ${sample_id}"
|
path '${it}' should match with the sample ID ${sample_id}"
|
||||||
star_sample_dir
|
star_sample_dir
|
||||||
}
|
}.unique()
|
||||||
}
|
}
|
||||||
def new_state = [
|
def new_state = [
|
||||||
"star_output": star_output_samples,
|
"star_output": star_output_samples,
|
||||||
@@ -3693,7 +3703,7 @@ workflow run_wf {
|
|||||||
fromState: { id, state ->
|
fromState: { id, state ->
|
||||||
def prefix = "${state.project_id}/${state.experiment_id}/data_processed/${date}_htrnaseq_${version}"
|
def prefix = "${state.project_id}/${state.experiment_id}/data_processed/${date}_htrnaseq_${version}"
|
||||||
|
|
||||||
println("Publising results to ${params.results_publish_dir}/${prefix}")
|
println("Publising results to ${results_publish_dir}/${prefix}")
|
||||||
|
|
||||||
[
|
[
|
||||||
// Inputs
|
// Inputs
|
||||||
@@ -3719,7 +3729,7 @@ workflow run_wf {
|
|||||||
toState: { id, result, state -> result + ["run_params": state.run_params] },
|
toState: { id, result, state -> result + ["run_params": state.run_params] },
|
||||||
directives: [
|
directives: [
|
||||||
publishDir: [
|
publishDir: [
|
||||||
path: "${params.results_publish_dir}",
|
path: results_publish_dir,
|
||||||
overwrite: false,
|
overwrite: false,
|
||||||
mode: "copy"
|
mode: "copy"
|
||||||
]
|
]
|
||||||
@@ -3766,7 +3776,7 @@ workflow run_wf {
|
|||||||
toState: { id, result, state -> state },
|
toState: { id, result, state -> state },
|
||||||
directives: [
|
directives: [
|
||||||
publishDir: [
|
publishDir: [
|
||||||
path: "${params.fastq_publish_dir}",
|
path: fastq_publish_dir,
|
||||||
overwrite: false,
|
overwrite: false,
|
||||||
mode: "copy"
|
mode: "copy"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ build_info:
|
|||||||
output: "target/nextflow/workflows/well_demultiplex"
|
output: "target/nextflow/workflows/well_demultiplex"
|
||||||
executable: "target/nextflow/workflows/well_demultiplex/main.nf"
|
executable: "target/nextflow/workflows/well_demultiplex/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
dependencies:
|
dependencies:
|
||||||
- "target/dependencies/vsh/vsh/biobox/v0.3.1/nextflow/cutadapt"
|
- "target/dependencies/vsh/vsh/biobox/v0.3.1/nextflow/cutadapt"
|
||||||
|
|||||||
@@ -3327,7 +3327,7 @@ meta = [
|
|||||||
"engine" : "native|native",
|
"engine" : "native|native",
|
||||||
"output" : "target/nextflow/workflows/well_demultiplex",
|
"output" : "target/nextflow/workflows/well_demultiplex",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ build_info:
|
|||||||
output: "target/nextflow/workflows/well_metadata"
|
output: "target/nextflow/workflows/well_metadata"
|
||||||
executable: "target/nextflow/workflows/well_metadata/main.nf"
|
executable: "target/nextflow/workflows/well_metadata/main.nf"
|
||||||
viash_version: "0.9.4"
|
viash_version: "0.9.4"
|
||||||
git_commit: "03e7939a9b777dcc00c455ec4809fe76b3aa46da"
|
git_commit: "5d5edb788838401c29a4de50b74bb75d5bce6b98"
|
||||||
git_remote: "https://github.com/viash-hub/htrnaseq"
|
git_remote: "https://github.com/viash-hub/htrnaseq"
|
||||||
package_config:
|
package_config:
|
||||||
name: "htrnaseq"
|
name: "htrnaseq"
|
||||||
|
|||||||
@@ -3299,7 +3299,7 @@ meta = [
|
|||||||
"engine" : "native|native",
|
"engine" : "native|native",
|
||||||
"output" : "target/nextflow/workflows/well_metadata",
|
"output" : "target/nextflow/workflows/well_metadata",
|
||||||
"viash_version" : "0.9.4",
|
"viash_version" : "0.9.4",
|
||||||
"git_commit" : "03e7939a9b777dcc00c455ec4809fe76b3aa46da",
|
"git_commit" : "5d5edb788838401c29a4de50b74bb75d5bce6b98",
|
||||||
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
"git_remote" : "https://github.com/viash-hub/htrnaseq"
|
||||||
},
|
},
|
||||||
"package_config" : {
|
"package_config" : {
|
||||||
|
|||||||
Reference in New Issue
Block a user