private void ExtraInfo(List<ProteinGroup> proteinGroups, string outputDirectory)
{
string fileName = Path.Combine(outputDirectory, "temp.csv");
Log("Writing file " + fileName);
using (StreamWriter writer = new StreamWriter(fileName))
{
foreach (ProteinGroup proteinGroup in proteinGroups.Where(g => !g.IsDecoy && g.SequenceCoverage > 75))
{
writer.WriteLine(proteinGroup.Description + "," + proteinGroup.SequenceCoverage);
int[] bits = proteinGroup.RepresentativeProtein.GetSequenceCoverage(proteinGroup.Peptides, true);
for (int i = 0; i < bits.Length; i++)
{
writer.WriteLine("{0},{1},{2}", proteinGroup.RepresentativeProtein.Sequence[i], i + 1, bits[i]);
}
writer.WriteLine();
}
}
}