Skip to content

Instantly share code, notes, and snippets.

@LukeGoodsell
Created August 8, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukeGoodsell/06945acf30d35ebd6e2b82bb83e29bec to your computer and use it in GitHub Desktop.
Save LukeGoodsell/06945acf30d35ebd6e2b82bb83e29bec to your computer and use it in GitHub Desktop.
storeDir seems to copy files
ATX-MC01:2017-08-08_nf_storedir lukegoodsell$ ls -la
total 16
drwxr-xr-x 3 lukegoodsell staff 102 8 Aug 11:48 .
drwxr-xr-x 19 lukegoodsell staff 646 8 Aug 11:41 ..
-rwxr-xr-x 1 lukegoodsell staff 213 8 Aug 11:45 test.nf
ATX-MC01:2017-08-08_nf_storedir lukegoodsell$ cat test.nf
#!/usr/bin/env nextflow
process testProc {
storeDir "testProcOut"
output:
file "testProcFile.txt" into testProcFileChannel
shell:
'''
echo "hi" > testProcFile.txt
'''
}
testProcFileChannel.println()
ATX-MC01:2017-08-08_nf_storedir lukegoodsell$ ./test.nf
N E X T F L O W ~ version 0.24.4
Launching `./test.nf` [modest_nightingale] - revision: fc3dfd3627
[warm up] executor > local
[6a/afaebd] Submitted process > testProc
/Volumes/LG_01_WD3TB/tmp/2017-08-08_nf_storedir/testProcOut/testProcFile.txt
ATX-MC01:2017-08-08_nf_storedir lukegoodsell$ ./test.nf
N E X T F L O W ~ version 0.24.4
Launching `./test.nf` [sick_nightingale] - revision: fc3dfd3627
[warm up] executor > local
[skipping] Stored process > testProc
/Volumes/LG_01_WD3TB/tmp/2017-08-08_nf_storedir/testProcOut/testProcFile.txt
ATX-MC01:2017-08-08_nf_storedir lukegoodsell$ find ./ -iname testProcFile.txt | xargs realpath | sort -u | xargs gstat -c '%i %n'
11434461 /Volumes/LG_01_WD3TB/tmp/2017-08-08_nf_storedir/testProcOut/testProcFile.txt
11434459 /Volumes/LG_01_WD3TB/tmp/2017-08-08_nf_storedir/work/6a/afaebd123b34ba2bcd541190ade8d9/testProcFile.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment