Skip to content
Snippets Groups Projects
Commit cd3466d1 authored by kohleman's avatar kohleman
Browse files

[LMS-1634] added sample code column

SVN: 16985
parent 6f753abc
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ public class IlluminaSummaryReportingPlugin extends AbstractDatastorePlugin impl ...@@ -53,6 +53,7 @@ public class IlluminaSummaryReportingPlugin extends AbstractDatastorePlugin impl
public TableModel createReport(List<DatasetDescription> datasets) public TableModel createReport(List<DatasetDescription> datasets)
{ {
SimpleTableModelBuilder builder = new SimpleTableModelBuilder(); SimpleTableModelBuilder builder = new SimpleTableModelBuilder();
builder.addHeader("Sample Code");
builder.addHeader("Clusters"); builder.addHeader("Clusters");
builder.addHeader("Clusters (PF)"); builder.addHeader("Clusters (PF)");
builder.addHeader("Yield (kbases)"); builder.addHeader("Yield (kbases)");
...@@ -74,7 +75,7 @@ public class IlluminaSummaryReportingPlugin extends AbstractDatastorePlugin impl ...@@ -74,7 +75,7 @@ public class IlluminaSummaryReportingPlugin extends AbstractDatastorePlugin impl
{ {
File file = files.get(0); File file = files.get(0);
IlluminaSummary summary = new IlluminaSummaryXMLLoader(false).readSummaryXML(file); IlluminaSummary summary = new IlluminaSummaryXMLLoader(false).readSummaryXML(file);
describeSummary(builder, summary); describeSummary(builder, summary, dataset);
} else } else
{ {
throw new EnvironmentFailureException(String.format( throw new EnvironmentFailureException(String.format(
...@@ -83,14 +84,16 @@ public class IlluminaSummaryReportingPlugin extends AbstractDatastorePlugin impl ...@@ -83,14 +84,16 @@ public class IlluminaSummaryReportingPlugin extends AbstractDatastorePlugin impl
} }
} }
private static void describeSummary(SimpleTableModelBuilder builder, IlluminaSummary summary) private static void describeSummary(SimpleTableModelBuilder builder, IlluminaSummary summary,
DatasetDescription dataset)
{ {
ChipResultsSummary chipResultSummary = summary.getChipResultsSummary(); ChipResultsSummary chipResultSummary = summary.getChipResultsSummary();
List<ISerializableComparable> row = List<ISerializableComparable> row =
Arrays.<ISerializableComparable> asList( Arrays.<ISerializableComparable> asList(
new StringTableCell(chipResultSummary.getClusterCountPF()), new StringTableCell(dataset.getSampleCode()), new StringTableCell(
new StringTableCell(chipResultSummary.getClusterCountRaw()), chipResultSummary.getClusterCountPF()), new StringTableCell(
new StringTableCell(chipResultSummary.getYield())); chipResultSummary.getClusterCountRaw()), new StringTableCell(
chipResultSummary.getYield()));
builder.addRow(row); builder.addRow(row);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment