Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/schmidtlab-northwestern/Contreras-2023-M2-Phototransduction
30 November 2023, 15:42:18 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    No releases to show
  • acc0a7b
  • /
  • ca2_currents.m
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge Iframe embedding
swh:1:cnt:af1cc2bd47785561aabec3b7626020ad337f9a76
origin badgedirectory badge Iframe embedding
swh:1:dir:acc0a7bfb0f36daf98f012a385d87fd4a1ae4721
origin badgerevision badge
swh:1:rev:08b85bafe51e5fc3bca8ef8ccffe350af1201db7
origin badgesnapshot badge
swh:1:snp:f0233b1446c2d99f25a9badb74ef17beb41df8b1
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 08b85bafe51e5fc3bca8ef8ccffe350af1201db7 authored by schmidtlab-northwestern on 16 October 2023, 21:22:05 UTC
Add files via upload
Tip revision: 08b85ba
ca2_currents.m
clear all; close all;

filename_control = 'filename.abf';
filename_ttap2 = 'filename.abf';

[samples_control,period,f] = abfload(filename_control);
[samples_ttap2,period,f] = abfload(filename_ttap2);

fsamp = 1/(period/1000000); 

current_control = samples_control(:,1,:);
current_ttap2 = samples_ttap2(:,1,:);

current_control = movmean(current_control, 1);
current_ttap2 = movmean(current_ttap2, 1);

%% Voltage command plot 

voltage_step_trace = samples_control(:,2,:);

figure();
plot(voltage_step_trace(:,:),'m')

%% Plot zoomed out current trace for Control
% It's in dimension 1 with current 

current_controlfigure = current_control(1:5902,:);

figure_baseline_current_control = mean(current_controlfigure(3798:4025,:));

current_controlfigure = current_controlfigure - figure_baseline_current_control;

figure();
plot(current_controlfigure(2912:3903,:),'k');

%% Plot zoomed out current trace for TTA-P2

current_ttap2figure = current_ttap2(1:5902,:);

figure_baseline_current_ttap2 = mean(current_ttap2figure(3798:4025,:));

current_ttap2figure = current_ttap2figure - figure_baseline_current_ttap2;

figure();
plot(current_ttap2figure(2912:3903,:),'m');

%% Plot zoomed out current trace for both Control and TTA-P2

figure();
plot(current_controlfigure(2970:4000,:),'k'); 
hold on;
plot(current_ttap2figure(2970:4000,:),'m');
hold off;

%% Control - TTA-P2

current_diff = current_controlfigure(:,:)- current_ttap2figure(:,:);

figure();
plot(current_diff(2912:3903,:),'c');

%% Measuring Amplitude Currents

current_c_control = current_control(3011:5902,:);
current_c_ttap2 = current_ttap2(3011:5902,:);
current_c_diff = current_diff(3011:5902,:);

baseline_control = mean(current_c_control(5102:6000));
baseline_state_ttap2 = mean(current_c_ttap2(5102:6000));
steady_state_diff = mean(current_c_diff(5102:6000));

peak_control = min(current_c_control);
peak_ttap2 = min(current_c_ttap2);
peak_diff = min(current_c_diff);

amplitude_control = baseline_control - peak_control
amplitude_ttap2 = baseline_state_ttap2 - peak_ttap2 
amplitude_diff = steady_state_diff - peak_diff

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top