本文整理汇总了C#中Peptide.getNTerminusMass方法的典型用法代码示例。如果您正苦于以下问题:C# Peptide.getNTerminusMass方法的具体用法?C# Peptide.getNTerminusMass怎么用?C# Peptide.getNTerminusMass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Peptide
的用法示例。
在下文中一共展示了Peptide.getNTerminusMass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestPeptide
public static void TestPeptide()
{
Peptide pep = new Peptide();
string seq = "HGYIGEFEYVDDHR";
Console.WriteLine("** Test validation **");
Console.WriteLine("Peptide: "+pep.Sequence);
if (pep.validateSequence(seq) == true) {
Console.WriteLine("TRUE");
} else {
Console.WriteLine("FALSE");
}
seq = "HXGYIGEFEYVDDHR";
Console.WriteLine("Peptide: "+seq+"");
if (pep.validateSequence(seq) == true) {
Console.WriteLine("TRUE");
} else {
Console.WriteLine("FALSE");
}
seq = "HGYIGEF4EYVDDHR";
Console.WriteLine("Peptide: "+seq+"");
if (pep.validateSequence(seq) == true) {
Console.WriteLine("TRUE");
} else {
Console.WriteLine("FALSE");
}
seq = "HGYIGEFEYV*DDHR";
Console.WriteLine("Peptide: "+seq+"");
if (pep.validateSequence(seq) == true) {
Console.WriteLine("TRUE");
} else {
Console.WriteLine("FALSE");
}
pep = new Peptide();
pep.Sequence = "HGYIGEFEYVDDHR";
pep.NTerminus = "H";
pep.CTerminus = "OH";
Console.WriteLine("** Testing naked peptide **");
Console.WriteLine("Peptide: "+pep.Sequence+"");
Console.WriteLine("N-Terminus: "+pep.NTerminus+"");
Console.WriteLine("C-Terminus: "+pep.CTerminus+"");
Console.WriteLine("*** Masses monoisotopic ***");
Console.WriteLine("Mass C-Terminus: "+pep.getCTerminusMass("monoisotopic").ToString()+"");
Console.WriteLine("Mass N-Terminus: "+pep.getNTerminusMass("monoisotopic").ToString()+"");
Console.WriteLine("Peptide mass: "+pep.getMass("monoisotopic").ToString()+"");
Console.WriteLine("Calculated MCR 2: "+pep.getTheoreticalMCR("monoisotopic", 2).ToString()+"");
Console.WriteLine("*** Masses average ***");
Console.WriteLine("Mass C-Terminus: "+pep.getCTerminusMass("average").ToString()+"");
Console.WriteLine("Mass N-Terminus: "+pep.getNTerminusMass("average").ToString()+"");
Console.WriteLine("Peptide mass: "+pep.getMass("average").ToString()+"");
Console.WriteLine("Calculated MCR 3: "+pep.getTheoreticalMCR("monoisotopic", 3).ToString()+"");
ModifiedPeptide modpep = new ModifiedPeptide();
modpep.Plugins.Add("mpimp.sharprot.plugins.ModPlugins");
modpep.Sequence = "ITLLEELQEKTEEDEENKPSVIEK";
modpep.NTerminus = "H";
modpep.CTerminus = "OH";
PepMod objMod1 = new PepMod(){
accession = 21,
index = 1
};
Console.WriteLine("** Testing phosphat modification **");
Console.WriteLine("Peptide: "+modpep.Sequence+"");
Console.WriteLine("N-Terminus: "+modpep.NTerminus+"");
Console.WriteLine("C-Terminus: "+modpep.CTerminus+"");
Console.WriteLine("Modification 1: "+objMod1.accession.ToString()+"");
Console.WriteLine("*** Masses monoisotopic without Modifications ***");
Console.WriteLine("Mass C-Terminus: "+modpep.getCTerminusMass("monoisotopic").ToString()+"");
Console.WriteLine("Mass N-Terminus: "+modpep.getNTerminusMass("monoisotopic").ToString()+"");
Console.WriteLine("Peptide mass: "+modpep.getMass("monoisotopic").ToString()+"");
Console.WriteLine("Calculated MCR 2: "+modpep.getTheoreticalMCR("monoisotopic", 2).ToString()+"");
Console.WriteLine("*** Masses average without Modifications ***");
Console.WriteLine("Mass C-Terminus: "+modpep.getCTerminusMass("average").ToString()+"");
Console.WriteLine("Mass N-Terminus: "+modpep.getNTerminusMass("average").ToString()+"");
Console.WriteLine("Peptide mass: "+modpep.getMass("average").ToString()+"");
Console.WriteLine("Calculated MCR 3: "+modpep.getTheoreticalMCR("monoisotopic", 3).ToString()+"");
modpep.addModification(objMod1);
Console.WriteLine("*** Masses monoisotopic with Phosphat - Modifications ***");
Console.WriteLine("Mass C-Terminus: "+modpep.getCTerminusMass("monoisotopic").ToString()+"");
Console.WriteLine("Mass N-Terminus: "+modpep.getNTerminusMass("monoisotopic").ToString()+"");
Console.WriteLine("Peptide mass: "+modpep.getMass("monoisotopic").ToString()+"");
Console.WriteLine("Calculated MCR 2: "+modpep.getTheoreticalMCR("monoisotopic", 2).ToString()+"");
Console.WriteLine("*** Masses average with Phosphat - Modifications ***");
Console.WriteLine("Mass C-Terminus: "+modpep.getCTerminusMass("average").ToString()+"");
Console.WriteLine("Mass N-Terminus: "+modpep.getNTerminusMass("average").ToString()+"");
Console.WriteLine("Peptide mass: "+modpep.getMass("average").ToString()+"");
Console.WriteLine("Calculated MCR 3: "+modpep.getTheoreticalMCR("monoisotopic", 3).ToString()+"");
//.........这里部分代码省略.........