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/RaymondLab/Code
25 June 2024, 13:39:08 UTC
  • Code
  • Branches (12)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/Calibration
    • refs/heads/Calibration2
    • refs/heads/Master
    • refs/heads/VerticalTracking
    • refs/heads/code_generalization
    • refs/heads/consolidation_project_241B
    • refs/heads/local_configuration_241B
    • refs/heads/revert-2-consolidation_project_241B
    • refs/heads/rig241b_driftfix_sign
    • refs/heads/smr_to_smrx
    • refs/heads/tracking_dev
    • refs/tags/v1.0.0
    No releases to show
  • 32066d8
  • /
  • Projects
  • /
  • Ruth - Photometry Analysis
  • /
  • ruthDataPlotVisual3.m
Raw File Download Save again
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 ...

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
swh:1:cnt:fcfd3369b8de5d2f85ad94df09fa5923d288c1ff
origin badgedirectory badge
swh:1:dir:1cd73dafba7696cbdc6ded009e7ef03af4628044
origin badgerevision badge
swh:1:rev:f1bbec0954829ba566764dc99cbca5614c527a01
origin badgesnapshot badge
swh:1:snp:5000b5dcf61aa2cac987bbe6af9204d011668dda

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
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: f1bbec0954829ba566764dc99cbca5614c527a01 authored by Kellen Vu on 13 April 2023, 22:40:57 UTC
Merge branch 'VerticalTracking' of https://github.com/RaymondLab/Code into VerticalTracking
Tip revision: f1bbec0
ruthDataPlotVisual3.m
tic
%% open/read file and set up Environment
activateCEDS64
WAVELENGTH = 999;
file = 'Z:\1_Maxwell_Gagnon\ProjectData_Ruth\191217\191217_VSFP_Mouse_1_x2_VOR.smr';
fhand1 = CEDS64Open(file);

% Drum Position
[ ~, sineWave, ~ ] = CEDS64ReadWaveF(fhand1, 3, 600000000, 0);
% FLUOR Signal
[ ~, chan11, ~ ] = CEDS64ReadWaveF(fhand1, 11, 600000000, 0);
% FLOUR Signal
[ ~, chan12, ~ ] = CEDS64ReadWaveF(fhand1, 12, 600000000, 0);
         
segments = [930.15445210 969.83098830 1
            992.31735100 1029.8619466 1 
            1042.9677707 1084.8385133 1
            1085.9562587 1384.6236020 0 
            1402.9495546 1440.0079165 1
            1440.9634385 1739.9182796 0 
            1753.0031288 1794.8710889 1
            1796.0031261 2094.8435283 0
            2106.0245725 2149.8540037 1
            2151.0239975 2449.8290190 0
            2461.0247765 2504.9129316 1
            2506.0347693 2804.8608218 0
            2817.0392619 2860.1302735 1
            2861.0646947 3160.2033961 0
            3173.3433451 3214.9971012 1
            3237.4859525 3274.9658370 1
            3287.1091840 3329.8321359 1
            3642.1625700 3684.9957142 1
            ];


%% CYCLE THROUGH EACH SEGMENT       
for i = 1:length(segments)
    
    segStart = floor(segments(i,1) * 1000);
    segEnd = floor(segments(i,2) * 1000);
    waveCount = floor((segEnd - segStart) / WAVELENGTH);
    waveStart = segStart;
    
    % LIGHT
    if segments(i,3) == 0
        for j=1:waveCount
            % extract slices of data
            sineSlicesLIGHT(:,j) = sineWave(waveStart:(waveStart+WAVELENGTH));
            chan11SlicesLIGHT(:,j) = chan11(waveStart:(waveStart+WAVELENGTH));
            chan12SlicesLIGHT(:,j) = chan12(waveStart:(waveStart+WAVELENGTH));
            % update wave start time
            waveStart = waveStart + WAVELENGTH + 1;
        end
        
    % DARK 
    elseif segments(i,3) == 1
        for j=1:waveCount
            % extract slices of data
            sineSlicesDARK(:,j) = sineWave(waveStart:(waveStart+WAVELENGTH));
            chan11SlicesDARK(:,j) = chan11(waveStart:(waveStart+WAVELENGTH));
            chan12SlicesDARK(:,j) = chan12(waveStart:(waveStart+WAVELENGTH));
            % update wave start time
            waveStart = waveStart + WAVELENGTH + 1;
        end
    end
end

%% CHANNEL 11: Acceptor
%% SINEWAVES
% LIGHT
figure(1)
plot(sineSlicesLIGHT, 'b')
hold on
plot(mean(sineSlicesLIGHT,2), 'r')
title('LIGHT: Sinewaves Overlay')
% DARK
figure(2)
plot(sineSlicesDARK, 'k')
hold on
plot(mean(sineSlicesLIGHT,2), 'r')
title('DARK: Sinewaves Overlay')

%% Plot Overlays
% LIGHT
figure(3)
plot(chan11SlicesLIGHT, 'b')
hold on
plot(mean(chan11SlicesLIGHT,2), 'r')
title('LIGHT: Acceptor Overlay')
% DARK
figure(4)
plot(chan11SlicesDARK, 'k')
hold on
plot(mean(chan11SlicesDARK,2), 'r')
title('DARK: Acceptor Overlay')

%% Plot MEANS
% LIGHT
figure(5)
plot(mean(chan11SlicesLIGHT,2), 'b')
title('LIGHT: Acceptor Mean')
% DARK
figure(6)
plot(mean(chan11SlicesDARK,2), 'k')
title('DARK: Acceptor Mean')
% BOTH
figure(7)
plot(mean(chan11SlicesLIGHT,2), 'b')
hold on
plot(mean(chan11SlicesDARK,2), 'k')
title('DARK & LIGHT: Acceptor Means')

%% CHANNEL 12: DONOR
%% Plot Overlays
% LIGHT
figure(8)
plot(chan12SlicesLIGHT, 'b')
hold on
plot(mean(chan12SlicesLIGHT,2), 'r')
title('LIGHT: Donor Overlay')
% DARK
figure(9)
plot(chan12SlicesDARK, 'k')
hold on
plot(mean(chan12SlicesDARK,2), 'r')
title('DARK: Donor Overlay')

%% Plot MEANS
% LIGHT
figure(10)
plot(mean(chan12SlicesLIGHT,2), 'b')
title('LIGHT: Donor Mean')
% DARK
figure(11)
plot(mean(chan12SlicesDARK,2), 'k')
title('DARK: Donor Mean')
% BOTH
figure(12)
plot(mean(chan12SlicesLIGHT,2), 'b')
hold on
plot(mean(chan12SlicesDARK,2), 'k')
title('DARK & LIGHT: Donor Means')

         
         

back to top

Software Heritage — Copyright (C) 2015–2026, 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— Content policy— Contact— JavaScript license information— Web API