00001
#ifndef _DTA_FILE_H_
00002
#define _DTA_FILE_H_
00003
00004
#define DTA_EXT "dta"
00005
00006
typedef struct
00007
{
00008
char* szExperimentName;
00009
int start_scan;
00010
int stop_scan;
00011
int charge;
00012
int* scans;
00013 } DTAFile;
00014
00015
00016
void DTAFile_init (DTAFile* dtafile);
00017
00018
int DTAFile_cmpByScanBounds(
const void *p1,
const void *p2);
00019
int DTAFile_cmp(
const void *p1,
const void *p2);
00020
00021
void DTAFile_fprint(FILE* fp, DTAFile dta);
00022
char* DTAFile_toString(DTAFile dtafile);
00023
void DTAFile_set (DTAFile* dtafile,
char* filename);
00024
Experiment* DTAFile_getExpmntPointer(DTAFile* dtafile);
00025
int DTAFile_getAvgParentMSScan(DTAFile* dtafile);
00026
char* DTAFile_getFilename(
char* expname,
00027
int scan_start,
00028
int scan_stop,
00029
int charge);
00030
00031
int DTAFile_extractFromOpenRawMS2Archive(
Experiment* expmnt,
int charge_start,
int charge_stop,
char* path_of_experiment_folder);
00032
int DTAFile_extract(
Experiment* expmnt,
int charge_start,
int charge_stop,
char* path_of_experiment_folder);
00033
00034 DTAFile* DTAFileArray_create(
int nSize);
00035 DTAFile** DTAFilePointerArray_create(
int nSize,
int nAlloc);
00036
00037
typedef char* DTAFilename;
00038
00039
int DTAFilename_getCharge(DTAFilename dtafile);
00040
00041
#endif
00042