mpoegel / SemNExT-Visualizations

Node app to create Suceptibility Windows Ontological Transcriptome (SWOT) Clocks
https://semnext.tw.rpi.edu/swotclock
MIT License
4 stars 1 forks source link

How do we access the Campfire version of SWOT? #27

Open olyerickson opened 7 years ago

olyerickson commented 7 years ago

Our real reason for looking at this is to understand how you built the two-window Campfire version.

How to we get that running (on our local machines)

Thanks!

olyerickson commented 7 years ago

I see the campfire definition file but don't know how it gets factored into anything...

https://github.com/mpoegel/SemNExT-Visualizations/blob/master/definitions/campfire.d.ts

mpoegel commented 7 years ago

The campfire version has not been updated/maintained in quite some time. The campfire.ts file controls the floor and campfire-wall.ts controls the wall. The floor script opens a new window with wall.html and maintains a handle on it so as to pass events back and forth. It's a bit of a hack but that was the best solution available at the time.

We also were not able to come up with a good way create the UI on the campfire, so right now it is hardcoded to just create the Autism SWOT clock.

olyerickson commented 7 years ago

Okay, I see the two campfire scripts...Now I'm wondering where you tweaked things to cause these to be used rather than the default...

BTW, this codebase seems like a parallel universe to Shiny ;)

olyerickson commented 7 years ago

Okay, figured it out: I just need to go to http://127.0.0.1:8000/campfire and popups happen...

olyerickson commented 7 years ago

When browsing to http://127.0.0.1:8000/campfire/floor.html it always re-routes to http://127.0.0.1:8000/campfire/wall.html ... I expected that I could have a floor tab and a wall tab simultaneously...

CORRECTION: I see that when floor.html is opened, it immediately opens wall.html in another tab. floor looks very broken ;) ![Uploading Selection_026.png…]()

olyerickson commented 7 years ago

UPDATE: Corey and I made progress understanding the newer code (the working demo) and identifying how the final object is constructed (ie we dissected graph.ts)

Next steps are to generate new floor, wall and controller windows from first principles based on the revised code. First step is to create a rectangular heatMap

olyerickson commented 7 years ago

UPDATE: Corey and I made progress understanding the newer code (the working demo) and identifying how the final object is constructed (ie we dissected ui.ts et.al.)

olyerickson commented 7 years ago

Found drawRectangularHeatmap() in graph.ts, looking at how to scale it...

CoreyByrne commented 7 years ago

I have fixed the issue and updated the campfire code on my machine. Should I create a separate issue to link to?

mpoegel commented 7 years ago

If you want to open a pull request I would be happy to review the changes.

olyerickson commented 7 years ago

Thanks Matt!

Corey, "make it so..." ;)

John http://www.process.st/wp-content/uploads/2015/12/make-it-so-picard.png

On Thu, Mar 2, 2017 at 9:45 AM, Matt Poegel notifications@github.com wrote:

If you want to open a pull request I would be happy to review the changes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mpoegel/SemNExT-Visualizations/issues/27#issuecomment-283672133, or mute the thread https://github.com/notifications/unsubscribe-auth/AAV4-QjrZAc67YGktQeoMvKOw8wVN5hjks5rhtX6gaJpZM4MEw7S .

-- John S. Erickson, Ph.D. Director of Operations, The Rensselaer IDEA Deputy Director, Web Science Research Center (RPI) http://idea.rpi.edu/ olyerickson@gmail.com Twitter & Skype: olyerickson