Skip to content

Commit

Permalink
models: update the alignment stats data model, #184
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed May 1, 2020
1 parent 17b28bc commit 080ef92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class AlignmentStats {
private String fileId;
private List<String> sampleIds;
private String sampleId;
private int rawTotalSequences;
private int filteredSequences;
private int sequences;
Expand Down Expand Up @@ -51,7 +51,7 @@ public AlignmentStats() {
public String toString() {
final StringBuilder sb = new StringBuilder("AlignmentStats{");
sb.append("fileId='").append(fileId).append('\'');
sb.append(", sampleIds=").append(sampleIds);
sb.append(", sampleId=").append(sampleId);
sb.append(", rawTotalSequences=").append(rawTotalSequences);
sb.append(", filteredSequences=").append(filteredSequences);
sb.append(", sequences=").append(sequences);
Expand Down Expand Up @@ -103,12 +103,12 @@ public AlignmentStats setFileId(String fileId) {
return this;
}

public List<String> getSampleIds() {
return sampleIds;
public String getSampleId() {
return sampleId;
}

public AlignmentStats setSampleIds(List<String> sampleIds) {
this.sampleIds = sampleIds;
public AlignmentStats setSampleId(String sampleId) {
this.sampleId = sampleId;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public String toJSON() throws IOException {

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("AlignmentStats{");
final StringBuilder sb = new StringBuilder("AlignmentGlobalStats{");
sb.append("numMapped=").append(numMapped);
sb.append(", numUnmapped=").append(numUnmapped);
sb.append(", numPaired=").append(numPaired);
Expand Down

0 comments on commit 080ef92

Please sign in to comment.