public void WriteIndelOutcomesFile(ConcurrentDictionary <HashableIndel, int[]> masterOutcomesLookup)
 {
     using (var sw = _outputFactory.GetTextWriter(Path.Combine(_outDir, "IndelOutcomes.csv")))
     {
         sw.WriteLine(
             "Indel,Success,Failure,Rank,NumIndels,AddedAsMulti,ConfirmedExisting,AcceptedRealignment,OtherAccepted");
         foreach (var kvp in masterOutcomesLookup.OrderBy(x => x.Key.StringRepresentation + (x.Key.InMulti ? "|" + x.Key.OtherIndel : "")))
         {
             sw.WriteLine(kvp.Key.StringRepresentation + (kvp.Key.InMulti ? "|" + kvp.Key.OtherIndel : "") + "," + string.Join(",", kvp.Value));
         }
     }
 }
Example #2
0
 private void WriteIndelsCsv(string outFolder, string indelsCsvName, Dictionary <string, IndelEvidence> indelStringLookup)
 {
     using (var writer = _dataOutputFactory.GetTextWriter(Path.Combine(outFolder, indelsCsvName)))
     {
         writer.WriteLine("Indel,Observations,LeftAnchor,RightAnchor,Mess,Quality,Forward,Reverse,Stitched,ReputableSupport,IsRepeat,IsSplit,Outcome");
         foreach (var kvp in indelStringLookup)
         {
             writer.WriteLine(kvp.Key + "," + kvp.Value.ToString());
         }
     }
 }