Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Experiment.m 2.27 KiB
classdef Experiment
    % An experiment class for OpenFLUX2 containing information about the
    %   data and the tracer as well as results form flux estimation.
    %   Use the SetUpExpt.m script to set up a new Experiment.
    %
    % description - a text description of the Experiment set up.
    % id - a 1-by-m cell matrix with the id of each metabolite, m is the
    %   number of metabolites relevant for the experiment.
    % msData - a n-by-m cell matrix with the MS-data for the experiment n is
    %   the number of datasets and m is the number of metabolites/states.
    % error - a same sized n-by-m cell matrix as msData that contains the
    %   coresponding measurement error. 
    % tracer - a text srting with the name of the tracer used in the
    %   experiment.
    % substrateInfo - a k-by-4 cell matrix contioning the labeling
    %   composition of the system substrates, k is the number of system
    %   substrates. This matrix is defined by the subsDef.m script. 
    % result - a result structure of class results.m that contains the
    %   result of a parameter estimation for the experiment. 
    
    properties
        description
        id
        msData
        error
        tracer
        substrateInfo
        results = results;
    end
    
    methods
        function obj = set.description(obj,Value)
            if iscell(Value)
                obj.description = Value;
            end
        end
        function obj = set.id(obj,Value)
            if iscell(Value)
                obj.id = Value;
            end
        end
        function obj = set.msData(obj,Value)
            if iscell(Value)
                obj.msData = Value;
            end
        end
        
        function obj = set.error(obj,Value)
            if iscell(Value)
                obj.error = Value;
            end
        end
        
        function obj = set.tracer(obj,Value)
            if iscell(Value)
                obj.tracer = Value;
            end
        end
        function obj = set.substrateInfo(obj,Value)
            if iscell(Value)
                obj.substrateInfo = Value;
            end
        end
        function obj = set.results(obj,Value)
            if isa(Value,'results')
                obj.results = Value;
            end
        end
        
    end
    
end