![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
higlass-multi-tileset
Advanced tools
Multi-tileset data fetcher for HiGlass
If you are using NPM:
npm install higlass-multi-tileset
Then you can load it by adding this import to your JavaScript:
import MultiTilesetDataFetcher from 'higlass-multi-tileset';
// Alternatively, if you don't need programmatic access:
import 'higlass-multi-tileset';
Otherwise, load higlass-multi-tileset
from a CDN. You can use this script tag:
<script src="https://unpkg.com/higlass-multi-tileset"></script>
<!-- Make sure to load higlass-multi-tileset before hglib.js -->
<script src="hglib.js"></script>
The multi tileset data fetcher can be used to fetch data from multiple tilesets at once.
{
"data": {
// The "type" field tells HiGlass to use this data fetcher
"type": "multi-tileset",
// An array of data configs
"configs": [
{
"server": "http://localhost:8001/api/v1",
"tilesetUid": "my-bigwig-tileset",
},
{
"server": "https://my-higlass-server.com/api/v1",
"tilesetUid": "my-fasta-tileset",
// The primary data config will be the source of
// tileset info, and only tiles that exist in the
// primary tileset will be returned.
// Defaults to the first config specified (index 0)
"primary": true
},
{
"type": "local-tiles",
"tilesetInfo": { ... },
"tiles": { ... }
}
]
},
// Other options for the track go here
...
}
The tiles returned from the data fetcher will have an array for the tileData
property that includes the tile data from every config specified.
For example, in your track you might use:
renderTile(tile) {
const firstTile = tile.tileData[0];
render(firstTile.dense);
// The second data config is the source for this tile data
const secondTile = tile.tileData[1];
}
This data fetcher comes with a special feature: tile ID filters. If you want to filter out some tile IDs from some data configs to avoid fetching them when they aren't needed, you can use the setFilter()
function on the dataFetcher.
updateOptions(newOptions) {
if (
this.dataFetcher.constructor.config &&
this.dataFetcher.constructor.config.type == 'multi-tileset'
) {
// Applies to the primary data config (no second argument)
this.dataFetcher.setFilter(tileId => tileId != 'banned-id');
// Don't fetch any tiles from the second data config
// (second argument is index)
this.dataFetcher.setFilter(_ => false, 1);
}
}
This can be helpful to improve performance in situations where one of the data configs is not necessary. For example, in higlass-dynseq
, a filter is applied to the FASTA data config to avoid fetching the sequence unless it is visible on screen.
File an issue if you have found a bug, would like help resolving a problem, or want to ask a question about using the track.
Alternatively, contact Arjun Barrett for more information.
FAQs
Multi-tileset data fetcher for HiGlass
We found that higlass-multi-tileset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.