[FieldTrip] Source locations onto an anatomical label in an atlas
Sara Noriega Casuso
sara.noriega at alumni.mondragon.edu
Mon May 20 09:11:17 CEST 2019
Hi Eelke,
Thank you for the response.
I have just downloaded the last version (Fieldtrip-20190419), but I still
have problems.
The error that I get is the same:
*Reference to non-existent field 'tissue'.*
*Error in getsubfield (line 45)*
* s = s.(t{k});*
*Error in ft_sourceinterpolate (line 215)*
* if ~iscell(getsubfield(functional, cfg.parameter{i}))*
Thank you,
Sara
El lun., 20 may. 2019 a las 8:48, Eelke Spaak (<e.spaak at donders.ru.nl>)
escribió:
> Hi Sara,
>
> Are you using a recent version of FieldTrip? I think the fields
> atlas.brick0 etc. have long been replaced with atlas.tissue. Let me
> know if the issue persists if you use a recent FT.
>
> Cheers,
> Eelke
>
> On Sat, 18 May 2019 at 18:30, Sara Noriega Casuso
> <sara.noriega at alumni.mondragon.edu> wrote:
> >
> > Hello all,
> >
> > I have performed source reconstruction and now I want to interpolate an
> atlas onto my sourcemodel, and I am following this tutorial:
> >
> http://www.fieldtriptoolbox.org/faq/how_can_i_map_source_locations_between_two_different_representations/
> >
> > I have downloaded the source model: standard_sourcemodel3d10mm.mat and
> the atlas ROI_MNI_V4.nii mentioned in the tutorial and computed this code:
> >
> > > atlas_MNI = ft_read_atlas('ROI_MNI_V4.nii');
> >
> > > load('standard_sourcemodel3d10mm.mat')
> >
> >
> >
> > > cfg = [];
> >
> > > cfg.interpmethod = 'nearest';
> >
> > > cfg.parameter = 'tissue';
> >
> > > sourcemodel2 = ft_sourceinterpolate(cfg, atlas_MNI, sourcemodel);
> >
> >
> > However, I get this error:
> >
> >
> > Reference to non-existent field 'tissue'.
> >
> >
> > Error in getsubfield (line 45)
> >
> > s = s.(t{k});
> >
> >
> > Error in ft_sourceinterpolate (line 215)
> >
> > if ~iscell(getsubfield(functional, cfg.parameter{i}))
> >
> >
> > The atlas_MNI structure is defined as:
> > dim: [91 109 91]
> > hdr: [1×1 struct]
> > transform: [4×4 double]
> > unit: 'mm'
> > coordsys: 'unknown'
> > brick0: [91×109×91 uint16]
> > brick0label: {1×9170 cell}
> >
> > And the sourcemodel is:
> > dim: [18 21 18]
> > pos: [6804×3 double]
> > inside: [6804×1 logical]
> > cfg: [1×1 struct]
> > unit: 'cm'
> >
> > I know that the units are not equal, but the error does not come from
> that argument.
> > Someone knows how can I handle this error?
> >
> > Thank you in advance,
> > Sara
> >
> >
> >
> >
> > _______________________________________________
> > fieldtrip mailing list
> > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> > https://doi.org/10.1371/journal.pcbi.1002202
>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190520/efbce92b/attachment-0002.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
More information about the fieldtrip
mailing list