Comments (5)
Hello Abigail! Thanks for your interest.
Have you given any thought to exporting the Ideogram object as an es2015 module?
Not yet, but that seems worthwhile. I am on the cusp of wrapping up some enhancements to ploidy support; after that, I will work on exporting Ideogram as an ES2015 module.
from ideogram.
Oh, that would be great. From what I can gather, the biggest change would be in pointing the package.json main
field to an index.js
instead of gulpfile.js
.
// package.json
{
"main": "lib/index.js"
}
It's pretty common pattern to have the index file then include and export the various files in the package.
// index.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Ideogram = undefined;
var _Ideogram = require('./Ideogram');
exports.Ideogram = _Ideogram.default;
At 3,000+ lines, it might be worth spliting up ideogram.js into:
// directory
lib/Chromosome.js
lib/Layout.js
lib/Ploidy.js
lib/Ideogram.js
And then just export the object. There's a few different patterns for this that are detected differently by different build pipelines... Meteor, Webpack, etc. Not sure I have a definitive answer. Just copying the pattern from Material UI.
// Ideogram.js
var Ideogram = {}
exports.default = Ideogram;
from ideogram.
Thanks, that's helpful guidance.
from ideogram.
I've been working on this in eweitz:es6-export. While developing support for the new standard module syntax, I have also been updating Ideogram to use ES6 / ES2015 class syntax, and generally improving internal documentation and code styling. It's a significant internal migration for Ideogram.
The work is roughly 75% done. I've got the new exporting and class syntax working locally for most examples, but several examples still have errors and the test suite still needs to be migrated.
It is difficult to estimate when it will be complete, as the personal time I have to develop Ideogram has been limited over the past month or so and will likely become even scarcer for at least the next few months. That said, I will continue to focus on this issue in what time I do have available for Ideogram.
from ideogram.
@awatson1978, Ideogram is now exported as an ES2015 module.
Installation:
npm install ideogram
Import:
import Ideogram from 'ideogram';
You can still also load Ideogram directly from a script tag, as seen in the examples.
from ideogram.
Related Issues (20)
- API annotations not working on genomes with non "1,2,3" labelled chromosomes HOT 1
- Is there a limit to the number of keys in the legend? HOT 2
- Issue with custom organism bandfiles
- Display annotation track from a BED file HOT 8
- Support T2T human genome HOT 2
- Support gzipped BED files HOT 1
- Support for structural rearrangements HOT 4
- Histogram support for bedgraph format HOT 2
- 404 (Not Found) HOT 1
- Karyotype file of dual comparison error HOT 3
- Jupyter Notebook example no longer works HOT 5
- Chromosome disappears after being clicked for some organisms HOT 3
- Is there a way to zoom in or out ideograms to check overlapped annotations? HOT 2
- rangeSet does not support sex chromosomes HOT 4
- where is detailed documentation/wiki? HOT 1
- Two annotations layouts combined: overlaid + histogram HOT 2
- Annoatation with multiple tracks
- Histogram with tooltip? HOT 2
- Missing regions in fly ideogram? HOT 4
- Help with Uploading a Bed file instead of a URL link HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ideogram.