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

Round up for customizing exports #445

Merged
merged 12 commits into from
Feb 23, 2023
Merged

Round up for customizing exports #445

merged 12 commits into from
Feb 23, 2023

Conversation

yoda-vid
Copy link
Collaborator

Various fixes and small enhancements for data export:

  • The openpyxl package is now optional for region CSV file export
  • --plot_labels rotation=<deg> sub-argument to specify label rotation for 2D plots, supported in swarm and bar plot x-labels
  • Options not to save 2D plots and to further customize swarm plots
  • Stack export supports RGB images and removes TIF file extensions
  • Blob verification matches logging is more readable
  • Clrstats linear regression intercept term can be toggled via the new config.env$Intercept <- FALSE setting
  • Easier to extract more stats from R models, such as r<sup>2</sup> and intercepts in linear regressions

- Group matches using original blob coordinates for easier comparison
- Show scaled coordinates and distances separately with corresponding indices
- Add type hints
Exporting region IDs has output both a CSV and Excel files. Make the Excel file output optional to avoid an error when the export package is not available since this package is optional.
Add `--plot_labels rotation=<deg>` CLI argument to set the amount of rotation. Apply this rotation to swarm and bar plot tasks.
- Support RGB set on the CLI when exporting a stack of images
- Refactor plane processing to use the rescale/resize wrapper
- Add multichannel support to this wrapper
Files loaded directly as TIFs require the extension during loading, but the output file should not retain this extension.
Follow the same error formatting when Seaborn is missing in category plotting as for swarm plots.
…able

Add an `Intercept` environment field to configure whether to include the intercept term in linear regressions.
- Transfer all columns from the stat coefficients output table rather than hard-coding column names
- Clean up unused variable initializations and for-loop sequence
- Extract additional linear regression values
- Store extra columns in results data frame to output stats table
- Add parameters to customize the legend title and pass arguments to the underlying Seaborn swarm plot, similar to the category plot wrapper
- Use the data frame passed to `main` if given
Add a parameter to `main` to specify whether to save the plot.
@yoda-vid yoda-vid added bug Something isn't working enhancement New feature or request labels Feb 14, 2023
@yoda-vid yoda-vid added this to the v1.6.0 milestone Feb 14, 2023
Also, update CLI docs for `--plot_labels`.
@yoda-vid yoda-vid merged commit ba7aaf4 into master Feb 23, 2023
@yoda-vid yoda-vid deleted the customize_exports branch February 23, 2023 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant