Skip to content

Instantly share code, notes, and snippets.

@blink1073
Last active August 29, 2015 14:17
Show Gist options
  • Save blink1073/e46fae608a7db134d9f4 to your computer and use it in GitHub Desktop.
Save blink1073/e46fae608a7db134d9f4 to your computer and use it in GitHub Desktop.
MetAtlas Spec
/*
A KBase Atlas to liquid chromatography–mass spectrometry (LCMS) data
*/
module MetaboliteAtlas2 {
/* Metabolite Compound object
*
* name - common name of the compound
* formula - chemical formula
* adducts - adduct ions
* mz - mass-to-charge ratio
* mz_threshold - threshold in ppm
* rt_min - min retention time
* rt_max - max retention time
* rt_peak - peak retention time
*
*/
typedef structure {
string name;
string formula;
string adducts;
float mz;
float mz_threshold;
float rt_min;
float rt_max;
float rt_peak;
float neutral_mass;
string pubchem_id;
} MACompound;
/* @id ws MetaboliteAtlas2.MACompound */
typedef string MACompound_ref;
typedef structure {
string name;
list<MACompound_ref> compounds;
string sample;
string method;
} MADictionary;
/* @id handle */
typedef string Run_data_ref;
/* @id ws MetaboliteAtlas2.MADictionary */
typedef string MADictionary_ref;
/*
@optional atlases polarity group inclusion_order normalization_factor retention_correction
*/
typedef structure {
string mzml_file_name;
list<MADictionary_ref> atlases;
int polarity;
string group;
int inclusion_order;
float normalization_factor;
float retention_correction;
Run_data_ref run_file_id;
} MAFileInfo;
typedef structure {
string name;
string description;
string reconstitution_method;
string quenching_method;
string extraction_method;
string chromatography_method;
list<MADictionary_ref> atlas_ids;
} MAExperiment;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment