OSCR

Huntingtin polyglutamine expansions misdirect axonal transport by perturbing motor and adaptor recruitment.

Code ↔ Paper

7 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 7 matches
  1. [1] § STAR★Methods › Quantification and statistical analysis › Flux analysis ↔ Organelle_motility_TrackMate/TrackMate_to_kymo_and_flux_v4.m, lines 112–195 · score 0.85 · somal side, distal side, trajectory entered, anterograde flux, retrograde flux, box width
  2. [2] § STAR★Methods › Quantification and statistical analysis › Flux analysis ↔ Organelle_motility_KymoButler/TrackMate_to_kymo_and_flux_v4_KB.m, lines 138–223 · score 0.84 · somal side, distal side, trajectory entered, anterograde flux, retrograde flux, box width
  3. [3] § Results › Pathogenic HTT-polyQ increases the fraction of anterograde-directed lysosomes ↔ Organelle_motility_TrackMate/TrackMate_to_kymo_and_flux_v4.m, lines 112–195 · score 0.66 · somal side, soma side, distal side, KymoButler, TrackMate, exited
  4. [4] § Results › Pathogenic HTT-polyQ increases the fraction of anterograde-directed lysosomes ↔ Organelle_motility_KymoButler/TrackMate_to_kymo_and_colour_coded_flux_KB.m, lines 163–247 · score 0.64 · somal side, soma side, distal side, KymoButler, exited, flux
  5. [5] § STAR★Methods › Method details › Endosome immunofluorescence and imaging ↔ Organelle_motility_TrackMate/Plot_xk_yk_per_cell_stationary_track_v2.m, lines 305–383 · score 0.55 · Gaussian mixture, Gaussian fits, density, cell, fraction
  6. [6] § STAR★Methods › Method details › Endosome immunofluorescence and imaging ↔ Organelle_motility_KymoButler/Analyze_processive_motility_em_bstrp_4kchoose.m, lines 951–1035 · score 0.54 · Gaussian mixture, Gaussian fits, density
  7. [7] § STAR★Methods › Quantification and statistical analysis › TrackMate analysis parameters ↔ Organelle_motility_TrackMate/Analyze_Trackmate_motility_v2_em_master.m, lines 79–167 · score 0.50 · Weka Segmentation, TrackMate, mitochondria, trajectories, cargoes

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 573 lines · 33 KB · no license · 2 matches

  1. %% Emily Prowse 20230519
  2. %This code turns trackmate trajectories into kymographs and calculates the
  3. %flux of a in either direction within a 2 um box. See the flux section to
  4. %understand exactly how it's calculated.
  5. %Note: if you're planning to use the kymograph function, do not perform
  6. %this for all trajectories-your computer will be mad. change the maximum
  7. %kd to a maximum of 10 and k to a maximum of 5, only run one condition
  8. %(k_choose) at a time. You'll have to comment out the figures at the end
  9. %and the variables that generate them.
  10. clear all;
  11. close all;
  12. clc;
  13. addpath('/Volumes/Emily_htt_2/New_General_codes/');
  14. addpath('/Users/emilyprowse/Documents/McGill/Hendricks_Lab/Analysis/New_General_codes/raacampbell-notBoxPlot-7d90c27/code/+NBP/')
  15. addpath('/Users/emilyprowse/Documents/McGill/Hendricks_Lab/Analysis/violin/');
  16. colour_30Q=[0.5 0.5 0.5];
  17. colour_45Q=[0.75 0 0];
  18. colour_65Q=[0.5 0 0];
  19. colour_81Q=[0.25 0 0];
  20. % colour_30Q=[0.5 0.5 0.5]; %30Q
  21. % colour_45Q=[0.5 0.6 0.6]; %30Q IFg
  22. % colour_65Q=[0.25 0 0]; %81Q
  23. % colour_81Q=[0.25 0.1 0.1]; %81Q IFg
  24. count_stays_in_box=0;
  25. count_ant_exits=0;
  26. count_ret_exits=0;
  27. count_entered_ant=0;
  28. count_entered_ret=0;
  29. count_did_not_enter=0;
  30. count_started_in=0;
  31. count_ent_then_stop=0;
  32. Mot_file='*.mat';
  33. DT=0.12; % single channel exposure time 120ms
  34. % save_dir='/Volumes/Emily_htt_2/Neuron/mito_flux/';
  35. save_dir='/Volumes/Emily_htt_2/Neuron/lyso_flux/';
  36. % save_dir='/Volumes/Emily_htt_2/Neuron/bdnf_flux/';
  37. %% Variables defined
  38. for k_choose = 1:4
  39. if k_choose == 1 % 30Q
  40. cd('/Volumes/Emily_htt_2/Neuron/isoHD30Q/30Q_lyso_mats/');
  41. % cd('/Volumes/Emily_htt_2/Neuron/isoHD30Q/30Q_bdnf_mats/');
  42. % cd('/Volumes/Emily_htt_2/Neuron/isoHD30Q/30Q_mito_mats/');
  43. % cd('/Volumes/Emily_2022/Fake_TM_flux_test_mat/');
  44. elseif k_choose == 2 % 45Q
  45. cd('/Volumes/Emily_htt_2/Neuron/isoHD45Q/45Q_lyso_mats/');
  46. % cd('/Volumes/Emily_htt_2/Neuron/isoHD30Q/30Q_lyso_Ifg_mats/');
  47. % cd('/Volumes/Emily_htt_2/Neuron/isoHD30Q/30Q_bdnf_IFg_mats/');
  48. % cd('/Volumes/Emily_htt_2/Neuron/isoHD45Q/45Q_bdnf_mats/');
  49. % cd('/Volumes/Emily_htt_2/Neuron/isoHD45Q/45Q_mito_mats/');
  50. % cd('/Volumes/Emily_2022/Fake_TM_flux_test_mat/');
  51. elseif k_choose == 3 % 65Q
  52. cd('/Volumes/Emily_htt_2/Neuron/isoHD65Q/65Q_lyso_mats/');
  53. % cd('/Volumes/Emily_htt_2/Neuron/isoHD65Q/65Q_bdnf_mats/');
  54. % cd('/Volumes/Emily_htt_2/Neuron/isoHD65Q/65Q_mito_mats/');
  55. % cd('/Volumes/Emily_htt_2/Neuron/isoHD81Q/81Q_bdnf_mats/');
  56. % cd('/Volumes/Emily_htt_2/Neuron/isoHD81Q/81Q_lyso_mats/');
  57. % cd('/Volumes/Emily_2022/Fake_TM_flux_test_mat/');
  58. elseif k_choose == 4 % 81Q
  59. cd('/Volumes/Emily_htt_2/Neuron/isoHD81Q/81Q_lyso_mats/');
  60. % cd('/Volumes/Emily_htt_2/Neuron/isoHD81Q/81Q_lyso_IFg_mats/');
  61. % cd('/Volumes/Emily_htt_2/Neuron/isoHD81Q/81Q_bdnf_mats/');
  62. % cd('/Volumes/Emily_htt_2/Neuron/isoHD81Q/81Q_bdnf_IFg_mats/');
  63. % cd('/Volumes/Emily_htt_2/Neuron/isoHD81Q/81Q_mito_mats/');
  64. % cd('/Volumes/Emily_2022/Fake_TM_flux_test_mat/');
  65. end
  66. dat=[];
  67. dmot=dir(Mot_file); % Pick the trajectory files in .mat format
  68. count_stays_in_box=0;
  69. count_ant_exits=0;
  70. count_ret_exits=0;
  71. count_entered_ant=0;
  72. count_entered_ret=0;
  73. count_did_not_enter=0;
  74. count_started_in=0;
  75. count_ent_then_stop=0;
  76. n=0;
  77. for k=1:length(dmot) % k is a vector of length dmot
  78. display(k)
  79. load(dmot(k).name);%load everything in dmot
  80. [filepath,name,ext] = fileparts(dmot(k).name);
  81. display(dmot(k).name); % display
  82. cmap = colormap(lines(100000));
  83. Ndat=numel(ab); %comment out for kymobutler
  84. % Ndat=numel(kbpos);
  85. kp=0;
  86. for kd=1:Ndat
  87. kp=kp+1;
  88. x_position=ab(kd).xk;%x position (um) %comment out for kymobutler
  89. y_position=ab(kd).yk;%y position (um) %comment out for kymobutler
  90. t_position=ab(kd).tk;% Time (s) %comment out for kymobutler
  91. origin_x=ab(kd).origin_x; %comment out for kymobutler
  92. origin_y=ab(kd).origin_y; %comment out for kymobutler
  93. axon_length=ab(kd).axon_length; %comment out for kymobutler
  94. %create a 1D position coordinate from the x and y coordinates
  95. X0 = [origin_x origin_y]; %cell center position [x y] %, comment out for kymobutler
  96. r0{kd} = sqrt((x_position-X0(1)).^2 + (y_position-X0(2)).^2); % comment out for kymobutler
  97. %plotting kymograph from trackmate positons
  98. % time{kd}=t_position;k_
  99. % figure(k*10) %Plotting the kymograph
  100. % plot(r0{kd}, time{kd},'-','Color',cmap(kd,:),'linewidth',2)
  101. % xlabel('Position (\mum)'), ylabel('Time (s)'), hold on
  102. % xlim([0,axon_length]);
  103. % set(gca,'Ydir','reverse')
  104. %flux analysis: how many trajectories cross a 2um box in the middle of the axon?
  105. position=r0{kd}; %without kymobutler
  106. % t_position=kbpos(kd).tk;% Time (s)
  107. % position=kbpos(kd).position; %with kymobutler
  108. for it=1:5
  109. ax_seg=(axon_length*it)/5-2; %segment of the axon
  110. box_width=0.5; %We want to look +/- box_width from the middle of the axon
  111. if any(position >= ax_seg-box_width & position <= ax_seg+box_width) %is it in the box?
  112. n=n+1;%count how many fulfill this condition
  113. idx_enters=min(find(position >= ax_seg-box_width & position <= ax_seg+box_width)); %what is the index of the earliest timepoint that the position enters the box
  114. if idx_enters==1
  115. count_started_in(it)=1;
  116. traj_starts_in_box=position(1)>= ax_seg-box_width & position(1) <=ax_seg+box_width; %does it start in the box?
  117. traj_enters_box_ret=0; %position(1) < mid_length-box_width %does it enter from the somal side?
  118. traj_enters_box_ant=0; %position(1) > mid_length+box_width %does it enter from the distal side?
  119. else
  120. traj_enters_box_ret=position(idx_enters-1) < ax_seg-box_width; %does it enter from the somal side?
  121. traj_enters_box_ant=position(idx_enters-1) > ax_seg+box_width; %does it enter from the distal side?
  122. end
  123. if traj_enters_box_ret ==1 %the trajectory actually entered from the retrograde side
  124. count_entered_ret(it)=1;
  125. % traj_exits_box=max(find(position(idx_enters:end)+ box_width> mid_length-box_width | position(idx_enters:end) < mid_length-box_width));
  126. traj_exits_box_ret=position(end) < ax_seg-box_width; %what is the index of the latest timepoint that the position exits the box
  127. traj_exits_box_ant=position(end) > ax_seg+box_width; %what is the index of the latest timepoint that the position exits the box
  128. % traj_stays_in_box=all(position(idx_enters:end)> mid_length-box_width & position(idx_enters:end)<mid_length+box_width);
  129. traj_ent_then_stop=all(position(end)>= ax_seg-box_width & position(end) <=ax_seg+box_width);
  130. if any(traj_exits_box_ret)
  131. count_ret_exits(it)=1;
  132. elseif any(traj_exits_box_ant)
  133. count_ant_exits(it)=1;
  134. elseif any(traj_ent_then_stop)
  135. % count_ent_then_stop=count_ent_then_stop+1; %counting this as a separate case
  136. count_ant_exits(it)=1; %counting the ones that entered from the soma side as anterograde flux
  137. end
  138. elseif traj_enters_box_ant==1 %the trajectory entered the box from the anterograde side
  139. count_entered_ant(it)=1;
  140. % traj_exits_box=max(find(position(idx_enters:end)+ box_width> mid_length-box_width | position(idx_enters:end) < mid_length-box_width));
  141. traj_exits_box_ret=position(end) < ax_seg-box_width; %did it exit on the soma side?
  142. traj_exits_box_ant=position(end) > ax_seg+box_width; %did it exit on the distal side?
  143. % traj_stays_in_box=all(position(idx_enters:end)> mid_length-box_width & position(idx_enters:end)<mid_length+box_width);
  144. traj_ent_then_stop=all(position(end)>= ax_seg-box_width & position(end) <=ax_seg+box_width);
  145. if any(traj_exits_box_ret)
  146. count_ret_exits(it)=1;
  147. elseif any(traj_exits_box_ant)
  148. count_ant_exits(it)=1;
  149. elseif any(traj_ent_then_stop)
  150. % count_ent_then_stop=count_ent_then_stop+1; %counting this as a separate case
  151. count_ret_exits(it)=1; %counting those that enter from the distal side as retrograde flux
  152. end
  153. elseif traj_starts_in_box==1
  154. % count_started_in=count_started_in+1; % was double counted
  155. % traj_exits_box=max(find(position(idx_enters:end)+ box_width> mid_length-box_width | position(idx_enters:end) < mid_length-box_width));
  156. traj_exits_box_ret=position(end) < ax_seg-box_width; %did it exit on the soma side?
  157. traj_exits_box_ant=position(end) > ax_seg+box_width; %did it exit on the distal side?
  158. traj_stays_in_box=all(position(end)>= ax_seg-box_width & position(end) <=ax_seg+box_width);
  159. if any(traj_exits_box_ret)
  160. count_ret_exits(it)=1;
  161. elseif any(traj_exits_box_ant)
  162. count_ant_exits(it)=1;
  163. elseif any(traj_stays_in_box)
  164. count_stays_in_box(it)=1;
  165. end
  166. end
  167. else
  168. count_did_not_enter(it)=1;
  169. clear traj_starts_in_box traj_enters_box_ret traj_enters_box_ant
  170. end
  171. %the below variables are not used, since it is rare to find a
  172. %trajectory in a given box, we add together all the segments in the
  173. %trajectory and reset the counts after each trajectory.
  174. % count_entered_ant_tot=sum(count_entered_ant)
  175. % total_enters_per_seg_calc(it)=(count_entered_ant+count_entered_ret+count_started_in);
  176. % frac_ant_exits_per_seg_calc(it)=count_ant_exits/total_enters_per_seg_calc(it);
  177. % frac_ret_exits_per_seg_calc(it)=count_ret_exits/total_enters_per_seg_calc(it);
  178. % frac_stays_in_per_seg_calc(it)=count_stays_in_box/total_enters_per_seg_calc(it);
  179. % frac_ant_enter_per_seg_calc(it)=count_entered_ant/total_enters_per_seg_calc(it);
  180. % frac_ret_enter_per_seg_calc(it)=count_entered_ret/total_enters_per_seg_calc(it);
  181. % frac_starts_in_per_seg_calc(it)=count_started_in/total_enters_per_seg_calc(it);
  182. end
  183. count_entered_ret_tot=sum(count_entered_ret);
  184. count_entered_ant_tot=sum(count_entered_ant);
  185. count_started_in_tot=sum(count_started_in);
  186. count_ant_exits_tot=sum(count_ant_exits);
  187. count_ret_exits_tot=sum(count_ret_exits);
  188. count_stays_in_box_tot=sum(count_stays_in_box);
  189. % tot_enters_per_traj(kd)=count_entered_ant_tot+count_entered_ret_tot+count_started_in_tot;
  190. % tot_frac_ant_exits_per_traj(kd)=count_ant_exits_tot/tot_enters_per_traj(kd);
  191. % tot_frac_ret_exits_per_traj(kd)=count_ret_exits_tot/tot_enters_per_traj(kd);
  192. % tot_frac_stays_in_per_traj(kd)=count_stays_in_box_tot/tot_enters_per_traj(kd);
  193. % tot_frac_ant_enter_per_traj(kd)=count_entered_ant_tot/tot_enters_per_traj(kd);
  194. % tot_frac_ret_enter_per_traj(kd)=count_entered_ret_tot/tot_enters_per_traj(kd);
  195. % tot_frac_starts_in_per_traj(kd)=count_started_in_tot/tot_enters_per_traj(kd);
  196. tot_ant_exits_per_traj(kd)=count_ant_exits_tot;
  197. tot_ret_exits_per_traj(kd)=count_ret_exits_tot;
  198. tot_stays_in_per_traj(kd)=count_stays_in_box_tot;
  199. tot_ant_enter_per_traj(kd)=count_entered_ant_tot;
  200. tot_ret_enter_per_traj(kd)=count_entered_ret_tot;
  201. tot_starts_in_per_traj(kd)=count_started_in_tot;
  202. count_entered_ant=0; %reset these values so it actually counts each trajectory separately. Updated 20230814.
  203. count_ret_exits=0;
  204. count_ant_exits=0;
  205. count_stays_in_box=0;
  206. count_entered_ret=0;
  207. count_started_in=0;
  208. end
  209. tot_enters_per_cell{k}=sum(tot_ant_enter_per_traj)+sum(tot_ret_enter_per_traj)+sum(tot_starts_in_per_traj);
  210. tot_ant_exits_per_cell{k}=sum(tot_ant_exits_per_traj);
  211. tot_ret_exits_per_cell{k}=sum(tot_ret_exits_per_traj);
  212. tot_stays_in_per_cell{k}=sum(tot_stays_in_per_traj);
  213. tot_ant_enter_per_cell{k}=sum(tot_ant_enter_per_traj);
  214. tot_ret_enter_per_cell{k}=sum(tot_ret_enter_per_traj);
  215. tot_starts_in_per_cell{k}=sum(tot_starts_in_per_traj);
  216. frac_ant_exits_per_cell{k}=sum(tot_ant_exits_per_traj)./tot_enters_per_cell{k};
  217. frac_ret_exits_per_cell{k}=sum(tot_ret_exits_per_traj)./tot_enters_per_cell{k};
  218. frac_stays_in_per_cell{k}=sum(tot_stays_in_per_traj)./tot_enters_per_cell{k};
  219. frac_ant_enter_per_cell{k}=sum(tot_ant_enter_per_traj)./tot_enters_per_cell{k};
  220. frac_ret_enter_per_cell{k}=sum(tot_ret_enter_per_traj)./tot_enters_per_cell{k};
  221. frac_starts_in_per_cell{k}=sum(tot_starts_in_per_traj)./tot_enters_per_cell{k};
  222. clear axon_length x_position X0 y_position t_position_actual t_position
  223. tot_ant_exits_per_traj=[];
  224. tot_ret_exits_per_traj=[];
  225. tot_stays_in_per_traj=[];
  226. tot_ant_enter_per_traj=[];
  227. tot_ret_enter_per_traj=[];
  228. tot_starts_in_per_traj=[];
  229. end
  230. tot_enters_per_cell_mat=cell2mat(tot_enters_per_cell);
  231. frac_ant_enter_per_cell_mat=cell2mat(frac_ant_enter_per_cell);
  232. frac_ret_enter_per_cell_mat=cell2mat(frac_ret_enter_per_cell);
  233. frac_starts_in_per_cell_mat=cell2mat(frac_starts_in_per_cell);
  234. frac_ant_exits_per_cell_mat=cell2mat(frac_ant_exits_per_cell);
  235. frac_ret_exits_per_cell_mat=cell2mat(frac_ret_exits_per_cell);
  236. frac_stays_in_per_cell_mat=cell2mat(frac_stays_in_per_cell);
  237. tot_enters_per_cell_value_mat=cell2mat(tot_enters_per_cell);
  238. tot_enters_per_cell_all_conds{k_choose}=tot_enters_per_cell_mat;
  239. frac_ant_enter_per_cell_all_conds{k_choose}=frac_ant_enter_per_cell_mat;
  240. frac_ret_enter_per_cell_all_conds{k_choose}=frac_ret_enter_per_cell_mat;
  241. frac_starts_in_per_cell_all_conds{k_choose}=frac_starts_in_per_cell_mat;
  242. frac_ant_exits_per_cell_all_conds{k_choose}=frac_ant_exits_per_cell_mat;
  243. frac_ret_exits_per_cell_all_conds{k_choose}=frac_ret_exits_per_cell_mat;
  244. frac_stays_in_per_cell_all_conds{k_choose}=frac_stays_in_per_cell_mat;
  245. total_enters_per_cell_value_all_conds{k_choose}=tot_enters_per_cell_value_mat;
  246. mean_total_enters_per_cell_all_conds{k_choose}=mean(tot_enters_per_cell_mat,"omitnan");
  247. mean_frac_ant_enter_per_cell_all_conds{k_choose}=mean(frac_ant_enter_per_cell_mat,"omitnan");
  248. mean_frac_ret_enter_per_cell_all_conds{k_choose}=mean(frac_ret_enter_per_cell_mat,"omitnan");
  249. mean_frac_starts_in_per_cell_all_conds{k_choose}=mean(frac_starts_in_per_cell_mat,"omitnan");
  250. mean_frac_ant_exits_per_cell_all_conds{k_choose}=mean(frac_ant_exits_per_cell_mat,"omitnan");
  251. mean_frac_ret_exits_per_cell_all_conds{k_choose}=mean(frac_ret_exits_per_cell_mat,"omitnan");
  252. mean_frac_stays_in_per_cell_all_conds{k_choose}=mean(frac_stays_in_per_cell_mat,"omitnan");
  253. avg_total_entered(k_choose)=mean(tot_enters_per_cell_mat,"omitnan");
  254. avg_entered_ant(k_choose)=mean(frac_ant_enter_per_cell_mat,"omitnan");
  255. avg_entered_ret(k_choose)=mean(frac_ret_enter_per_cell_mat,"omitnan");
  256. avg_starts_in(k_choose)=mean(frac_starts_in_per_cell_mat,"omitnan");
  257. avg_exits_ant(k_choose)=mean(frac_ant_exits_per_cell_mat,"omitnan");
  258. avg_exits_ret(k_choose)=mean(frac_ret_exits_per_cell_mat,"omitnan");
  259. avg_stays_in(k_choose)=mean(frac_stays_in_per_cell_mat,"omitnan");
  260. sem_total_entered(k_choose)=std(tot_enters_per_cell_mat,"omitnan")/(sqrt(length(tot_enters_per_cell_mat)));
  261. sem_entered_ant(k_choose)=std(frac_ant_enter_per_cell_mat,"omitnan")/(sqrt(length(frac_ant_enter_per_cell_mat)));
  262. sem_entered_ret(k_choose)=std(frac_ret_enter_per_cell_mat,"omitnan")/(sqrt(length(frac_ret_enter_per_cell_mat)));
  263. sem_starts_in(k_choose)=std(frac_starts_in_per_cell_mat,"omitnan")/(sqrt(length(frac_starts_in_per_cell_mat)));
  264. sem_exits_ant(k_choose)=std(frac_ant_exits_per_cell_mat,"omitnan")/(sqrt(length(frac_ant_exits_per_cell_mat)));
  265. sem_exits_ret(k_choose)=std(frac_ret_exits_per_cell_mat,"omitnan")/(sqrt(length(frac_ret_exits_per_cell_mat)));
  266. sem_stays_in(k_choose)=std(frac_stays_in_per_cell_mat,"omitnan")/(sqrt(length(frac_stays_in_per_cell_mat)));
  267. save([save_dir, 'total_enters_1um'],'tot_enters_per_cell_all_conds');
  268. save([save_dir, 'frac_ant_ent_1um'],'frac_ant_enter_per_cell_all_conds');
  269. save([save_dir, 'frac_ret_ent_1um'],'frac_ret_enter_per_cell_all_conds');
  270. save([save_dir, 'start_in_1um'],'frac_starts_in_per_cell_all_conds');
  271. save([save_dir, 'frac_ant_ex_1um'],'frac_ant_exits_per_cell_all_conds');
  272. save([save_dir, 'frac_ret_ex_1um'],'frac_ret_exits_per_cell_all_conds');
  273. save([save_dir, 'frac_stay_in_1um'],'frac_stays_in_per_cell_all_conds');
  274. tot_enters_per_cell=[];
  275. tot_ant_exits_per_cell=[];
  276. tot_ret_exits_per_cell=[];
  277. tot_stays_in_per_cell=[];
  278. tot_ant_enter_per_cell=[];
  279. tot_ret_enter_per_cell=[];
  280. tot_starts_in_per_cell=[];
  281. frac_ant_exits_per_cell=[];
  282. frac_ret_exits_per_cell=[];
  283. frac_stays_in_per_cell=[];
  284. frac_ant_enter_per_cell=[];
  285. frac_ret_enter_per_cell=[];
  286. frac_starts_in_per_cell=[];
  287. end
  288. figure('Name','ant_ret_stat_exit_bar','NumberTitle','off'), hold on, %4 conditions
  289. exit_fractions=[avg_exits_ant(1) avg_exits_ant(2) avg_exits_ant(3) avg_exits_ant(4); avg_exits_ret(1) avg_exits_ret(2) avg_exits_ret(3) avg_exits_ret(4); avg_stays_in(1) avg_stays_in(2) avg_stays_in(3) avg_stays_in(4)];
  290. exit_err_bars=[sem_exits_ant(1) sem_exits_ant(2) sem_exits_ant(3) sem_exits_ant(4); sem_exits_ret(1) sem_exits_ret(2) sem_exits_ret(3) sem_exits_ret(4); sem_stays_in(1) sem_stays_in(2) sem_stays_in(3) sem_stays_in(4)];
  291. b1=bar(exit_fractions,'grouped');
  292. b1(1).FaceColor=colour_30Q;
  293. b1(2).FaceColor=colour_45Q;
  294. b1(3).FaceColor=colour_65Q;
  295. b1(4).FaceColor=colour_81Q;
  296. b1(1).FaceAlpha=0.5;
  297. b1(2).FaceAlpha=0.5;
  298. b1(3).FaceAlpha=0.5;
  299. b1(4).FaceAlpha=0.5;
  300. hold on
  301. scatter(0.7273-0.02+0.05*rand(numel(frac_ant_exits_per_cell_all_conds{1}),1),frac_ant_exits_per_cell_all_conds{1},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_30Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  302. scatter(0.9091-0.02+0.05*rand(numel(frac_ant_exits_per_cell_all_conds{2}),1),frac_ant_exits_per_cell_all_conds{2},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_45Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  303. scatter(1.0909-0.02+0.05*rand(numel(frac_ant_exits_per_cell_all_conds{3}),1),frac_ant_exits_per_cell_all_conds{3},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_65Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  304. scatter(1.2727-0.02+0.05*rand(numel(frac_ant_exits_per_cell_all_conds{4}),1),frac_ant_exits_per_cell_all_conds{4},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_81Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  305. scatter(1.7273-0.02+0.05*rand(numel(frac_ret_exits_per_cell_all_conds{1}),1),frac_ret_exits_per_cell_all_conds{1},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_30Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  306. scatter(1.9091-0.02+0.05*rand(numel(frac_ret_exits_per_cell_all_conds{2}),1),frac_ret_exits_per_cell_all_conds{2},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_45Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  307. scatter(2.0909-0.02+0.05*rand(numel(frac_ret_exits_per_cell_all_conds{3}),1),frac_ret_exits_per_cell_all_conds{3},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_65Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  308. scatter(2.2727-0.02+0.05*rand(numel(frac_ret_exits_per_cell_all_conds{4}),1),frac_ret_exits_per_cell_all_conds{4},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_81Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  309. scatter(2.7273-0.02+0.05*rand(numel(frac_stays_in_per_cell_all_conds{1}),1),frac_stays_in_per_cell_all_conds{1},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_30Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  310. scatter(2.9091-0.02+0.05*rand(numel(frac_stays_in_per_cell_all_conds{2}),1),frac_stays_in_per_cell_all_conds{2},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_45Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  311. scatter(3.0909-0.02+0.05*rand(numel(frac_stays_in_per_cell_all_conds{3}),1),frac_stays_in_per_cell_all_conds{3},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_65Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  312. scatter(3.2727-0.02+0.05*rand(numel(frac_stays_in_per_cell_all_conds{4}),1),frac_stays_in_per_cell_all_conds{4},25,'MarkerFaceColor','none','MarkerEdgeColor',colour_81Q,'MarkerEdgeAlpha',0.5,'LineWidth',2);
  313. hold on
  314. [ngroups,nbars]= size(exit_fractions);
  315. groupwidth= min(0.8, nbars/(nbars + 1.5));
  316. % Based on barweb.m by Bolu Ajiboye from MATLAB File Exchange
  317. for i = 1:nbars
  318. % Calculate center of each bar
  319. x = (1:ngroups) - groupwidth/2 + (2*i-1) * groupwidth / (2*nbars);
  320. errorbar(x, exit_fractions (:,i), exit_err_bars (:,i), 'k', 'linestyle', 'none','LineWidth',2);
  321. end
  322. xticks([1 2 3]);
  323. xticklabels({'Anterograde flux', 'Retrograde flux','Stationary'});
  324. ylabel('Fraction of Cargoes that enter the box');
  325. publication_fig(0,0,1);
  326. figure('Name','ant_ret_stat_entry_bar','NumberTitle','off'), hold on, %4 conditions
  327. enter_fractions=[avg_entered_ant(1) avg_entered_ant(2) avg_entered_ant(3) avg_entered_ant(4); avg_entered_ret(1) avg_entered_ret(2) avg_entered_ret(3) avg_entered_ret(4); avg_starts_in(1) avg_starts_in(2) avg_starts_in(3) avg_starts_in(4)];
  328. enter_err_bars=[sem_entered_ant(1) sem_entered_ant(2) sem_entered_ant(3) sem_entered_ant(4); sem_entered_ret(1) sem_entered_ret(2) sem_entered_ret(3) sem_entered_ret(4); sem_starts_in(1) sem_starts_in(2) sem_starts_in(3) sem_starts_in(4)];
  329. b2=bar(enter_fractions,'grouped');
  330. b2(1).FaceColor=colour_30Q;
  331. b2(2).FaceColor=colour_45Q;
  332. b2(3).FaceColor=colour_65Q;
  333. b2(4).FaceColor=colour_81Q;
  334. b2(1).FaceAlpha=0.5;
  335. b2(2).FaceAlpha=0.5;
  336. b2(3).FaceAlpha=0.5;
  337. b2(4).FaceAlpha=0.5;
  338. hold on
  339. [ngroups,nbars]= size(enter_fractions);
  340. groupwidth= min(0.8, nbars/(nbars + 1.5));
  341. % Based on barweb.m by Bolu Ajiboye from MATLAB File Exchange
  342. for i = 1:nbars
  343. % Calculate center of each bar
  344. x = (1:ngroups) - groupwidth/2 + (2*i-1) * groupwidth / (2*nbars);
  345. errorbar(x, enter_fractions (:,i), enter_err_bars (:,i), 'k', 'linestyle', 'none','LineWidth',2);
  346. end
  347. xticks([1 2 3]);
  348. xticklabels({'Anterograde flux', 'Retrograde flux','Stationary'});
  349. ylabel('Fraction of Cargoes that enter the box');
  350. publication_fig(0,0,1);
  351. xticks([1 2 3]);
  352. xticklabels({'Somal Entry', 'Distal Entry','Started In'});
  353. ylabel('Fraction of Cargoes that enter the box');
  354. publication_fig(0,0,1);
  355. figure('Name','ant_vs_ret_entry','NumberTitle','off'), hold on, %4 conditions
  356. ant_vs_ret_fractions=[avg_entered_ant(1)/avg_entered_ret(1) avg_entered_ant(2)/avg_entered_ret(2) avg_entered_ant(3)/avg_entered_ret(3) avg_entered_ant(4)/avg_entered_ret(4)];
  357. b3=bar(ant_vs_ret_fractions);
  358. xticklabels({'30Q','45Q', '65Q', '81Q'});
  359. % xticklabels({'30Q','30Q IFγ', '81Q', '81Q IFγ'});
  360. ylabel('Anterograde/Retrograde Flux Entry');
  361. publication_fig(0,0,1);
  362. figure('Name','ant_vs_ret_exit','NumberTitle','off'), hold on, %4 conditions
  363. ant_vs_ret_fractions=[avg_exits_ant(1)/avg_exits_ret(1) avg_exits_ant(2)/avg_exits_ret(2) avg_exits_ant(3)/avg_exits_ret(3) avg_exits_ant(4)/avg_exits_ret(4)];
  364. b3=bar(ant_vs_ret_fractions);
  365. xticklabels({'30Q','45Q', '65Q', '81Q'});
  366. % xticklabels({'30Q','30Q IFγ', '81Q', '81Q IFγ'});
  367. ylabel('Anterograde/Retrograde Flux Exit');
  368. publication_fig(0,0,1);
  369. figure('Name','total_entered','NumberTitle','off'), hold on, %4 conditions
  370. scatter(1-0.125+0.25*rand(numel(total_enters_per_cell_value_all_conds{1}),1),total_enters_per_cell_value_all_conds{1},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2), hold on;
  371. scatter(2-0.125+0.25*rand(numel(total_enters_per_cell_value_all_conds{2}),1),total_enters_per_cell_value_all_conds{2},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  372. scatter(3-0.125+0.25*rand(numel(total_enters_per_cell_value_all_conds{3}),1),total_enters_per_cell_value_all_conds{3},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  373. scatter(4-0.125+0.25*rand(numel(total_enters_per_cell_value_all_conds{4}),1),total_enters_per_cell_value_all_conds{4},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  374. plot(1,mean(total_enters_per_cell_value_all_conds{1},"omitnan"),'k_','MarkerSize',30);
  375. plot(2,mean(total_enters_per_cell_value_all_conds{2},"omitnan"),'k_','MarkerSize',30);
  376. plot(3,mean(total_enters_per_cell_value_all_conds{3},"omitnan"),'k_','MarkerSize',30);
  377. plot(4,mean(total_enters_per_cell_value_all_conds{4},"omitnan"),'k_','MarkerSize',30);
  378. xlim([0 5]);
  379. xticks([1 2 3 4]);
  380. publication_fig(0,0,1);
  381. hFig=findall(0,'type','figure');
  382. hLeg=findobj(hFig(1,1),'type','legend');
  383. set(hLeg,'visible','off');
  384. xticklabels({'30Q','45Q', '65Q', '81Q'});
  385. % xticklabels({'30Q','30Q IFγ', '81Q', '81Q IFγ'});
  386. ylabel('Total Entered per cell');
  387. publication_fig(0,0,1);
  388. exit_all{1}=frac_ant_exits_per_cell_all_conds{1};
  389. exit_all{2}=frac_ant_exits_per_cell_all_conds{2};
  390. exit_all{3}=frac_ant_exits_per_cell_all_conds{3};
  391. exit_all{4}=frac_ant_exits_per_cell_all_conds{4};
  392. exit_all{5}=frac_ret_exits_per_cell_all_conds{1};
  393. exit_all{6}=frac_ret_exits_per_cell_all_conds{2};
  394. exit_all{7}=frac_ret_exits_per_cell_all_conds{3};
  395. exit_all{8}=frac_ret_exits_per_cell_all_conds{4};
  396. exit_all{9}=frac_stays_in_per_cell_all_conds{1};
  397. exit_all{10}=frac_stays_in_per_cell_all_conds{2};
  398. exit_all{11}=frac_stays_in_per_cell_all_conds{3};
  399. exit_all{12}=frac_stays_in_per_cell_all_conds{4};
  400. figure('Name','ant_ret_stat_exit_scatter','NumberTitle','off'), hold on,
  401. % violin(exit_all,'facecolor',[colour_30Q;colour_45Q;colour_65Q;colour_81Q;colour_30Q;colour_45Q;colour_65Q;colour_81Q;colour_30Q;colour_45Q;colour_65Q;colour_81Q],'facealpha',0.3,'edgecolor','k','mc','k','medc','k--');
  402. scatter(1-0.125+0.25*rand(numel(exit_all{1}),1),exit_all{1},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2);
  403. scatter(2-0.125+0.25*rand(numel(exit_all{2}),1),exit_all{2},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  404. scatter(3-0.125+0.25*rand(numel(exit_all{3}),1),exit_all{3},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  405. scatter(4-0.125+0.25*rand(numel(exit_all{4}),1),exit_all{4},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  406. scatter(6-0.125+0.25*rand(numel(exit_all{5}),1),exit_all{5},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2);
  407. scatter(7-0.125+0.25*rand(numel(exit_all{6}),1),exit_all{6},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  408. scatter(8-0.125+0.25*rand(numel(exit_all{7}),1),exit_all{7},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  409. scatter(9-0.125+0.25*rand(numel(exit_all{8}),1),exit_all{8},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  410. scatter(11-0.125+0.25*rand(numel(exit_all{9}),1),exit_all{9},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2);
  411. scatter(12-0.125+0.25*rand(numel(exit_all{10}),1),exit_all{10},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  412. scatter(13-0.125+0.25*rand(numel(exit_all{11}),1),exit_all{11},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  413. scatter(14-0.125+0.25*rand(numel(exit_all{12}),1),exit_all{12},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  414. plot(1,mean(exit_all{1},"omitnan"),'k_','MarkerSize',20);
  415. plot(2,mean(exit_all{2},"omitnan"),'k_','MarkerSize',20);
  416. plot(3,mean(exit_all{3},"omitnan"),'k_','MarkerSize',20);
  417. plot(4,mean(exit_all{4},"omitnan"),'k_','MarkerSize',20);
  418. plot(6,mean(exit_all{5},"omitnan"),'k_','MarkerSize',20);
  419. plot(7,mean(exit_all{6},"omitnan"),'k_','MarkerSize',20);
  420. plot(8,mean(exit_all{7},"omitnan"),'k_','MarkerSize',20);
  421. plot(9,mean(exit_all{8},"omitnan"),'k_','MarkerSize',20);
  422. plot(11,mean(exit_all{9},"omitnan"),'k_','MarkerSize',20);
  423. plot(12,mean(exit_all{10},"omitnan"),'k_','MarkerSize',20);
  424. plot(13,mean(exit_all{11},"omitnan"),'k_','MarkerSize',20);
  425. plot(14,mean(exit_all{12},"omitnan"),'k_','MarkerSize',20);
  426. xlim([0 15]);
  427. ylabel('Fraction that enter the box');
  428. publication_fig(0,0,1);
  429. hFig=findall(0,'type','figure');
  430. hLeg=findobj(hFig(1,1),'type','legend');
  431. set(hLeg,'visible','off');
  432. enter_all{1}=frac_ant_enter_per_cell_all_conds{1};
  433. enter_all{2}=frac_ant_enter_per_cell_all_conds{2};
  434. enter_all{3}=frac_ant_enter_per_cell_all_conds{3};
  435. enter_all{4}=frac_ant_enter_per_cell_all_conds{4};
  436. enter_all{5}=frac_ret_enter_per_cell_all_conds{1};
  437. enter_all{6}=frac_ret_enter_per_cell_all_conds{2};
  438. enter_all{7}=frac_ret_enter_per_cell_all_conds{3};
  439. enter_all{8}=frac_ret_enter_per_cell_all_conds{4};
  440. enter_all{9}=frac_stays_in_per_cell_all_conds{1};
  441. enter_all{10}=frac_stays_in_per_cell_all_conds{2};
  442. enter_all{11}=frac_stays_in_per_cell_all_conds{3};
  443. enter_all{12}=frac_stays_in_per_cell_all_conds{4};
  444. figure('Name','ant_ret_stat_entry_scatter','NumberTitle','off'), hold on,
  445. % violin(enter_all,'facecolor',[colour_30Q;colour_45Q;colour_65Q;colour_81Q;colour_30Q;colour_45Q;colour_65Q;colour_81Q;colour_30Q;colour_45Q;colour_65Q;colour_81Q],'facealpha',0.3,'edgecolor','k','mc','k','medc','k--');
  446. scatter(1-0.125+0.25*rand(numel(enter_all{1}),1),enter_all{1},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2);
  447. scatter(2-0.125+0.25*rand(numel(enter_all{2}),1),enter_all{2},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  448. scatter(3-0.125+0.25*rand(numel(enter_all{3}),1),enter_all{3},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  449. scatter(4-0.125+0.25*rand(numel(enter_all{4}),1),enter_all{4},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  450. scatter(6-0.125+0.25*rand(numel(enter_all{5}),1),enter_all{5},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2);
  451. scatter(7-0.125+0.25*rand(numel(enter_all{6}),1),enter_all{6},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  452. scatter(8-0.125+0.25*rand(numel(enter_all{7}),1),enter_all{7},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  453. scatter(9-0.125+0.25*rand(numel(enter_all{8}),1),enter_all{8},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  454. scatter(11-0.125+0.25*rand(numel(enter_all{9}),1),enter_all{9},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2);
  455. scatter(12-0.125+0.25*rand(numel(enter_all{10}),1),enter_all{10},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  456. scatter(13-0.125+0.25*rand(numel(enter_all{11}),1),enter_all{11},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  457. scatter(14-0.125+0.25*rand(numel(enter_all{12}),1),enter_all{12},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  458. plot(1,mean(enter_all{1},"omitnan"),'k_','MarkerSize',20);
  459. plot(2,mean(enter_all{2},"omitnan"),'k_','MarkerSize',20);
  460. plot(3,mean(enter_all{3},"omitnan"),'k_','MarkerSize',20);
  461. plot(4,mean(enter_all{4},"omitnan"),'k_','MarkerSize',20);
  462. plot(6,mean(enter_all{5},"omitnan"),'k_','MarkerSize',20);
  463. plot(7,mean(enter_all{6},"omitnan"),'k_','MarkerSize',20);
  464. plot(8,mean(enter_all{7},"omitnan"),'k_','MarkerSize',20);
  465. plot(9,mean(enter_all{8},"omitnan"),'k_','MarkerSize',20);
  466. plot(11,mean(enter_all{9},"omitnan"),'k_','MarkerSize',20);
  467. plot(12,mean(enter_all{10},"omitnan"),'k_','MarkerSize',20);
  468. plot(13,mean(enter_all{11},"omitnan"),'k_','MarkerSize',20);
  469. plot(14,mean(enter_all{12},"omitnan"),'k_','MarkerSize',20);
  470. xlim([0 15]);
  471. ylabel('Fraction that enter the box');
  472. publication_fig(0,0,1);
  473. hFig=findall(0,'type','figure');
  474. hLeg=findobj(hFig(1,1),'type','legend');
  475. set(hLeg,'visible','off');
  476. ant_vs_ret_all{1}=frac_ant_exits_per_cell_all_conds{1}./frac_ret_exits_per_cell_all_conds{1};
  477. ant_vs_ret_all{2}=frac_ant_exits_per_cell_all_conds{2}./frac_ret_exits_per_cell_all_conds{2};
  478. ant_vs_ret_all{3}=frac_ant_exits_per_cell_all_conds{3}./frac_ret_exits_per_cell_all_conds{3};
  479. ant_vs_ret_all{4}=frac_ant_exits_per_cell_all_conds{4}./frac_ret_exits_per_cell_all_conds{4};
  480. figure('Name','ant_vs_ret_scatter','NumberTitle','off'), hold on,
  481. scatter(1-0.125+0.25*rand(numel(ant_vs_ret_all{1}),1),ant_vs_ret_all{1},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_30Q,'LineWidth',2), hold on;
  482. scatter(2-0.125+0.25*rand(numel(ant_vs_ret_all{2}),1),ant_vs_ret_all{2},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_45Q,'LineWidth',2);
  483. scatter(3-0.125+0.25*rand(numel(ant_vs_ret_all{3}),1),ant_vs_ret_all{3},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_65Q,'LineWidth',2);
  484. scatter(4-0.125+0.25*rand(numel(ant_vs_ret_all{4}),1),ant_vs_ret_all{4},25,'MarkerFaceColor','none','MarkerEdgeAlpha',0.3,'MarkerEdgeColor',colour_81Q,'LineWidth',2);
  485. plot(1,mean(ant_vs_ret_all{1}(~isinf(ant_vs_ret_all{1})), "omitnan"),'k_','MarkerSize',30);
  486. plot(2,mean(ant_vs_ret_all{2}(~isinf(ant_vs_ret_all{2})), "omitnan"),'k_','MarkerSize',30);
  487. plot(3,mean(ant_vs_ret_all{3}(~isinf(ant_vs_ret_all{3})), "omitnan"),'k_','MarkerSize',30);
  488. plot(4,mean(ant_vs_ret_all{4}(~isinf(ant_vs_ret_all{4})), "omitnan"),'k_','MarkerSize',30);
  489. ylabel('Fraction anterograde/retrograde');
  490. xlim([0 5]);
  491. xticks([1 2 3 4]);
  492. xticklabels({'30Q','45Q', '65Q', '81Q'});
  493. % xticklabels({'30Q','30Q IFγ', '81Q', '81Q IFγ'});
  494. publication_fig(0,0,1);
  495. hFig=findall(0,'type','figure');
  496. hLeg=findobj(hFig(1,1),'type','legend');
  497. set(hLeg,'visible','off');
  498. fileprefix='20230904_isoHD_lyso_flux_1um_box';
  499. %
  500. % tempdir_1 = '/Users/emilyprowse/Documents/McGill/Hendricks_Lab/Analysis/Motility_Stats/'; % Your destination folder
  501. % FolderName_1 = tempdir_1; % Your destination folder
  502. %Saving stats to a table
  503. % stats_table=table(titles, rg_stats, alpha_stats,dirbias_stats, proc_stats, diff_stats, stat_stats);
  504. % writetable(stats_table,fullfile(FolderName_1, [fileprefix,'.csv']),'WriteRowNames',true);
  505. tempdir = '/Users/emilyprowse/Documents/McGill/Hendricks_Lab/Analysis/isoHD_Neuron_motility/'; % Your destination folder
  506. FolderName = tempdir; % Your destination folder
  507. FigList = findobj(allchild(0), 'flat', 'Type', 'figure');
  508. for iFig = 1:length(FigList)
  509. FigHandle = FigList(iFig);
  510. FigName = get(FigHandle, 'Name');
  511. savefig(FigHandle, fullfile(FolderName, [append(fileprefix,FigName), '.fig']));
  512. saveas(FigHandle, fullfile(FolderName, [append(fileprefix,FigName), '.png']));
  513. end

TrackMate_to_kymo_and_flux_v4.m at commit 6f57e0a, no license · at the source

Overview

Authors: Emily NP Prowse1, Brooke A Turkalj1, Muriel Sébastien1,2, Lale Gursu1, Daniel Beaudet1, Jia Feng3, Chengqian Zhou1, Heidi M McBride4, Gary J Brouhard2,5, Mahmoud A Pouladi3, Adam G Hendricks1,5
  1. Department of Bioengineering, McGill University, Montréal, QC, Canada
  2. Department of Biology, McGill University, Montréal, QC, Canada
  3. Department of Medical Genetics, University of British Columbia, Vancouver, BC, Canada
  4. Department of Neurology and Neurosurgery, Montreal Neurological Institute, McGill University, Montréal, QC, Canada
  5. Centre de Recherche en Biologie Structurale, McGill University, Montréal, QC, Canada
Journal: iScience, volume 29, issue 6, article 115748
Dates: received 10 April 2024; accepted 13 April 2026; published online 17 April 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1016/j.isci.2026.115748 · PMID 42181265 · PMCID PMC13194641 · OpenAlex W4394785919
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: cellular / molecular (subfield)
Methods: Statistics, Evoked potentials, fMRI & imaging, Smoothing, state filtering, decompositions
Keywords: Molecular network, Molecular neuroscience, Cellular neuroscience
Topic: Genetic Neurodegenerative Diseases (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: Canadian Institutes of Health Research; Natural Sciences and Engineering Research Council of Canada; Quebec Health Research Fund
Citations: not cited yet (Europe PMC); 73 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.

hendricks-lab/emily-codes

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: 6f57e0abe77a1ab2e09da46bb5c6023c589c09db, 30 April 2024
Languages: MATLAB (40)
Size: 47 files, 40 scripts
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
41 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 40 scripts, each with its path and the digest of its content;
  • 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • it points to the authors' code: hendricks-lab/emily-codes
  • it says that the data are available on request
  • it says that the code is available on request

Read it in the paper: doi.org/10.1016/j.isci.2026.115748.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 3 keywords, 3 funders, 72 references.

Cite

This paper

Prowse, E. N., Turkalj, B. A., Sébastien, M., Gursu, L., Beaudet, D., Feng, J., Zhou, C., McBride, H. M., Brouhard, G. J., Pouladi, M. A., & Hendricks, A. G. (2026). Huntingtin polyglutamine expansions misdirect axonal transport by perturbing motor and adaptor recruitment. iScience, 29(6), 115748. https://doi.org/10.1016/j.isci.2026.115748

BibTeX

@article{prowse2026huntingtin,
author = {Prowse, Emily NP and Turkalj, Brooke A and Sébastien, Muriel and Gursu, Lale and Beaudet, Daniel and Feng, Jia and Zhou, Chengqian and McBride, Heidi M and Brouhard, Gary J and Pouladi, Mahmoud A and Hendricks, Adam G},
title = {{Huntingtin polyglutamine expansions misdirect axonal transport by perturbing motor and adaptor recruitment}},
journal = {iScience},
year = {2026},
month = apr,
volume = {29},
number = {6},
pages = {115748},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/j.isci.2026.115748},
url = {https://doi.org/10.1016/j.isci.2026.115748},
pmid = {42181265},
pmcid = {PMC13194641}
}

RIS

TY - JOUR
AU - Prowse, Emily NP
AU - Turkalj, Brooke A
AU - Sébastien, Muriel
AU - Gursu, Lale
AU - Beaudet, Daniel
AU - Feng, Jia
AU - Zhou, Chengqian
AU - McBride, Heidi M
AU - Brouhard, Gary J
AU - Pouladi, Mahmoud A
AU - Hendricks, Adam G
TI - Huntingtin polyglutamine expansions misdirect axonal transport by perturbing motor and adaptor recruitment
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/04/17
VL - 29
IS - 6
SP - 115748
SN - 2589-0042
PB - Elsevier
DO - 10.1016/j.isci.2026.115748
UR - https://doi.org/10.1016/j.isci.2026.115748
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.isci.2026.115748",
"type": "article-journal",
"title": "Huntingtin polyglutamine expansions misdirect axonal transport by perturbing motor and adaptor recruitment",
"container-title": "iScience",
"author": [
{
"family": "Prowse",
"given": "Emily NP"
},
{
"family": "Turkalj",
"given": "Brooke A"
},
{
"family": "Sébastien",
"given": "Muriel"
},
{
"family": "Gursu",
"given": "Lale"
},
{
"family": "Beaudet",
"given": "Daniel"
},
{
"family": "Feng",
"given": "Jia"
},
{
"family": "Zhou",
"given": "Chengqian"
},
{
"family": "McBride",
"given": "Heidi M"
},
{
"family": "Brouhard",
"given": "Gary J"
},
{
"family": "Pouladi",
"given": "Mahmoud A"
},
{
"family": "Hendricks",
"given": "Adam G"
}
],
"container-title-short": "iScience",
"volume": "29",
"issue": "6",
"page": "115748",
"DOI": "10.1016/j.isci.2026.115748",
"PMID": "42181265",
"PMCID": "PMC13194641",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.isci.2026.115748",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
17
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.7554/elife.110011 [code]
Tau hyperphosphorylation impairs cooperative binding to microtubules and perturbs organelle trafficking in neurons.
Journal: eLife
In common: cellular / molecular, 4 references, author Adam G Hendricks
[2] doi:10.1126/sciadv.aeh7220 [code]
Central complex representations of self-movement are sufficient to compute wind direction in flight.
Journal: Science advances
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[3] doi:10.1016/j.isci.2026.117187 [code]
Functional and structural characterization of dendritic spine pathology in a mouse model of tauopathy.
Journal: iScience
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[4] doi:10.1523/jneurosci.2001-25.2026 [code]
Dynamics of Dentate Gyrus Place Cells and Dentate Spikes during Spatial and Nonspatial Changes in Environments.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[5] doi:10.1038/s41593-026-02357-2 [code]
Experience reorganizes content-specific memory traces in macaques.
Journal: Nature neuroscience
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[6] doi:10.1371/journal.pcbi.1014563 [code]
Single pulse electrical stimulation in white matter modulates iEEG visual responses in human early visual cortex.
Journal: PLoS computational biology
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[7] doi:10.3390/biomedicines14081670 [code]
Limited Detectability of Network Functional Alterations in a Tauopathy Model Using Mouse Primary Cortical Cultures.
Journal: Biomedicines
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[8] doi:10.1038/s41467-026-75347-4 [code]
Sleep reveals dynamics integrating and segregating movement and stimulus representations in V1.
Journal: Nature communications
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[9] doi:10.1016/j.celrep.2026.117646 [code]
Medial entorhinal-hippocampal desynchronization parallels the emergence of memory impairment in a mouse model of Alzheimer's disease pathology.
Journal: Cell reports
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool
[10] doi:10.1002/hbm.70602 [code]
Neuroimaging Correlates of Post-Stroke Pain After Ischemic Stroke: Secondary Analysis of the INSPiRE-TMS Trial.
Journal: Human brain mapping
In common: Curve Fitting Toolbox, Optimization Toolbox, Signal Processing Toolbox, 1 other tool

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.