-
Notifications
You must be signed in to change notification settings - Fork 5
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
Indexlr: spaces are not supported in file path #129
Comments
Hi Michael, Thanks for reaching out! I'm not really surprised that you would see unexpected behaviour when trying to use files with spaces in them - generally, the convention is to avoid using spaces in file/directory names (I found some good documentation of conventions here: https://datamanagement.hms.harvard.edu/plan-design/file-naming-conventions). There would be a number of issues possible there, including that indexlr can take multiple files, and the spaces would make it complicated to distinguish different files vs. a single file with the space(s). Because of all that, I'd highly recommend removing spaces in your file names. If that isn't a good option (I understand sometimes changing file names after the fact can be messy), then you could make a soft-link to that problem file, and specify that to indexlr instead. Ex:
Thank you for your interest in btllib! |
Thanks for your response Lauren! Yeah the best practice would be having no spaces. But it would nice to make supported, since python itself supports file path with spaces. But I understand that you might need to spend time on other features. Thanks again for maintaining btllib! Michael |
@lcoombe At the start of the function, you can do |
I can take care of it. |
Thanks so much Parham! |
Hello devs,
I ran into this error running Indexlr in python on a linux x64 system. Below is the code to replicate this error:
and the error message:
Got the same error when using the indexlr command:
indexlr -k 21 -w 200 --long -o test.out "genomes/Salmonella bongori/ncbi_dataset/data/GCF_000252995.1/genomic.fna"
Both run was successful if the space in the file path is replaced.
Thank you,
Michael
The text was updated successfully, but these errors were encountered: