These are chat archives for biojs/biojs

19th
Feb 2015
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:22
If i have to add d3-tooltip library to joelin.ca/cyto-chromosome-vis how would i do that. I have little experience of gulp
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:40
Just require it - browserify will do the rest
Is it available as npm package?
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:41
I did but it didn't work so i did this npm install --save d3-tooltip and it worked
yes it is
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:42
To clarify : you already solved it?
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:45
yes it is solved but it should work as you mentioned, I just fixed by hit and trial by running npm install
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:46
Once you understand it, npm is one of the trivialest things on earth :)
You always need to install the package.. Otherwise there is no source code to require
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:47
yeah, it is. I have been out of touch with node for 8 months and it has changed a lot now
new build systems
you got some time @greenify ? I need to discuss something
check this is what I have modified yet http://imgur.com/Q5a2v31
I mentioned few days back
I am displaying my specific genes only in where they lie in particular bands
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:51
Well I am in the subway - do I try my best ;-)
*so
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:51
there are 2 problems, one is spacing obviously other is that I have to show tooltip when clicked on the gene name
but me data is not structured correctly
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:52
For the second one. Simply on('click')?
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:52
I have a json coming from my server which sends back genes on chromosome 17 lets say
and I have DAS data coming in
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:53
For the spacing: do you show all tooltips at the same time?
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:54
[{"ChrLocation":"p11","MemberName":"VAMP1"}}
I am talking about the spacing between genes each other. they are overlapping
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:54
And you want to sort that array?
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:54
one way is I increase the width which in not feasable
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:55
Increasing the width won't solve the problem
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:55
Array is sorted. I am generating tooltip data inside data closure function and it loops over some array
how can I append that tooltip to the band
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:55
If you really have to display all tooltips at once you could try to do some levelling
Meaning that you group them in rows
So you define bins over the chromosome and then either alternate the position
Or group all overlapping
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:57
yeah I have that idea too, but my data is not structured correctly as d3 works
Sebastian Wilzbach
@wilzbach
Feb 19 2015 11:57
Does this make sense to you?
I don't get that? Why isn't it 'structurly correct'?
Shakeel Shafiq
@thirdknife
Feb 19 2015 11:58
let me send my arrays
..
Sebastian Wilzbach
@wilzbach
Feb 19 2015 12:02
Okay I have to leave you for now.. Will pick this up later. Sorry.
Shakeel Shafiq
@thirdknife
Feb 19 2015 12:02
okay, sure catch you later
David Dao
@daviddao
Feb 19 2015 14:59
@thirdknife i don't see your json data in the link you send us. However, you have to preprocess your data into bins before using d3.
Prasun Anand
@prasunanand
Feb 19 2015 22:37
@greenify I have been working to create a similar biojs component as in http://angularplasmid.vixis.com/. I studied the code of /biojs-vis-circularfv. In lib/fv.js there is a function _getNCBIAnnotations . why is this necessary?
David Dao
@daviddao
Feb 19 2015 22:46
@prasunanand have you seen http://biojs.io/d/angularplasmid ?
Prasun Anand
@prasunanand
Feb 19 2015 22:48
yes , its the same as http://angularplasmid.vixis.com/ . I was just trying to learn how to make a biojs component :)