Open slarson opened 7 years ago
@slarson What variables do we want to plot in the graphs? If we add more details to how we we want to compare the "body position" then we can start looking at how to produce those variables in both Sibernetic and Movement Validation cc @gidili @cheelee
@tarelli OK here's a first cut of how the plot should look. Also want to loop in @rgerkin here to see if he could help with producing this, in particular doing the comparison between the real and simulated time series.
@MichaelCurrie @JimHokanson What would it take to get this kind of time series out of Movement Validation?
@a-palyanov @skhayrulin What would it take to get this kind of time series out of Sibernetic?
cc: @raminmh @lungd
Geppetto could be used to produce this if https://github.com/openworm/org.geppetto.simulator.sph/issues/40 can be done.
Rex has some experimental tap data (@Ichoran GitHub handle)
Sibernetic will be supporting outputting a graph like this as an option, per this issue: https://github.com/openworm/sibernetic/issues/119
@Ichoran @cheelee Would it be possible to get a hold of the data as a line chart for tap withdrawal that @JimHokanson mentioned above?
@slarson - Sure! Do you want the average, or do you want a bunch of trials? How many? How accurate does the timing need to be (sync between video and tap delivery) for this to be valuable?
@Ichoran Thanks! Took us a little while to get back to this, but I think it will be best if @raminmh @lungd weigh in on this, as they have been taking the lead on our efforts with Tap Withdrawal. Thanks again for all your contributions and help!
Summary of discussions at the Movement Validation hangout with @Ichoran.
The data is in a format outside of WCON, but has no problems converting it. The issue is what we'd want ... apparently the behavior patterns of experiments involving the worms don't cluster as much as form some kind of continuous manifold.
There are terabytes of that data ... so we get to pick a sample.
More pertinent than the data size on disk is that we have a library of about 80,000 initial tap withdrawals (i.e. the first time that worm has ever seen a tap). So you can get pretty much whatever you ask for. For instance, if you want the worm to be traveling between 0.08 and 0.12 mm/s forwards pre-tap, I can select out that data. And I can save the cut-out examples as WCON, or generate some sort of summary data.
Updating the roadmap:
The following points can proceed in parallel:
Sibernetic
c302
Experimental data
This must happen once the above points are completed:
Combination
@a-palyanov Can we run a simulation now where the worm crawls forward, simulate fake "tap" reversal, and then goes backwards for a time to get a starting "rig" going that begins to close the loop with real data?
@Ichoran Can we start with a small # of representative, average responses encoded in WCON so we can make 1-4 initial graphs? Eventually we are going to want to pull hundreds of average responses but we need to prime the pump with a small number to begin with.
@pgleeson @raminmh I know we are proceeding well on making traveling waves in muscles. Is it time to think about a very dead simple way to generate sinusoids in muscle cells just for the purpose of integration and closing the loop at first, which then lays a foundation for the more accurate / correct version?
@slarson - Sure. How long do you want before and after the tap? (Note: you can't have more than 10s after the tap before the next tap arrives.) I assume you want data from the first tap per recording only?
@Ichoran Since simulation time is expensive, the shorter the better. How about 500 ms before and after the tap?
@slarson - Okay, but that's only around 30 frames. I don't think I'll be able to get to it this week but next week should be possible.
@Ichoran Thank you! Its good to know that resolution may be an issue. My thought is that 30 should be enough data points to define the line in the graph we are looking for up above, but this is the kind of thing that we only see when we try.
Next week would be terrific.
@slarson Sure, I think it is a good idea. There are some ways to do so:
One can activate sinusoidal muscle waves from the output of the tap-withdrawal circuit, by sinus functions at the motor neurons, (the way you did that before). The difference here is that the TW circuit activates the sin waves.
We could continue hand-tuning the parameters of a circuit including A-, B-, and D-type motor neurons together with AVB, to generate muscle waves.
It would be great to see how the circuit these guys are suggesting here (https://arxiv.org/pdf/1705.02301.pdf) would work in our simulator.
@slarson @pgleeson @lungd what do you think ?
@slarson Could you please link us once again to the other paper you found about B type motor neurons ?
@Ichoran Any luck with the data for this?
@raminmh In general this plan sounds good. About the paper with the b-type motor neurons ... can you remind me more about it?
@slarson - It's near the top of my to-do list but a couple of other things came up. I'll probably have the data in hand on Monday or Tuesday next week.
The OpenWorm Simulation stack is beginning to be able to produce this kind of simulated data as shown in these figures.
Forward Reverse with Tap on Wild Type.
Can do a speed graph showing a positive and negative direction. Involves Sibernetic combined with c302, with Tap Withdrawal Circuit enabled.