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

utility_scripts/process_vep_tsv.py: When purely giving output filename, an error is thrown instead of file being written in current directory. #25

Open
svandenhoek opened this issue Sep 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@svandenhoek
Copy link
Contributor

When purely using the filename as output without giving a relative/absolute path, an NotADirectoryError: Output file has to be placed in an directory that already exists! error is given:

$ python3 ./utility_scripts/process_vep_tsv.py -i ../output/train_input_annotated.tsv.gz -o train_input_test.tsv.gz 
Parsing CLI

Validating input arguments.
Traceback (most recent call last):
  File "/path/to/capice-resources-main/./utility_scripts/process_vep_tsv.py", line 178, in <module>
    main()
  File "/path/to/capice-resources-main/./utility_scripts/process_vep_tsv.py", line 104, in main
    validator.validate_output_cla(output)
  File "/path/to/capice-resources-main/./utility_scripts/process_vep_tsv.py", line 82, in validate_output_cla
    raise NotADirectoryError('Output file has to be placed in an directory that already '
NotADirectoryError: Output file has to be placed in an directory that already exists!

If using ./train_input_test.tsv.gz as output argument, this error does not occur.

Expected behavior:

Giving a filename simply results in output file being created in current directory.

@svandenhoek svandenhoek added the bug Something isn't working label Sep 15, 2022
@SietsmaRJ SietsmaRJ added enhancement New feature or request and removed bug Something isn't working labels Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants