Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to set the output directory #33

Closed
mbhall88 opened this issue Dec 11, 2023 · 6 comments
Closed

Option to set the output directory #33

mbhall88 opened this issue Dec 11, 2023 · 6 comments

Comments

@mbhall88
Copy link

As the title suggests, it would be great to have an option to designate an output directory rather than using the current directory.

@wwood
Copy link
Owner

wwood commented Dec 13, 2023

I agree - I'll try to find the time, but PRs welcome.

@mbhall88
Copy link
Author

I went to try and work on adding this but there is a lot of assumptions throughout the code that the files will be in the current working directory. I'll leave it to you to decide how the code could be refactored to make this change easier.

@wwood wwood closed this as completed in 2e697f3 Dec 18, 2023
@wwood
Copy link
Owner

wwood commented Dec 18, 2023

Hey,

Yeh - not fun to fix. Luckily today I'm sick so needed something brainless to do. Would you mind testing it out please? There's a bunch of new unit tests but would still benefit from a sanity check from a non-sick-me human.

Thanks.

@mbhall88
Copy link
Author

Hi @wwood,

Thanks for getting around to this. Sorry to hear you're sick!

I just tested out the tip of master and the option didn't seem to work.

./bin/kingfisher get --output-directory test-out -r ERR3239713 -m ena-ftp

it created the output directory okay, but still downloaded the fastqs to the current directory.

wwood added a commit that referenced this issue Dec 18, 2023
@wwood
Copy link
Owner

wwood commented Dec 18, 2023

Ah right, forgot about ENA. Fixed now? For testing you might like to use SRR12118866 instead since it is only 20MB.

@mbhall88
Copy link
Author

That seems to have fixed my example! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants