Skip to content

Using alignatlasdata with AP_histology outputs #1

@cspurandare

Description

@cspurandare

Hello,
I have the probe track obtained from AJ Peters pipeline (https://github.com/petersaj/AP_histology), which gives the structure called probe_ccf as its output. Instead of using the last step of brain region assignment with his pipeline, I am trying to use the alignatlasdata.m function from this repo. I am getting many issues in terms of making the data compatible, but the one I am currently stuck on is in line

for i=2:length(switchpoints{shid})
oripatchobj(shid,i-1) = patch([shid-1 shid shid shid-1],[areapoints{shid}(switchpoints{shid}(i-1)) areapoints{shid}(switchpoints{shid}(i-1)) areapoints{shid}(switchpoints{shid}(i)) areapoints{shid}(switchpoints{shid}(i))],hex2rgb(color_hex(ismember(acronyms,UniqueAreas{shid}{IC{shid}(switchpoints{shid}(i-1))}))));
oritextobj(shid,i-1) = text(double(shid-0.5),double(nanmean([areapoints{shid}(switchpoints{shid}(i-1)) areapoints{shid}(switchpoints{shid}(i))])),UniqueAreas{shid}{IC{shid}(switchpoints{shid}(i-1))},'HorizontalAlignment','center');
end

Based on the AJ Peters pipeline, areapoints is a double vector, whereas the code above requires it to be a cell array. ( I lost track of the original line number, because I have been commenting out lines which I could do without.) Is this a known issue?

I created histinfo as
histinfo.probe_ccf=probe_ccf(2); where I had 2 neuropixel probes, and I am using KSDir for the 2nd probe. But I am guessing that that was incorrect and I am missing something, because most of the errors I get are related to histinfo either having missing fields or having incorrect format of subfields.
Thanks in anticipation,
Chinmay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions