Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you define a bio-core? #11

Closed
wilzbach opened this issue Aug 1, 2014 · 4 comments
Closed

How do you define a bio-core? #11

wilzbach opened this issue Aug 1, 2014 · 4 comments

Comments

@wilzbach
Copy link
Member

wilzbach commented Aug 1, 2014

Seb: Why do you have the sequence class as core?
Seb: Something that I am imagining that should go inside this core could be a "GenericParser" which all parsers can inherit. After all they receive text and output an object. On the other side that might change too: arrays of binary data could be needed or with the upcoming ES6 Harmony browsers might finally support more structures.

Bruno: I think bio core should have helpers or util functions that are reused by most of the other bio modules.
The Sequence methods fit that description, although the reason why I have them in core is more historical than anything else. The first bionode module started as a way to provide those functions client side to the Afra project, while also being available for server side usage.
They should probably be moved to a specific bionode-sequence module, but then the bionode module would be empty since I don't have helper functions for now. In that case, the bionode module could become instead of the "core" module the "meta" module that links the other modules together in some kind of framework.

@wilzbach wilzbach changed the title How do you define a bio-core? For me code that should go inside is something like a "GenericParser" which all components can inherit. Why do you have the sequence class as core? How do you define a bio-core? Aug 3, 2014
@alanrice
Copy link
Contributor

alanrice commented Aug 5, 2014

Is a bio-core even necessary? What would bio-core look like without parser and sequence methods?

@wilzbach
Copy link
Member Author

wilzbach commented Aug 6, 2014

Well it was more because what I was seeing at the Bionode core wasn't that important for every component.
With all of the discussion at #9 in mind it would be great if we don't have any dependencies.

Btw here 's the example of how an optional, generic reader one could extend could look like.
The generic read command takes an URL and calls the specific parse which takes the string.

@wilzbach
Copy link
Member Author

During the BioJS 2.0 hackathon we created biojs-model. Currently it is somewhat empty and there isn't a widespread use. So maybe we don't need to specify schemes in a JS package that one needs to install.

However in my humbled opinion agreeing on a common format for the same data is something worthwhile to achieve.
Have you already created data schemes that you would consider fit for a global model definition?

@bmpvieira
Copy link
Member

I think we should let models/schemas evolve naturally and only worry about that when it becomes a real issue for collaboration/integration among modules. Right now, this hasn't been a problem for bionode, and biojs-model also seems still empty. I agree that standards are good, but I'm always afraid we might overthink this and end up with something like Chado. The real standard we should worry about are JSON and Protobuf. Object's schemas are easy to transform in a JavaScript pipeline. Also, Bionode tries to be more functional than object oriented, which kind of solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants