HenrikBengtsson / easycatfs

easycatfs - Easy Mounting of Slow Folders onto Local Disk
https://github.com/HenrikBengtsson/easycatfs
3 stars 0 forks source link

Alternative use pattern #11

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

Instead of:

ref=$(easycatfs mount /shared/ref)
data=$(easycatfs mount /shared/data)
some_software --reference="${ref}/hg.fa" --input="${data}/sample.fq"

some might prefer something like:

local=$(easycatfs config --root)
easycatfs mount /shared/ref /shared/data
some_software --reference="${local}/shared/ref/hg.fa" --input="${local}/shared/data/sample.fq"

because it better resembles the original version:

some_software --reference="/shared/ref/hg.fa" --input="/shared/data/sample.fq"

With three or more targets, it will also be shorter.