Exemplo n.º 1
0
        public void TestFillProteinInformation()
        {
            var peptides = new MascotPeptideTextFormat().ReadFromFile(TestContext.CurrentContext.TestDirectory + "/../../../data/Test.output.xml.FDR0.01.peptides");

            Assert.IsTrue(peptides.All(m => m.Peptide.Proteins.Count == 0));

            IdentifiedSpectrumUtils.FillProteinInformation(peptides, TestContext.CurrentContext.TestDirectory + "/../../../data//Test.output.xml.FDR0.01.peptides.proteins");
            Assert.IsTrue(peptides.All(m => m.Peptide.Proteins.Count > 0));
        }
    public void TestFillProteinInformation()
    {
      var peptides = new MascotPeptideTextFormat().ReadFromFile("../../../data/Test.output.xml.FDR0.01.peptides");
      Assert.IsTrue(peptides.All(m => m.Peptide.Proteins.Count == 0));

      IdentifiedSpectrumUtils.FillProteinInformation(peptides, "../../../data/Test.output.xml.FDR0.01.peptides.proteins");
      Assert.IsTrue(peptides.All(m => m.Peptide.Proteins.Count > 0));
    }