Skip to contents

Fitting & using a wisp model

wisp()
Fit wisp to count data
print(<wisp>)
Print a fitted wisp model
summary(<wisp>)
Summarize a fitted wisp model
print(<summary.wisp>)
Print a wisp model summary
coef(<wisp>)
Fitted parameter estimates from a wisp model
confint(<wisp>)
Confidence intervals for wisp model parameters
residuals(<wisp>)
Residuals from a fitted wisp model
plot(<wisp>)
Plot a fitted wisp model

Core model functions

wisp_warp()
Wisp warping function, implemented in R
demo_warp_plots()
Make plot demonstrating how the wisp function is warped by the warping factors
wisp_sigmoid()
Wisp sigmoid function, implemented in R
demo_sigmoid_plots()
Make plot demonstrating how the wisp function is determined by the Rt, slope, and tpoint parameters

Analysis functions

analyze_residuals()
Analyze residuals from wisp fit
sample_stats()
Estimate p-values and confidence intervals from resampled parameters

Benchmarking functions

attractor_simulation_ground_truth()
Function to extract ground-truth from attractor-based simulation made with the function attractor_simulation
attractor_simulation()
Function to simulate data using attractor-based spatial variability
model_attractor_simulation_wisp()
Function to model simulation with wisp
run_attractor_sim_benchmarks()
Function to run benchmarks on attractor-based simulations
analyze_attractor_sim_benchmarks()
Function to analyze benchmark results from attractor-based simulations

MERFISH preprocessing functions

make_count_data()
Load and parse data, HDF5
make_count_data_csv()
Load and parse data, csv
cortical_coordinate_transform()
Function to transform coordinates for each mouse and extract layer boundary estimates
create_count_data_WSPmm()
Function to convert to WSPmm format
create_count_data_WSPmm_allen()
Function to convert Allen-formatted MERFISH data to WSPmm format