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
  • /
  • hcn_dark_light.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:63dd63ab34cf9f51a8222e281588864ff0eda8b3
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_dark_light.m
clear all; close all;

filename_dark = 'filename.abf';
filename_light = 'filename.abf';

[samples_dark,period,f] = abfload(filename_dark);
[samples_light,period,f] = abfload(filename_light);

fsamp = 1/(period/1000000); 

current_dark = samples_dark(:,1);
current_light = samples_light(:,1);

current_dark = movmean(current_dark, 1);
current_light = movmean(current_light, 1);

voltage_step_trace = samples_dark(:,2);

%% Plot zoomed out current traces (dark vs. light) 

figure();
plot(current_dark(18000:180000),'k');
hold on;
plot(current_light(18000:180000),'b');
hold off;



%% Plot seal tests on top of each other (dark vs.light)

sealtest_start = 12914;
sealtest_end = 13684;

current_sealtest_dark = current_dark(sealtest_start:sealtest_end);
baseline_dark = mean(current_sealtest_dark(1:150));

current_sealtest_dark = current_sealtest_dark - baseline_dark;

current_sealtest_light = current_light(sealtest_start:sealtest_end);
baseline_light = mean(current_sealtest_light(1:150));

current_sealtest_light = current_sealtest_light - baseline_light;

figure();
plot(current_sealtest_dark, 'k');
hold on;
plot(current_sealtest_light, 'b');
hold off;

%% Tail current 

tc_start = 73467;
tc_end = 82545;

current_tc_dark = current_dark(73467:84012);
current_tc_light = current_light(73467:84012);

baseline_dark = mean(current_tc_dark(8000:10000));
baseline_light = mean(current_tc_light(8000:10000));

peak_dark = min(current_tc_dark);
peak_light = min(current_tc_light);

tc_amplitude_dark = baseline_dark - peak_dark
tc_amplitude_light = baseline_light - peak_light

current_tc_dark = current_tc_dark - baseline_dark;
current_tc_light = current_tc_light - baseline_light;

figure();
plot(current_tc_dark, 'k');
hold on;
plot(current_tc_light, 'b');
hold off;

%% Inward HCN current 
hc_start = 34040;
hc_end = 73295;

current_hc_dark = current_dark(34040:73295);
current_hc_light = current_light(34040:73295);

baseline_dark = mean(current_tc_dark(8000:10000));
baseline_light = mean(current_tc_light(8000:10000));

hc_dark = min(current_hc_dark);
hc_light = min(current_hc_light);

hc_amplitude_dark = baseline_dark - hc_dark
hc_amplitude_light = baseline_light - hc_light

%% Isolating the Ihold
figure();

ihold_dark = mean(current_dark(18000:28545))
ihold_light = mean(current_light(18000:28545))
ihold_delta = ihold_dark - ihold_light

plot(current_dark(18000:28545),'k');
hold on;
plot(current_light(18000:28545),'b');
hold off;

%% Figure for looking at whole trace 

current_darkfigure = current_dark(18000:180000);
current_lightfigure = current_light(18000:180000);

figure_baseline_dark = mean(current_darkfigure(1:10000));
figure_baseline_light = mean(current_lightfigure(1:10000));

current_darkfigure = current_darkfigure - figure_baseline_dark;
current_lightfigure = current_lightfigure - figure_baseline_light;

figure();
plot(current_darkfigure,'k');
hold on;
plot(current_lightfigure,'b');
hold off;

figure();
plot(voltage_step_trace(18000:180000));

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