Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
anatomogram
Advanced tools
This is an anatomogram for Expression Atlas that we use to illustrate the experiments.
The ontology IDs are sourced from Uberon, EFO and Plant Ontology.
To install:
npm install --save anatomogram
You can use it as a React component:
import Anatomogram from 'anatomogram'
...
<Anatomogram .../>
Alternatively, if you don’t use React we’re providing a convenience render
method:
import {render} from 'anatomogram'
...
render(options, target)
Where options
are the props passed as an object, and target
is an ID of the DOM element that will contain the
anatomogram.
For example code, have a look at the demo component and how we use it in https://github.com/gxa/atlas-heatmap. If you want to see it in action, go to an organism part experiment in Atlas or a search that returns organism part experiments.
Name | Type | Default value | Description |
---|---|---|---|
species | string | - | |
showIds | array | - | |
highlightIds | array | - | |
selectIds | array | - | |
showColour | string | grey | |
highlightColour | string | red | |
selectColour | string | purple | |
showOpacity | number | 0.4 | |
highlightOpacity | number | 0.4 | |
selectOpacity | number | 0.4 | |
onMouseOver | function | () => {} | Callback invoked when the mouse is hovered on a tissue |
onMouseOut | function | () => {} | Callback invoked when the mouse is hovered off a tissue |
onClick | function | () => {} | Callback invoked when a tissue is clicked |
For a list of available species and IDs have a look at
src/json/svgsMetadata.json
. The file is
automatically generated every time the package is published.
All three callbacks take a single string argument, the ID of the tissue affected by the mouse event.
The state of a tissue is either not shown, shown, highlighted or selected. On mouseover
the opacity is increased by
0.2. You can read a more inclined description of the anatomogram behaviour in the repository
wiki.
npm run dist -- --output-public-path <URL>
<URL>
is the URL (absolute or relative) from which you’ll be serving the anatomogram. This is required so that the
code knows where to look for static assets (i.e. SVGs and PNGs). You can read more about this option in Webpack’s
documentation site.
After building, deployment of anatomogramDemo.bundle.js
is optional, only if you want to host the demo component.
Read carefully our authoring guidelines before adding new tissues or updating IDs in an existing anatomogram or adding a new SVG.
Run npm run parseSvgs
to parse the updated IDs. When you are finished run a local copy of the demo page:
webpack-dev-server -d
Go to localhost:9000/html
and see that the tissues show up like you want them to.
FAQs
Anatomogram component for Expression Atlas heatmap
The npm package anatomogram receives a total of 8 weekly downloads. As such, anatomogram popularity was classified as not popular.
We found that anatomogram demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.