-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for subdir configuration #4
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
Conversation
| copier.copy_files(workdir / "seq") | ||
| copier.copy_files(workdir / subdir) | ||
| copier.print_copy_log() | ||
| nlogs = len(list((workdir / "seq").glob("copy-log-*.toml"))) | ||
| with open(workdir / "seq" / f"copy-log-{nlogs + 1}.toml", "w") as fh: | ||
| nlogs = len(list((workdir / subdir).glob("copy-log-*.toml"))) | ||
| with open(workdir / subdir / f"copy-log-{nlogs + 1}.toml", "w") as fh: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main change.
| "-s", | ||
| "--subdir", | ||
| metavar="PATH", | ||
| default="seq", | ||
| help="subdirectory path under --workdir to which sequence files will be written; PATH=`seq` by default, but can contain nesting (e.g. `seq/study`)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configurable now
| parser = ArgumentParser(description="Copy FASTQ files and update sample names") | ||
| parser = ArgumentParser( | ||
| description="Copy FASTQ files and use sample names to make filenames consistent", | ||
| formatter_class=RichHelpFormatter, | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a CLI glow-up while I was at it.
|
Looks good! |
No description provided.