These are chat archives for biojs/biojs

30th
Jan 2015
Shakeel Shafiq
@thirdknife
Jan 30 2015 11:27 UTC
Hi
Sebastian Wilzbach
@wilzbach
Jan 30 2015 12:31 UTC
@thirdknife - don't ask to ask, just ask ;-)
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:14 UTC
(greenberry) thirdknife: did you want to ask a question this morning?
Shakeel Shafiq
@thirdknife
Jan 30 2015 20:16 UTC
hi @greenify, yes I want to contribute but as BioJS 2 is divided into components so I wonder which one to start
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:19 UTC
It really depends on what you are interested in
Shakeel Shafiq
@thirdknife
Jan 30 2015 20:20 UTC
I want to start with tress
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:20 UTC
as @daviddao mentioned there is also a lot of maintaince work e.g. for biojs.io (frontend, backend) that one could do.
tress?
Shakeel Shafiq
@thirdknife
Jan 30 2015 20:21 UTC
Phylogenetic Tree
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:22 UTC
do u know about tnt.tree?
Shakeel Shafiq
@thirdknife
Jan 30 2015 20:24 UTC
nope
it looks great
Prasun Anand
@prasunanand
Jan 30 2015 20:27 UTC
@greenify , I am facing problems in understanding http://edu.biojs.net/series/101/40_visualization_basic.html (step 3). Need help.
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:28 UTC
@prasunanand sure. can you be more descriptive?
Prasun Anand
@prasunanand
Jan 30 2015 20:31 UTC
I am not getting that (1). "src/index.js" refers to what? and (2).what is "require"?
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:31 UTC
require is similar to import in other languages
you can require file in js
(1) to the file src/index.js
Prasun Anand
@prasunanand
Jan 30 2015 20:33 UTC
I got that. Its further written Open requirebin.com
Paste the 11 lines
Add (as a new line) on the bottom vis({el: document.body})
Hit Rebuild
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:34 UTC
one sec
var div = document.createElement("div");
document.body.appendChild(div);
vis({el: div});
replace the last line with this
I guess you get an error because module is undefined in RequireBin
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:40 UTC
anything else you two want to ask?
Prasun Anand
@prasunanand
Jan 30 2015 20:40 UTC
got it
thanks
Prasun Anand
@prasunanand
Jan 30 2015 20:50 UTC
@greenify I am facing problems with sniper. I have globally installed sniper. 5) See the first output
snippets/simple_example.js
Do I need to create a directory as sniper and then write a file ''simple_example.js"
in the package directory
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:52 UTC
You need to run slush biojs first, as described in 1)
this will bootstrap a directory that is works well with the registry
Prasun Anand
@prasunanand
Jan 30 2015 20:52 UTC
I did slush biojs but didn't get any sniper directory
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:53 UTC
okay what happens when you run npm run sniper
or sniper
(is the same command)
Prasun Anand
@prasunanand
Jan 30 2015 20:53 UTC
running: http://localhost:9090
DIR:/home/prasun/dev/JsBio
Invalid package.json
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:54 UTC
can you do an ls?
did you modify the package.json?
Prasun Anand
@prasunanand
Jan 30 2015 20:54 UTC
wait i did it in wronng directory
running: http://localhost:9090
DIR:.
parsed { js: [ '/build/snipspector.js' ],
snippets: [ 'examples' ],
first: 'simpl
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:55 UTC
looks normal :)
sniper is a webserver that simulates the BioJS registry (and helps if you want to load files)
Prasun Anand
@prasunanand
Jan 30 2015 20:56 UTC
5) See the first output
snippets/simple_example.js
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:56 UTC
The idea is that one has multiple example snippet for a component
Oh the path changed - it is now examples
Prasun Anand
@prasunanand
Jan 30 2015 20:57 UTC
ok
all good then
:+1:
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:58 UTC
(: -btw if sth. is hard to understand, just edit the documentation and make it better for the future ..
(this goes for everything)
Prasun Anand
@prasunanand
Jan 30 2015 20:58 UTC
Can I edit it
Sebastian Wilzbach
@wilzbach
Jan 30 2015 20:59 UTC
yep - just scroll down and click on the "improve it" button
Prasun Anand
@prasunanand
Jan 30 2015 20:59 UTC
cool