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 retain directory structure #53

Closed
mbhall88 opened this issue Jan 20, 2022 · 3 comments
Closed

Option to retain directory structure #53

mbhall88 opened this issue Jan 20, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@mbhall88
Copy link

Hi,

Would it be possible to add a feature to allow for maintaining directory structure when converting between slow5 and fast5?

For example, if I have a directory structure

  └── Vero
     ├── Vero_C_2hpi
     │  └── 20200513_Vero_c_2hpi
     │     ├── fast5
     │     │  ├── fast5_fail
     │     │  └── fast5_pass
     ├── Vero_C_24hpi
     │  ├── 20200430_Vero_c_24hpi
     │  │  └── 20200430_Vero_c_24hpi
     │  │     └── 20200430_0856_MN28696_FAN24843_c1ec9e3c
     │  │        ├── fast5

it would be nice if I could have the output directory mirror this.

For example, if I run

$ slow5tools s2f -d out/ Vero/

Then all of the fast5 files are dumped in out/. I would be great to have an option to have them dumped in the same nested structure as the input directory.

Thanks for the great tool!

@hasindu2008
Copy link
Owner

Hi @mbhall88

This feature is being already implemented (we ourselves wanted this requirement while converting some of our archive data). The implementation is here #51 but have not yet been tested thoroughly. Will be merged to the dev branch soon after a test.

Regards

@hasindu2008
Copy link
Owner

This feature for f2s is available in the master branch. Give it a go and let us know your thoughts.

@hasindu2008 hasindu2008 added the enhancement New feature or request label Mar 15, 2022
@mbhall88
Copy link
Author

Seems to be working based on a test I just ran 🎉

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