blobtools icon indicating copy to clipboard operation
blobtools copied to clipboard

add an output options to the nodesdb tools

Open ArthurPERE opened this issue 3 years ago • 3 comments

Hello

Can you please add an option to the nodesdb tools to redirect the output nodesDB.txt in an another place ? It's for continue to use the tools even if we can't write inside the /usr directory.

Thank, Regards

ArthurPERE avatar Apr 15 '22 15:04 ArthurPERE

Hi, just chiming in that I also would like this feature. I am getting "Permission denied" when trying to create my own nodesDB file because it is being created in my cluster's software folders.

ceanothus avatar Apr 20 '22 18:04 ceanothus

Hey @ArthurPERE , take a look at issue 95 . If you do blobtools create with

--names path/to/names.dmp --nodes path/to/nodes.dmp --db same/path/as/names&nodes/nodesDB.txt

it will create nodesDB.txt in the folder with your names.dmp and nodes.dmp folder instead of wherever it's trying to write where it doesn't have permissions.

ceanothus avatar Apr 20 '22 19:04 ceanothus

Hey @ceanothus

I saw that, but it will be better if they add this feature, and it will remove some error. Because in the code if there is already the nodesDB.txt, and you give --names, --nodes and --db nodesDB.txt, you will have an error. For a pipeline, it's not impossible, but it's harder. And the fact that when you do the same command twice and the first is good the second is in error is frustrating.

Also it's not a very difficult feature to add.

Thanks, Regards

ArthurPERE avatar Apr 21 '22 14:04 ArthurPERE