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

Commit

Permalink
Merge pull request #318 from vib-singlecell-nf/bug/317-publish_hard_link
Browse files Browse the repository at this point in the history
Avoid hard link in the publish process
  • Loading branch information
cflerin authored Feb 22, 2021
2 parents ec1fb30 + 919e6c1 commit 9fd335e
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 21 deletions.
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

0 comments on commit 9fd335e

Please sign in to comment.