Skip to content

Instantly share code, notes, and snippets.

@LukeGoodsell LukeGoodsell/storeDirTest.txt Secret
Created Aug 8, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.