Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Avoid hard link in the publish process #318

Merged
merged 3 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/bbknn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
mkdir testdata
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/bbknn_scenic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
mkdir testdata
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cell_annotate_filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data & dummy annotation
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data_tiny.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/decontx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/harmony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
mkdir testdata
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/mnncorrect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
mkdir testdata
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/scenic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Run scenic test
run: |
nextflow run ${GITHUB_WORKSPACE} -profile scenic,test__scenic,test__compute_resources,docker -entry scenic -ansi-log false
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/scenic_multiruns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Run scenic test
run: |
nextflow run ${GITHUB_WORKSPACE} -profile scenic_multiruns,test__scenic_multiruns,test__compute_resources,docker -entry scenic -ansi-log false
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/single_sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data_tiny.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/single_sample_decontx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/single_sample_decontx_scrublet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/single_sample_param_exploration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data_tiny.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/single_sample_scenic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data_small.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/single_sample_scenic_multiruns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data_small.tar.gz
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/single_sample_scrublet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
export NXF_VER='20.10.0'
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
echo 0 | sudo tee /proc/sys/fs/protected_hardlinks
- name: Get sample data
run: |
wget https://raw.githubusercontent.com/aertslab/SCENICprotocol/master/example/sample_data.tar.gz
Expand Down
8 changes: 2 additions & 6 deletions src/utils/processes/utils.nf
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ process SC__PUBLISH {
input:
tuple \
val(tag), \
path(f), \
path(f, stageAs: 'input_file'), \
val(stashedParams)
val(fileOutputSuffix)
val(toolName)
Expand All @@ -463,13 +463,9 @@ process SC__PUBLISH {
isParameterExplorationModeOn,
stashedParams
)
/* avoid cases where the input and output files have identical names:
Move the input file to a unique name, then create a link to
the input file */
"""
mv $f tmp
if [ ! -f ${outputFileName} ]; then
ln -L tmp "${outputFileName}"
ln -s input_file "${outputFileName}"
fi
"""
}
Expand Down