Hi Magnus,
We're not currently setting experiment.experimentType, and I'm not quite
sure whether we even need it...
Anyhow what we do set is experiment.refExperiment
So have a look at:
experiment.refExperiment.name
experiment.refExperiment.nmrExpPrototype.name
experiment.refExperiment.nmrExpPrototype.synonym
Hope this helps,
T.
> I have a question regarding the data model and the C API. How is the
> experimentType (in Nmr.Experiment) handled? I've tried looking for any
> values of it in my projects (from analysis) and can't seem to find it.
> Using the code below the output I get is: ?; (null)
>
>
> experiment=Nmr_NmrProject_FindFirstExperiment_keyval0(*nmrProject);
> ApiMap searchMap;
> searchMap=ApiMap_New();
> ApiMap_SetString(searchMap,"experimentType","HSQC");
> experiment2=Nmr_NmrProject_FindFirstExperiment(*nmrProject,searchMap);
> printf("%s\t%s\n",Nmr_Experiment_GetExperimentType(experiment),
> Nmr_Experiment_GetExperimentType(experiment2));
>
>
> So it seems like I get experiment, but the experimentType is rubbish and
> experiment2 is null since nothing seems to match HSQC. In this project I
> have 2 TOCSY, 1 NOESY, 1 HSQC, 1 13C and 1 1H spectra. Is there any way
> to populate the experimentType attribute? It would be quite handy for
> me. Or is there something I'm doing wrong?
>
> Should I use the transferType (in Exp.Transfer) value instead? Can I
> make an ApiMap for getting only experiments of a certain transferType?
-------------------------------------------------------------------------------
Dr Tim Stevens Email: [log in to unmask]
Department of Biochemistry [log in to unmask]
University of Cambridge Phone: +44 1223 766018 (office)
80 Tennis Court Road +44 7816 338275 (mobile)
Old Addenbrooke's Site +44 1223 364613 (home)
Cambridge CB2 1GA WWWeb: http://www.bio.cam.ac.uk/~tjs23
United Kingdom http://www.pantonia.co.uk
-------------------------------------------------------------------------------
------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2- -------
-------------------------------------------------------------------------------
|