示例#1
0
 public static IDataFileReader Create(DataFileFormat format, string annotations, bool decoy, LazyLcMsRun lcms=null)
 {
     IDataFileReader reader;
     switch (format)
     {
         case DataFileFormat.Mgf:
             reader = new MgfReader(annotations, decoy);
             break;
         case DataFileFormat.IcBottomUp:
             reader = new IcBottomUpTsvReader(annotations, lcms, decoy);
             break;
         case DataFileFormat.Dia:
             reader = new DiaTsvReader(annotations, lcms, decoy);
             break;
         default:
             reader = null;
             break;
     }
     return reader;
 }
示例#2
0
        public static IDataFileReader Create(DataFileFormat format, string annotations, bool decoy, LazyLcMsRun lcms = null)
        {
            IDataFileReader reader;

            switch (format)
            {
            case DataFileFormat.Mgf:
                reader = new MgfReader(annotations, decoy);
                break;

            case DataFileFormat.IcBottomUp:
                reader = new IcBottomUpTsvReader(annotations, lcms, decoy);
                break;

            case DataFileFormat.Dia:
                reader = new DiaTsvReader(annotations, lcms, decoy);
                break;

            default:
                reader = null;
                break;
            }
            return(reader);
        }