本文整理汇总了C#中Peptide.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Peptide.ToString方法的具体用法?C# Peptide.ToString怎么用?C# Peptide.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Peptide
的用法示例。
在下文中一共展示了Peptide.ToString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ClearModificationsBySites
public void ClearModificationsBySites()
{
var peptide = new Peptide("AC[Fe]DEFGHIKLMNP[Fe]QRSTV[Fe]WY");
peptide.ClearModifications(ModificationSites.C | ModificationSites.V);
Assert.AreEqual("ACDEFGHIKLMNP[Fe]QRSTVWY", peptide.ToString());
}
示例2: EmptyStringPeptideConstructorToString
public void EmptyStringPeptideConstructorToString()
{
Peptide peptide = new Peptide();
Assert.AreEqual(string.Empty, peptide.ToString());
}
示例3: PeptideCloneWithoutModifications
public void PeptideCloneWithoutModifications()
{
Peptide pepA = new Peptide("DER[Fe]EK");
Peptide pepB = new Peptide(pepA, false);
Assert.AreEqual("DEREK", pepB.ToString());
}
示例4: ParseNamedChemicalModificationToString
public void ParseNamedChemicalModificationToString()
{
Peptide peptide = new Peptide("THGEAK[Acetyl]K");
Assert.AreEqual("THGEAK[Acetyl]K", peptide.ToString());
}
示例5: ParseDoubleModificationToString
public void ParseDoubleModificationToString()
{
Peptide peptide = new Peptide("THGEAK[25.132]K");
Assert.AreEqual("THGEAK[25.132]K", peptide.ToString());
}
示例6: ShowHalfLifeForm
private void ShowHalfLifeForm(Peptide peptide, string proteinName, string cohort)
{
if (0 != (GetKeyState(0x10) & 0x8000))
{
var halfLifeRowDataForm = new HalfLifeRowDataForm(_form.Workspace)
{
Protein = proteinName,
};
if (peptide != null)
{
halfLifeRowDataForm.Peptide = peptide.ToString();
}
var resultData = HalfLives[cohort].Value;
halfLifeRowDataForm.RowDatas = resultData.RowDatas;
halfLifeRowDataForm.Show(_form.DockPanel, _form.DockState);
return;
}
var halfLifeForm = new HalfLifeForm(_form.Workspace)
{
Peptide = peptide == null ? "" : peptide.Sequence,
ProteinName = proteinName,
Cohort = cohort,
};
halfLifeForm.SetHalfLifeSettings(_form.HalfLifeSettings);
for (int i = 0; i < _form.checkedListBoxTimePoints.Items.Count; i++)
{
halfLifeForm.SetTimePointExcluded((double)_form.checkedListBoxTimePoints.Items[i],
!_form.checkedListBoxTimePoints.GetItemChecked(i));
}
halfLifeForm.Show(_form.DockPanel, _form.DockState);
}