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
    • 08b85bafe51e5fc3bca8ef8ccffe350af1201db7
    No releases to show
  • acc0a7b
  • /
  • hcn_iv_tail.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:36bc374a03ab5b83c5b825921884705144affcc4
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
hcn_iv_tail.m
clear all; close all;

filename_control = 'filename.abf';
filename_zd = 'filename.abf';

[samples_control,period,f] = abfload(filename_control);
[samples_zd,period,f] = abfload(filename_zd);

fsamp = 1/(period/1000000); 

current_control = samples_control(:,1,:);
current_zd = samples_zd(:,1,:);

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

%% Voltage command plot 
voltage_step_trace = samples_control(:,2,:);

figure();
plot(voltage_step_trace(10000:50000,:),'k')

%% Plot zoomed out current trace for Control

current_controlfigure = current_control(1:80000,:);

figure_baseline_current_control = mean(current_controlfigure(1888:5056,:));

current_controlfigure = current_controlfigure - figure_baseline_current_control;

figure();
plot(current_controlfigure(10000:50000,:),'k');

%% Plot zoomed out current trace for ZD7288

current_zdfigure = current_zd(1:80000,:);

figure_baseline_current_zd = mean(current_zdfigure(1888:5056,:));

current_zdfigure = current_zdfigure - figure_baseline_current_zd;

figure();
plot(current_zdfigure(10000:50000,:),'r');

%% Plot zoomed out current trace for both Control and ZD7288

figure();
plot(current_controlfigure(10000:50000,:),'k');
hold on;
plot(current_zdfigure(10000:50000,:),'r');
hold off;

%% Control - ZD7288

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

figure();
plot(current_diff(10000:50000,:),'b');

%% Measuring tail amplitude currents

current_tc_control = current_control(1:80000,:);
current_tc_zd = current_zd(1:80000,:);
current_tc_diff = current_diff(1:80000,:);

baseline_control = mean(current_tc_control(4045:10247,:));
baseline_zd = mean(current_tc_zd(4045:10247,:));
baseline_diff = mean(current_tc_diff(4045:10247,:));

peak_control = mean(current_tc_control(36395:49403,:));
peak_zd = mean(current_tc_zd(36395:49403,:));
peak_diff = mean(current_tc_diff(36395:49403,:));

tc_amplitude_control = baseline_control - peak_control 
tc_amplitude_zd = baseline_zd - peak_zd
tc_amplitude_diff = baseline_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