Main Page | Modules | Data Structures | File List | Data Fields | Globals

massspec/mqaminoacid.h

Go to the documentation of this file.
00001 #ifndef _MQAMINOACID_H_ 00002 #define _MQAMINOACID_H_ 00003 00004 /* Copyright (c) Kyriacos Leptos and the President and Fellows of Harvard University 00005 Release Date: 2004-11-01 00006 Part of the MapQuant suite library "massspec.lib" 00007 */ 00008 00019 #define NO_OF_ELEMENTS 5 00020 #define NO_OF_AMINOACIDS 20 00021 00022 enum {GLY, ALA, SER, 00023 PRO, VAL, THR, 00024 CYS, ILE, LEU, 00025 ASN, ASP, HIS, 00026 GLN, LYS, GLU, 00027 MET, PHE, ARG, 00028 TYR, TRP}; 00029 00030 typedef struct 00031 { 00032 char* symbol; 00033 const float mass; 00034 } Element; 00035 00036 00037 struct HMODEL 00038 { 00039 float param[5]; 00040 }; 00041 00042 typedef struct HMODEL HydrophobicityModel; 00043 00044 extern int CURR_HMODEL; 00045 00046 struct IonizationInfo 00047 { 00048 float pKa_N; 00049 float pKa_C; 00050 float pKa_R; 00051 }; 00052 00053 typedef struct IonizationInfo IonizationInfo; 00054 00055 #define NO_HYDROPHOBICITY_MODELS 4 00056 00057 struct Aminoacid 00058 { 00059 /* ATTRIBUTES SYMBOLS IN TABLE FILENAMES */ 00060 char name[3]; // N 00061 char symbol; // n 00062 00063 float mass; // M : This is the parameter for calculating 00064 // the first dimension i.e MZ 00065 00066 HydrophobicityModel hmodel[NO_HYDROPHOBICITY_MODELS]; 00067 IonizationInfo pKas; 00068 00069 int nC; // C 00070 int nH; 00071 int nO; 00072 int nN; // 00073 int nS; // 00074 00075 }; 00076 00077 typedef struct Aminoacid Aminoacid; 00078 00079 extern Aminoacid aminoacid[NO_OF_AMINOACIDS]; 00080 00081 int Aminoacid_charToIndex(char aa); 00082 char Aminoacid_indexToChar(int index); 00083 00084 float Aminoacid_calcMW(int i); 00085 float Aminoacid_calcAbsoluteMW(int i); 00086 void Aminoacid_fprintDelimited(FILE* fp, char delimiter); 00087 float _calcMWFromMZ(float mz, int charge); 00088 00089 00090 #endif 00091 00092

Generated on Sun Feb 13 01:05:58 2005 for MapQuant by doxygen 1.3.7