Tutorial:Simulation
From QuB
| Prev: Single Channel Simulation | Outline | Next: Single Channel Measurements |
The following tutorials will lead you through various simulations useful in single-channel analysis. The data files we create will be used in the analysis tutorials.
Contents |
Simple
Simulating 10 segments of data at equilibrium:
- Build the model at right
- Set the entry/start probabilities to equilibrium
- Right-click the background of the model
- Choose Equilibrium P -> Calculate and assign
- Save the model (File -> Save model as) "basic model.qmf"
- Right-click "Sim", on the right under "Simulation", for simulation properties
- Set "Segment count":10, "Segment size":100000
- Choose "New data file"
- Click "Simulate"
- The New Data dialog appears:
- File format: QDF (qub's native data format)
- A/D Channels: 1 (1 signal line for the simulated current)
- Sampling (kHz): 20
- Scaling: 320 (why?)
- Click OK
- Save the data (File -> Save data as) "basic model sim.qdf"
Ligand-dependent
Simulating a ligand-dependent model at different concentrations:
- Start with the basic model above
- Make the opening rates ligand-dependent
- Double-click the number 100 to open the rate properties dialog
- Check "P" and verify the name "Ligand" is to the right of P
- Click the number 10000
- Check "P" and verify the name "Ligand" is the same
- Click OK
- Force the simulation to start in state 1
- Right-click state 1
- Choose "Make start state"
- Save the model (File -> Save model as) "ligand-dependent.qmf"
- Right-click Sim for simulation properties:
- Choose "New data file"
- Set ligand concentration to 0.1:
- Click the "Model" tab
- Under "Parameters" find the cell for "Ligand" "Value"
- Enter 0.1
- Click "Simulate"
- Fill out the New Data dialog as above
- Save the data (File -> Save data as) "ligand-dependent 0.1.qdf"
- Re-simulate with ligand concentration of 1.0:
- Right-click Sim
- New data file
- Model:Parameters:Ligand value 1.0
- Simulate
- Save the data as "ligand-dependent 1.0.qdf"
- Re-simulate with ligand concentration of 3.0
- Save the data as "ligand-dependent 3.0.qdf"
Pulses of Agonist
Note: the following procedure has been superseded by Simulation:DoseResponse.
We will simulate the response of the above model to pulses of agonist. If you haven't done so, create ligand-dependent.qmf. First, we create the pulse in the Acquisition Protocol window:
- Open the Acquisition Protocol window (View -> Acquisition Protocol)
- Create a new protocol file (click the document icon in the upper-left of the Acq.Proto window)
- Verify there's 1 D/A Channel (one stimulus variable)
- drag-and-drop the Step shape from the top palette to the blank grey in the middle
- Configure the Step at left:
- preDuration:0.25, preAmp: 0.0 -- it will start with 0.25 seconds of 0.0 concentration
- Duration:0.5, Amp: 0.1 -- it will rise to 0.1 concentration for 0.5 seconds
- postDuration:0.25, postAmp: 0.0 -- it will end with 0.25 seconds of 0.0 concentration
- Amp incr: 0.1 -- with every repetition Amp will be increased by 0.1 (so the second rep will have Amp of 0.2)
- Configure the repeats:
- Below the picture, set "Repeat stage" to 10 times
- Save the protocol (the third icon in the upper-left of the Acq.Proto window) as "ligand steps.qpf"
Then we simulate:
If you have QuB 1.4.0.67 or newer:
- Right-click Stim (StimSim)
- For "Stimulus file" choose "ligand steps.qpf"
- Under Parameters, make sure "Ligand" is assigned to "Channel" 1
- Check "New file" and enter an appropriate Sampling rate (e.g. 10 kHz)
- Click "OK"
- Save the data as "ligand steps.qdf"
If you have QuB 1.4.0.66 or older:
- Right-click Sim
- Choose "New data file"
- Click the "Simulation" tab
- Choose Stimulation: File
- Choose Stimulation File: steps.qpf
- Click the "Model" tab
- Under Parameters, set Ligand Channel to 1 (the Value disappears because it will vary)
- Stimulus channels are numbered starting with 1 (the current is in channel 0)
- Click Simulate
- Give the new data file an A/D Channel Count of 2: one for the current, one for the stimulus
- Click OK
- Save the data as "ligand steps.qdf"
Heterogeneous
Real-life recordings often have more than one kind of channel. We will simulate a patch containing two channels: one with high open probability (Po) and one with low Po.
- Build and save the two models to the right. Set state 3 as the start state in both. Keep both open.
- Right-click Sim
- In the "Model" tab, hold down the Control key and select both models
- Click Simulate
- Save the data as "heterogeneous.qdf"
You should see clusters which are mainly closed, clusters which are mainly open, and mixed clusters which rise to a double-open level.
LiveSim
To see the effect of changes to the model, you can "LiveSim": have qub re-simulate after every change to the model. For responsiveness, use LiveSim only with small simulations.
- Set up a model (e.g. basic model)
- Right-click Sim:
- Segment count: 1
- Segment size: 10000
- Click Simulate
- Click "LiveSim" next to "Sim" to turn on live simulation
- Make some changes to the model
- try pointing at a rate and spinning the scroll wheel
- When you're done, turn off live simulation by clicking "LiveSim"
| Prev: Single Channel Simulation | Outline | Next: Single Channel Measurements |



