@@ -16,14 +16,10 @@ public static void Main(string[] args)
1616 string rawFilePath = null ;
1717 string outputDirectory = null ;
1818 string outputFormatString = null ;
19- var outputFormat = OutputFormat . NON ;
19+ var outputFormat = OutputFormat . NONE ;
2020 var gzip = false ;
2121 string outputMetadataString = null ;
22- var outputMetadataFormat = MetadataFormat . NON ;
23- var includeProfileData = false ;
24- string collection = null ;
25- string msRun = null ;
26- string subFolder = null ;
22+ var outputMetadataFormat = MetadataFormat . NONE ;
2723 string s3url = null ;
2824 string s3AccessKeyId = null ;
2925 string s3SecretAccessKey = null ;
@@ -48,7 +44,8 @@ public static void Main(string[] args)
4844 v => outputDirectory = v
4945 } ,
5046 {
51- "f=|format=" , "The output format for the spectra (0 for MGF, 1 for MzMl, 2 for Parquet)" ,
47+ "f=|format=" ,
48+ "The output format for the spectra (0 for MGF, 1 for mzMl, 2 for indexed mzML, 3 for Parquet, 4 for MGF with profile data excluded)" ,
5249 v => outputFormatString = v
5350 } ,
5451 {
@@ -59,25 +56,6 @@ public static void Main(string[] args)
5956 "g|gzip" , "GZip the output file if this flag is specified (without value)." ,
6057 v => gzip = v != null
6158 } ,
62- {
63- "p|profiledata" ,
64- "Exclude MS2 profile data if this flag is specified (without value). Only for MGF format!" ,
65- v => includeProfileData = v != null
66- } ,
67- {
68- "c:|collection" , "The optional collection identifier (PXD identifier for example)." ,
69- v => collection = v
70- } ,
71- {
72- "r:|run:" ,
73- "The optional mass spectrometry run name used in the spectrum title. The RAW file name will be used if not specified." ,
74- v => msRun = v
75- } ,
76- {
77- "s:|subfolder:" ,
78- "Optional, to disambiguate instances where the same collection has 2 or more MS runs with the same name." ,
79- v => subFolder = v
80- } ,
8159 {
8260 "u:|s3_url:" ,
8361 "Optional property to write directly the data into S3 Storage." ,
@@ -140,18 +118,20 @@ public static void Main(string[] args)
140118 }
141119 catch ( FormatException e )
142120 {
143- throw new OptionException ( "unknown output format value (0 for MGF, 1 for MzMl, 2 for Parquet)" ,
121+ throw new OptionException (
122+ "unknown output format value (0 for MGF, 1 for mzMl, 2 for indexed mzML, 3 for Parquet, 4 for MGF with profile date excluded)" ,
144123 "-f, --format" ) ;
145124 }
146125
147126 if ( Enum . IsDefined ( typeof ( OutputFormat ) , outPutFormatInt ) &&
148- ( ( OutputFormat ) outPutFormatInt ) != OutputFormat . NON )
127+ ( ( OutputFormat ) outPutFormatInt ) != OutputFormat . NONE )
149128 {
150129 outputFormat = ( OutputFormat ) outPutFormatInt ;
151130 }
152131 else
153132 {
154- throw new OptionException ( "unknown output format value (0 for MGF, 1 for MzMl, 2 for Parquet)" ,
133+ throw new OptionException (
134+ "unknown output format value (0 for MGF, 1 for mzMl, 2 for indexed mzML, 3 for Parquet, 4 for MGF with profile date excluded)" ,
155135 "-f, --format" ) ;
156136 }
157137 }
@@ -170,7 +150,7 @@ public static void Main(string[] args)
170150 }
171151
172152 if ( Enum . IsDefined ( typeof ( MetadataFormat ) , metadataInt ) &&
173- ( ( MetadataFormat ) metadataInt ) != MetadataFormat . NON )
153+ ( ( MetadataFormat ) metadataInt ) != MetadataFormat . NONE )
174154 {
175155 outputMetadataFormat = ( MetadataFormat ) metadataInt ;
176156 }
@@ -211,8 +191,7 @@ public static void Main(string[] args)
211191 }
212192
213193 var parseInput = new ParseInput ( rawFilePath , outputDirectory , outputFormat , gzip , outputMetadataFormat ,
214- includeProfileData , collection , msRun , subFolder , Log , s3url , s3AccessKeyId , s3SecretAccessKey ,
215- bucketName , ignoreInstrumentErrors ) ;
194+ s3url , s3AccessKeyId , s3SecretAccessKey , bucketName , ignoreInstrumentErrors ) ;
216195 RawFileParser . Parse ( parseInput ) ;
217196 }
218197 catch ( Exception ex )
0 commit comments