Skip to content

tiny-count: '--get-templates' argument#259

Merged
taimontgomery merged 9 commits intomasterfrom
issue-258
Dec 14, 2022
Merged

tiny-count: '--get-templates' argument#259
taimontgomery merged 9 commits intomasterfrom
issue-258

Conversation

@AlexTate
Copy link
Member

@AlexTate AlexTate commented Dec 7, 2022

--get-templates

  • When this argument is provided, tiny-count simply copies the Paths File, Samples Sheet, and Features Sheet to the current directory and exits, ignoring all other arguments
  • --get-templates cannot be used in combination with the --paths-file argument
  • I had originally intended get-templates (sans leading dashes), but this was surprisingly difficult to accomplish without a lot of hacking in argparse, so this was the cleaner and more reliable solution

Misc. improvements to the tiny-count helpstring

  • The --out-prefix argument is now optional. This had to be done to allow a mutually exclusive required group between --get-templates and --paths-file. Its default value is "tiny-count_{timestamp}". The "{timestamp}" token is replaced with the current date/time. Users can also use this token in their own prefix
  • Default argument values are now indicated at the end of each argument's help string
  • A more succinct intro description that doesn't mention tinyRNA's recount/replot option
  • The --help and --all-features arguments are now hidden from the helpstring (and the entry for All Features has been removed from the documentation)

Configuration file changes

  • Files in the /tiny/templates directory no longer contain an example configuration. The old contents have been moved to /tests/testdata because they are utilized in some unit tests
  • The Input FASTQ Files header has been renamed to FASTQ/SAM Files in the Samples Sheet

Misc changes

  • The command tiny get-template has been corrected to tiny get-templates (plural)
  • Shortened the introductory sections in tiny-count.md and corrected outdated info in the standalone section. Removed the warning about reusing the same prefix between standalone runs since the default prefix and {timestamp} token should make this a non issue. Also moved the selection diagram down so that it is right before the Stage 1 section.
  • Unit tests have been updated

…es.csv. Example configurations have also been removed from the files in the templates directory.
…t. This argument is mutually exclusive with the --paths-file argument. When it is provided, tiny-count simply copies the template files to the current directory and exits (all other arguments are ignored).

Additional improvements to the tiny-count helpstring:
- The --out-prefix argument is now optional. It defaults to "tiny-count_{timestamp}". While it isn't documented, users can also use the "{timestamp}" token in their own prefix which will be evaluated at runtime.
- Default argument values are now indicated at the end of each argument's help string
- A more succinct intro description that doesn't mention tinyRNA's recount/replot option
- The --help and --all-features arguments are now hidden from the helpstring (and the entry for All Features has been removed from Parameters.md)
…me out of date info in the standalone section. Removed the warning about reusing the same prefix between standalone runs since the default prefix solves this issue, and we give users the ability to avoid it themselves with the "{timestamp}" substring. Also moved the selection diagram down so that it is right before the Stage 1 section
…help string so users know they can use it in their own
…ests/testdata/config_files since these files are used in unit tests.

All unit tests have been updated to reflect the new config file layout. Updated a few unit tests for collapser and plotter that were out of date.
…ew earlier). I also noticed that there was a tiny-count parameter listed in Parameters.md that is no longer available, so I removed it and audited the rest of Parameters.md making a few small corrections
@taimontgomery
Copy link
Collaborator

Reviewed documentation and did some very minor testing.

@taimontgomery taimontgomery merged commit f5cdfad into master Dec 14, 2022
@AlexTate AlexTate changed the title tiny-count: '--get-template' argument tiny-count: '--get-templates' argument Mar 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants