本文整理汇总了C#中Workspace.filterByResultAmbiguity方法的典型用法代码示例。如果您正苦于以下问题:C# Workspace.filterByResultAmbiguity方法的具体用法?C# Workspace.filterByResultAmbiguity怎么用?C# Workspace.filterByResultAmbiguity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Workspace
的用法示例。
在下文中一共展示了Workspace.filterByResultAmbiguity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
//.........这里部分代码省略.........
// Generate a processing event for the idpReport.
ProcessingEvent presentationEvent = new ProcessingEvent();
presentationEvent.type = "presentation/filtration";
presentationEvent.startTime = DateTime.Now;
ProcessingParam presentationParam = new ProcessingParam();
presentationParam.name = "software name";
presentationParam.value = "idpReport";
presentationEvent.parameters.Add( presentationParam );
presentationParam = new ProcessingParam();
presentationParam.name = "software version";
presentationParam.value = Version + " (" + LastModified.ToShortDateString() + ")";
presentationEvent.parameters.Add( presentationParam );
RunTimeVariableMap presentationVars = rtConfig.getVariables();
foreach( KeyValuePair<string, string> itr in presentationVars )
{
presentationParam = new ProcessingParam();
presentationParam.name = itr.Key;
presentationParam.value = itr.Value;
presentationEvent.parameters.Add( presentationParam );
}
#region Pre-filtering validation
{ ws.validate( rtConfig.MaxFDR, 0, 100 ); }
#endregion
#region Apply filtering criteria and assemble proteins
start = DateTime.Now.Ticks;
Console.WriteLine( "Filtering out peptides shorter than " + rtConfig.MinPeptideLength + " residues..." );
ws.filterByMinimumPeptideLength( rtConfig.MinPeptideLength );
Console.WriteLine( "\nFinished filtering by minimum peptide length; " + new TimeSpan( DateTime.Now.Ticks - start ).TotalSeconds + " seconds elapsed." ); { ws.validate( rtConfig.MaxFDR, 0, 100 ); }
start = DateTime.Now.Ticks;
Console.WriteLine( "Filtering out results with more than " + rtConfig.MaxAmbiguousIds + " ambiguous ids..." );
ws.filterByResultAmbiguity( rtConfig.MaxAmbiguousIds );
Console.WriteLine( "\nFinished filtering by maximum ambiguous ids; " + new TimeSpan( DateTime.Now.Ticks - start ).TotalSeconds + " seconds elapsed." ); { ws.validate( rtConfig.MaxFDR, 0, rtConfig.MaxAmbiguousIds ); }
start = DateTime.Now.Ticks;
Console.WriteLine( "Filtering out proteins with less than " + rtConfig.MinDistinctPeptides + " distinct peptides..." );
ws.filterByDistinctPeptides( rtConfig.MinDistinctPeptides );
Console.WriteLine( "\nFinished filtering by minimum distinct peptides; " + new TimeSpan( DateTime.Now.Ticks - start ).TotalSeconds + " seconds elapsed." ); { ws.validate( rtConfig.MaxFDR, rtConfig.MinDistinctPeptides, rtConfig.MaxAmbiguousIds ); }
start = DateTime.Now.Ticks;
Console.WriteLine( "Filtering out proteins with less than " + rtConfig.MinSpectraPerProtein + " spectra..." );
ws.filterBySpectralCount( rtConfig.MinSpectraPerProtein );
Console.WriteLine( "\nFinished filtering by minimum protein spectral counts; " + new TimeSpan( DateTime.Now.Ticks - start ).TotalSeconds + " seconds elapsed." ); { ws.validate( rtConfig.MaxFDR, rtConfig.MinDistinctPeptides, rtConfig.MaxAmbiguousIds ); }
start = DateTime.Now.Ticks;
Console.WriteLine( "Assembling protein groups..." );
ws.assembleProteinGroups();
Console.WriteLine( "\nFinished assembling protein groups; " + new TimeSpan( DateTime.Now.Ticks - start ).TotalSeconds + " seconds elapsed." ); { ws.validate( rtConfig.MaxFDR, rtConfig.MinDistinctPeptides, rtConfig.MaxAmbiguousIds ); }
start = DateTime.Now.Ticks;
Console.WriteLine( "Assembling peptide groups..." );
ws.assemblePeptideGroups();
Console.WriteLine( "\nFinished assembling peptide groups; " + new TimeSpan( DateTime.Now.Ticks - start ).TotalSeconds + " seconds elapsed." ); { ws.validate( rtConfig.MaxFDR, rtConfig.MinDistinctPeptides, rtConfig.MaxAmbiguousIds ); }
start = DateTime.Now.Ticks;
Console.WriteLine( "Assembling clusters..." );
ws.assembleClusters();
Console.WriteLine( "\nFinished assembling clusters; " + new TimeSpan( DateTime.Now.Ticks - start ).TotalSeconds + " seconds elapsed." ); { ws.validate( rtConfig.MaxFDR, rtConfig.MinDistinctPeptides, rtConfig.MaxAmbiguousIds ); }
start = DateTime.Now.Ticks;
// Determine the minimum number of protein clusters needed
// to explain all the peptides.
Console.WriteLine( "Assembling minimum covering set for clusters..." );
int clusterCount = 0;