private static List <string> ProcessLine(ShowBy showBy, PredictorCollection predictorCollection, string line, MerLength merLength, int?dOfCenter, HlaSetSpecification hlaSetSpecification, bool modelOnly) { try { string hlaOrSupertypeOrNull; string inputPeptide = ExtractInputs(hlaSetSpecification, line, predictorCollection, out hlaOrSupertypeOrNull); List <string> output = new List <string>(); foreach (List <Prediction> predictionList in predictorCollection.MaxProbabilityPredictions(showBy, inputPeptide, merLength, dOfCenter, hlaSetSpecification, hlaOrSupertypeOrNull, modelOnly).Values) { string outputLine = InsertMaterial(line, hlaSetSpecification.InputHeaderCollection().Length, Prediction.CollectionToString(predictionList, false, hlaSetSpecification.IncludeHlaInOutput())); output.Add(outputLine); } return(output); } catch (Exception exception) { string errorString = SpecialFunctions.CreateTabString( line, string.Format("Error: {0}{1}", exception.Message, exception.InnerException == null ? "" : string.Format(" ({0})", exception.InnerException))); List <string> output = new List <string>(); output.Add(errorString); return(output); } }