These are chat archives for biojs/biojs
we have to make a d3.js snippets in package.json but in source code repo there is no d3.js snippets
Well this snipspector tutorial is a bit outdated (that is why I want move forward to a new tutorial series). Now we normally require everything:
npm install d3 --save
and then in the file
var d3 = require("d3");
So can I add d3 snippets to the package.json in source code repo or make a PR ??
As mentioned above you don't need to add the d3 dependency to the "js" section of the sniper when you have defined it as a npm dependency.
I am getting error "d3 is not defined" but I have added the d3 snippets in package.json. How to solve it ?
Can I update the tutorial link also ?
Sure - to which link are you referring to?
Should I be defining the basic methods like 'parse' and 'write' in the generic parser
Well currently there is no generic parser package, I guess your question is more whether we should have a generic parser package which you can require?
readmethod which downloads a file from the web, or maybe later other helpers for interaction with streams
But different file formats need a lot of methods that would return different sets of values.
Yes nearly every parser would return a different model, but the methods would still be the same?
xhror others (e.g. stream modules)