figuregenerator

This helps creating high quality figures for use in manuscripts and presentations.

https://github.com/cbica/figuregenerator

Science Score: 52.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization cbica has institutional domain (www.med.upenn.edu)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.7%) to scientific vocabulary

Keywords

figure-maker figures medical-imaging screenshot-generator screenshots
Last synced: 6 months ago · JSON representation ·

Repository

This helps creating high quality figures for use in manuscripts and presentations.

Basic Info
  • Host: GitHub
  • Owner: CBICA
  • License: other
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 15.6 MB
Statistics
  • Stars: 11
  • Watchers: 3
  • Forks: 2
  • Open Issues: 2
  • Releases: 4
Topics
figure-maker figures medical-imaging screenshot-generator screenshots
Created over 4 years ago · Last pushed 9 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Security

README.md

Figure Generator

PyPi Conda Build & Tests Codacy Badge Codacy Badge Code style

This project helps create high quality figures for medical images for use in presentations and/or manuscripts.

Installation

powershell git clone https://github.com/CBICA/FigureGenerator.git cd screenshot_maker conda create -n venv_screenshot python=3.7 -y conda activate venv_screenshot pip install -e .

OR directly via Pip:

powershell pip install FigureGenerator

Usage

``` python ./figure_generator -h usage: FigureGenerator [-h] -images IMAGES [-masks MASKS] [-opacity OPACITY] [-ylabels YLABELS] -output OUTPUT [-axisrow AXISROW] [-boundtype BOUNDTYPE] [-fontsize FONTSIZE] [-borderpc BORDERPC] [-v]

Constructing screenshots from medical images.

Contact: software@cbica.upenn.edu

This program is NOT FDA/CE approved and NOT intended for clinical use. Copyright (c) 2021 University of Pennsylvania. All rights reserved.

optional arguments: -h, --help show this help message and exit -images IMAGES Input image files (comma-separated without any spaces in path and co-registered) -masks MASKS Mask files (comma-separated without any spaces in path and co-registered with images); if multiple files are passed, first is ground truth -opacity OPACITY Mask opacity between 0-1 -ylabels YLABELS The comma-separated ylabels that will be displayed on the subplots' y-axis -output OUTPUT Output screenshot file -axisrow AXISROW Put all axes views across each column and stack images and blends in rows, defaults to False -boundtype BOUNDTYPE Construct bounding box around specified region; can be 'none, image or mask' -fontsize FONTSIZE Font size for all text on the figure -borderpc BORDERPC Percentage of size to use as border around bounding box (used only when mask and bounded are defined) -v, --version Show program's version number and exit. ```

Examples

Vertical screenshot of multiple images without bounding:

powershell python ./figure_generator \ -images C:/input/subject_001_flair.nii.gz,C:/input/subject_001_t1ce.nii.gz,C:/input/subject_001_t1.nii.gz,C:/input/subject_001_t2.nii.gz \ -masks C:/input/subject_001_seg.nii.gz \ -axisrow False \ -output C:/input/fig.png Gives the following output:

Horizontal screenshot of multiple images without bounding:

powershell python ./figure_generator \ -images C:/input/subject_001_flair.nii.gz,C:/input/subject_001_t1ce.nii.gz,C:/input/subject_001_t1.nii.gz,C:/input/subject_001_t2.nii.gz \ -masks C:/input/subject_001_seg.nii.gz \ -axisrow True \ -output C:/input/fig.png Gives the following output:

<!-- full-size image axisrow_true -->

Horizontal screenshot of multiple images with image-based bounding:

powershell python ./figure_generator \ -images C:/input/subject_001_flair.nii.gz,C:/input/subject_001_t1ce.nii.gz,C:/input/subject_001_t1.nii.gz,C:/input/subject_001_t2.nii.gz \ -masks C:/input/subject_001_seg.nii.gz \ -axisrow True \ -boundtype image \ -output C:/input/fig.png Gives the following output:

<!-- full-size image axisrow_true -->

Note: This can be used with vertical orientation as well, by passing -axisrow False to the command.

Horizontal screenshot of multiple images with mask-based bounding:

powershell python ./figure_generator \ -images C:/input/subject_001_flair.nii.gz,C:/input/subject_001_t1ce.nii.gz,C:/input/subject_001_t1.nii.gz,C:/input/subject_001_t2.nii.gz \ -masks C:/input/subject_001_seg.nii.gz \ -axisrow True \ -boundtype mask \ -borderpc 0.001 \ -output C:/input/fig.png Gives the following output:

<!-- full-size image axisrow_true -->

Note: This can be used with vertical orientation as well, by passing -axisrow False to the command.

Feedback

Please post on GitHub Discussions or post an issue.

Owner

  • Name: Center for Biomedical Image Computing & Analytics (CBICA)
  • Login: CBICA
  • Kind: organization
  • Email: software@cbica.upenn.edu
  • Location: Philadelphia, PA

CBICA focuses on the development and application of advanced computation techniques.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Pati"
  given-names: "Sarthak"
  orcid: "https://orcid.org/0000-0003-2243-8487"
- family-names: "Bakas"
  given-names: "Spyridon"
  orcid: "https://orcid.org/0000-0001-8734-6482"
title: "FigureGenerator"
version: 0.0.2
doi: 10.5281/zenodo.1234
date-released: 2021-08-09
url: "https://github.com/CBICA/FigureGenerator"

GitHub Events

Total
  • Member event: 1
  • Issue comment event: 3
  • Push event: 2
  • Pull request event: 1
Last Year
  • Member event: 1
  • Issue comment event: 3
  • Push event: 2
  • Pull request event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 32 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 5
  • Total maintainers: 1
pypi.org: figuregenerator

Making screenshots for presentations and manuscripts.

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 32 Last month
Rankings
Dependent packages count: 10.1%
Average: 20.7%
Dependent repos count: 21.5%
Downloads: 30.4%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/codacy-analysis.yml actions
  • actions/checkout v2 composite
  • codacy/codacy-analysis-cli-action 1.1.0 composite
  • github/codeql-action/upload-sarif v1 composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite
.github/workflows/main.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
.github/workflows/python-package.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish master composite
setup.py pypi