本文整理汇总了C#中Peptide.TryGetChemicalFormula方法的典型用法代码示例。如果您正苦于以下问题:C# Peptide.TryGetChemicalFormula方法的具体用法?C# Peptide.TryGetChemicalFormula怎么用?C# Peptide.TryGetChemicalFormula使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Peptide
的用法示例。
在下文中一共展示了Peptide.TryGetChemicalFormula方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EmptyPeptideFormulaIsH2O
public void EmptyPeptideFormulaIsH2O()
{
Peptide pepA = new Peptide();
ChemicalFormula h2O = new ChemicalFormula("H2O");
ChemicalFormula formulaB;
pepA.TryGetChemicalFormula(out formulaB);
Assert.AreEqual(h2O, formulaB);
}
示例2: ParseNTerminalNamedChemicalModification
public void ParseNTerminalNamedChemicalModification()
{
Peptide peptide = new Peptide("[Carbamidomethyl]-TTGSSSSSSSK");
ChemicalFormula formulaA = new ChemicalFormula("C39H69N13O22");
ChemicalFormula formulaB;
peptide.TryGetChemicalFormula(out formulaB);
Assert.AreEqual(formulaA, formulaB);
}
示例3: PeptideMassGlycine
public void PeptideMassGlycine()
{
Peptide pep = new Peptide("G");
ChemicalFormula formula = new ChemicalFormula("C2H5NO2");
ChemicalFormula formula2;
pep.TryGetChemicalFormula(out formula2);
Assert.AreEqual(formula,formula2);
}
示例4: ParseNTerminalChemicalFormula
public void ParseNTerminalChemicalFormula()
{
Peptide peptide = new Peptide("[C2H3NO]-TTGSSSSSSSK");
ChemicalFormula formulaA = new ChemicalFormula("C39H69N13O22");
ChemicalFormula formulaB;
peptide.TryGetChemicalFormula(out formulaB);
Assert.AreEqual(formulaA, formulaB);
}
示例5: ParseNAndCTerminalNamedChemicalModification
public void ParseNAndCTerminalNamedChemicalModification()
{
Peptide peptide = new Peptide("[Carbamidomethyl]-TTGSSSSSSSK-[Carbamidomethyl]");
ChemicalFormula formulaA = new ChemicalFormula("C41H72N14O23");
ChemicalFormula formulaB;
peptide.TryGetChemicalFormula(out formulaB);
Assert.AreEqual(formulaA, formulaB);
}
示例6: ParseNAndCTerminalChemicalFormula
public void ParseNAndCTerminalChemicalFormula()
{
Peptide peptide = new Peptide("[C2H3NO]-TTGSSSSSSSK-[C2H3NO]");
ChemicalFormula formulaA = new ChemicalFormula("C41H72N14O23");
ChemicalFormula formulaB;
peptide.TryGetChemicalFormula(out formulaB);
Assert.AreEqual(formulaA, formulaB);
}
示例7: ParseCTerminalChemicalFormulaWithLastResidueMod
public void ParseCTerminalChemicalFormulaWithLastResidueMod()
{
Peptide peptide = new Peptide("TTGSSSSSSSK[H2O]-[C2H3NO]");
ChemicalFormula formulaA = new ChemicalFormula("C39H71N13O23");
ChemicalFormula formulaB;
peptide.TryGetChemicalFormula(out formulaB);
Assert.AreEqual(formulaA, formulaB);
}
示例8: WritePeptideToConsole
private static void WritePeptideToConsole(Peptide peptide)
{
ChemicalFormula formula;
peptide.TryGetChemicalFormula(out formula);
Console.WriteLine("{0,-5} {1,-5} {2,-5}", peptide, formula, peptide.MonoisotopicMass);
}