예제 #1
0
        public void LoadSequenceData(string path,
                                     int datasetID,
                                     IDatabaseSearchSequenceDAO databaseSequenceCache)
        {
            IMageSink sink = null;

            if (path.ToLower().EndsWith("fht.txt"))
            {
                UpdateStatus("First Hit File MAGE Sink created. ");

                var sequest = new SequestFirstHitSink(databaseSequenceCache);
                sequest.DatasetID = datasetID;
                sink = sequest;
            }
            else
            {
                UpdateStatus("File type is not supported for this kind of sequence data. ");
                return;
            }
            var reader = new DelimitedFileReader();

            reader.Delimiter = "\t";
            reader.FilePath  = path;

            var pipeline = ProcessingPipeline.Assemble("PlainFactors", reader, sink);

            pipeline.RunRoot(null);
            sink.CommitChanges();
        }
예제 #2
0
        public void LoadSequenceData(string path,
            int datasetID,
            IDatabaseSearchSequenceDAO databaseSequenceCache)
        {
            IMageSink sink = null;
            if (path.ToLower().EndsWith("fht.txt"))
            {
                UpdateStatus("First Hit File MAGE Sink created. ");

                var sequest = new SequestFirstHitSink(databaseSequenceCache);
                sequest.DatasetID = datasetID;
                sink = sequest;
            }
            else
            {
                UpdateStatus("File type is not supported for this kind of sequence data. ");
                return;
            }
            var reader = new DelimitedFileReader();

            reader.Delimiter = "\t";
            reader.FilePath = path;

            var pipeline = ProcessingPipeline.Assemble("PlainFactors", reader, sink);
            pipeline.RunRoot(null);
            sink.CommitChanges();
        }