https://github.com/alleninstitute/cell_locator_tools

Tools for manipulating Cell Locator json files

https://github.com/alleninstitute/cell_locator_tools

Science Score: 13.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Tools for manipulating Cell Locator json files

Basic Info
  • Host: GitHub
  • Owner: AllenInstitute
  • License: other
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 397 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 5 years ago · Last pushed about 5 years ago
Metadata Files
Readme Contributing License

README.md

Cell Locator json file converters

Render annotations in legacy json file(s) to an image volume

Directory VisualizationDraft contains Python scripts to convert Cell Locator json file(s) to a ITK compatible volume mask (eg nrrd, nii.gz)

python convertjson.py --jsonname input.json --outname output.nii.gz --atlasname averagetemplate10.nrrd

If parameter json_name is a directory, the output volume will contain the annotations of all json files in the directory each specified with a unique value. Scripts assumes non-overlapping annotations. Areas of overlapped are assigned to only one annotation with no guaranteed ordering.

This conversion code is known to work for annotations on the Allen Mouse CCF and Cell Locator outputs from version 0.1.0-2020-07-30.

The json file format changed after the Release 0.1.0-2020-07-30.

For newer format files, you can convert to legacy format before using rendering script.

Convert new format to legacy format json files

Directory ConvertBetweenJsonVersions contains Python scripts to convert newer format Cell Locator json files to legacy format.

python convertnewtooldjson.py --jsonname input.json --outname output_directory

Each annotation within the input.json is converted to individual json files in the output_directory. The output directory can be used as input for rendering script.

This conversion code is known to work for annotations on the Allen Mouse CCF and Cell Locator outputs from version 0.1.0-2020-09-18.

Convert legacy format to new format json files

Directory ConvertBetweenJsonVersions contains Python scripts to convert legacy format Cell Locator json files to new format.

python convertoldtonewjson.py --jsonname input.json --outname output.json

If parameter json_name is a directory, the output json will contain the annotations of all json files in the directory each specified by its filename (without extension) in the output.json file.

This conversion code is known to work for annotations on the Allen Mouse CCF and Cell Locator outputs from version 0.1.0-2020-07-30.

Level of Support

We are not currently supporting this code, but simply releasing it to the community AS IS. We are not able to provide any guarantees of support. The community is welcome to submit issues, but you should not expect an active response.

Copyright 2021 Allen Institute

Owner

  • Name: Allen Institute
  • Login: AllenInstitute
  • Kind: organization
  • Location: Seattle, WA

Please visit http://alleninstitute.github.io/ for more information.

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels