/// <summary> /// Creates a UMC Cluster exporter /// </summary> /// <param name="type"></param> /// <returns></returns> public static IFeatureClusterWriter Create(ClusterFeatureExporters type) { IFeatureClusterWriter exporter = null; switch (type) { case ClusterFeatureExporters.CrossTab: exporter = new UMCClusterCrossTabWriter(); break; case ClusterFeatureExporters.CrossTabAbundanceSum: exporter = new UmcClusterAbundanceSumCrossTabWriter(); break; case ClusterFeatureExporters.CrossTabAbundanceSumMax: exporter = new UmcClusterAbundanceCrossTabWriter(); break; case ClusterFeatureExporters.MsMsMetaData: exporter = new UMCClusterMsmsWriter(); break; case ClusterFeatureExporters.ClusterScans: exporter = new UMCClusterScanWriter(); break; case ClusterFeatureExporters.MsMsDta: exporter = new UMCClusterMsmsSpectraWriter( "DTA Spectra", MsMsFileWriterFactory.CreateSpectraWriter(MsMsWriterType.DTA), ".dta"); break; case ClusterFeatureExporters.MsMsMgf: exporter = new UMCClusterMsmsSpectraWriter( "MGF Spectra", MsMsFileWriterFactory.CreateSpectraWriter(MsMsWriterType.MGF), ".mgf"); break; default: break; } return(exporter); }
/// <summary> /// Creates a UMC Cluster exporter /// </summary> /// <param name="type"></param> /// <returns></returns> public static IFeatureClusterWriter Create(ClusterFeatureExporters type) { IFeatureClusterWriter exporter = null; switch (type) { case ClusterFeatureExporters.CrossTab: exporter = new UMCClusterCrossTabWriter(); break; case ClusterFeatureExporters.CrossTabAbundanceSum: exporter = new UmcClusterAbundanceSumCrossTabWriter(); break; case ClusterFeatureExporters.CrossTabAbundanceSumMax: exporter = new UmcClusterAbundanceCrossTabWriter(); break; case ClusterFeatureExporters.MsMsMetaData: exporter = new UMCClusterMsmsWriter(); break; case ClusterFeatureExporters.ClusterScans: exporter = new UMCClusterScanWriter(); break; case ClusterFeatureExporters.MsMsDta: exporter = new UMCClusterMsmsSpectraWriter( "DTA Spectra", MsMsFileWriterFactory.CreateSpectraWriter(MsMsWriterType.DTA), ".dta"); break; case ClusterFeatureExporters.MsMsMgf: exporter = new UMCClusterMsmsSpectraWriter( "MGF Spectra", MsMsFileWriterFactory.CreateSpectraWriter(MsMsWriterType.MGF), ".mgf"); break; default: break; } return exporter; }