示例#1
0
        public GlobalWorkflow(string rawFileLocation, string scoreModelLocation = "DefaultScoringModel.xml")
        {
            var dataFactory = new LcMsDataFactory();

            dataFactory.ProgressChanged += LcMsDataFactory_ProgressChanged;

            LcMsRun    = dataFactory.GetLcMsData(rawFileLocation);
            ScoreModel = ScoreModelSerialization.Deserialize(scoreModelLocation);
        }
示例#2
0
        public void TestConvertXmlToTsv()
        {
            const string scoringModelXmlLocation = @"..\..\..\..\LiquidBackend\DefaultScoringModel.xml";
            var          deserializedScoreModel  = ScoreModelSerialization.Deserialize(scoringModelXmlLocation);

            TextWriter textWriter = new StreamWriter("scoringModel.tsv");

            textWriter.WriteLine(deserializedScoreModel.GetTsvHeader());

            foreach (var scoreModelUnit in deserializedScoreModel.ScoreModelUnitList)
            {
                textWriter.WriteLine(scoreModelUnit.ToTsvString());
            }

            textWriter.Close();
        }
示例#3
0
 public SingleTargetViewModel()
 {
     RawFilePath           = "File loaded: none";
     FragmentationModeList = new List <FragmentationMode> {
         FragmentationMode.Positive, FragmentationMode.Negative
     };
     //this.AdductList = new List<Adduct> { Adduct.Hydrogen, Adduct.Dihydrogen, Adduct.Ammonium, Adduct.Acetate };
     AdductList  = Enum.GetValues(typeof(Adduct)).Cast <Adduct>().ToList();
     IonTypeList = new List <string> {
         "Product Ion", "Neutral Loss"
     };
     SpectrumSearchResultList = new List <SpectrumSearchResult>();
     LipidTargetList          = new List <Lipid>();
     FragmentSearchList       = new ObservableCollection <MsMsSearchUnit>();
     LipidIdentifications     = new List <Tuple <string, int> >();
     ScoreModel  = ScoreModelSerialization.Deserialize("DefaultScoringModel.xml");
     AverageSpec = false;
 }