|
| 1 | +package org.opencb.biodata.models.core; |
| 2 | + |
| 3 | +import java.util.ArrayList; |
| 4 | +import java.util.List; |
| 5 | + |
| 6 | +public class SpliceScore { |
| 7 | + private String chromosome; |
| 8 | + private int position; |
| 9 | + private String refAllele; |
| 10 | + private String geneId; |
| 11 | + private String geneName; |
| 12 | + private String transcriptId; |
| 13 | + private String exonId; |
| 14 | + private int exonNumber; |
| 15 | + private String source; |
| 16 | + private List<SpliceScoreAlternate> alternates; |
| 17 | + |
| 18 | + public SpliceScore() { |
| 19 | + this.alternates = new ArrayList<>(); |
| 20 | + } |
| 21 | + |
| 22 | + public SpliceScore(String chromosome, int position, String refAllele, String geneId, String geneName, String transcriptId, |
| 23 | + String exonId, int exonNumber, String source, List<SpliceScoreAlternate> alternates) { |
| 24 | + this.chromosome = chromosome; |
| 25 | + this.position = position; |
| 26 | + this.refAllele = refAllele; |
| 27 | + this.geneId = geneId; |
| 28 | + this.geneName = geneName; |
| 29 | + this.transcriptId = transcriptId; |
| 30 | + this.exonId = exonId; |
| 31 | + this.exonNumber = exonNumber; |
| 32 | + this.source = source; |
| 33 | + this.alternates = alternates; |
| 34 | + } |
| 35 | + |
| 36 | + @Override |
| 37 | + public String toString() { |
| 38 | + final StringBuilder sb = new StringBuilder("SpliceScore{"); |
| 39 | + sb.append("chromosome='").append(chromosome).append('\''); |
| 40 | + sb.append(", position=").append(position); |
| 41 | + sb.append(", refAllele='").append(refAllele).append('\''); |
| 42 | + sb.append(", geneId='").append(geneId).append('\''); |
| 43 | + sb.append(", geneName='").append(geneName).append('\''); |
| 44 | + sb.append(", transcriptId='").append(transcriptId).append('\''); |
| 45 | + sb.append(", exonId='").append(exonId).append('\''); |
| 46 | + sb.append(", exonNumber=").append(exonNumber); |
| 47 | + sb.append(", source='").append(source).append('\''); |
| 48 | + sb.append(", alternates=").append(alternates); |
| 49 | + sb.append('}'); |
| 50 | + return sb.toString(); |
| 51 | + } |
| 52 | + |
| 53 | + public String getChromosome() { |
| 54 | + return chromosome; |
| 55 | + } |
| 56 | + |
| 57 | + public SpliceScore setChromosome(String chromosome) { |
| 58 | + this.chromosome = chromosome; |
| 59 | + return this; |
| 60 | + } |
| 61 | + |
| 62 | + public int getPosition() { |
| 63 | + return position; |
| 64 | + } |
| 65 | + |
| 66 | + public SpliceScore setPosition(int position) { |
| 67 | + this.position = position; |
| 68 | + return this; |
| 69 | + } |
| 70 | + |
| 71 | + public String getRefAllele() { |
| 72 | + return refAllele; |
| 73 | + } |
| 74 | + |
| 75 | + public SpliceScore setRefAllele(String refAllele) { |
| 76 | + this.refAllele = refAllele; |
| 77 | + return this; |
| 78 | + } |
| 79 | + |
| 80 | + public String getGeneId() { |
| 81 | + return geneId; |
| 82 | + } |
| 83 | + |
| 84 | + public SpliceScore setGeneId(String geneId) { |
| 85 | + this.geneId = geneId; |
| 86 | + return this; |
| 87 | + } |
| 88 | + |
| 89 | + public String getGeneName() { |
| 90 | + return geneName; |
| 91 | + } |
| 92 | + |
| 93 | + public SpliceScore setGeneName(String geneName) { |
| 94 | + this.geneName = geneName; |
| 95 | + return this; |
| 96 | + } |
| 97 | + |
| 98 | + public String getTranscriptId() { |
| 99 | + return transcriptId; |
| 100 | + } |
| 101 | + |
| 102 | + public SpliceScore setTranscriptId(String transcriptId) { |
| 103 | + this.transcriptId = transcriptId; |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + public String getExonId() { |
| 108 | + return exonId; |
| 109 | + } |
| 110 | + |
| 111 | + public SpliceScore setExonId(String exonId) { |
| 112 | + this.exonId = exonId; |
| 113 | + return this; |
| 114 | + } |
| 115 | + |
| 116 | + public int getExonNumber() { |
| 117 | + return exonNumber; |
| 118 | + } |
| 119 | + |
| 120 | + public SpliceScore setExonNumber(int exonNumber) { |
| 121 | + this.exonNumber = exonNumber; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + public String getSource() { |
| 126 | + return source; |
| 127 | + } |
| 128 | + |
| 129 | + public SpliceScore setSource(String source) { |
| 130 | + this.source = source; |
| 131 | + return this; |
| 132 | + } |
| 133 | + |
| 134 | + public List<SpliceScoreAlternate> getAlternates() { |
| 135 | + return alternates; |
| 136 | + } |
| 137 | + |
| 138 | + public SpliceScore setAlternates(List<SpliceScoreAlternate> alternates) { |
| 139 | + this.alternates = alternates; |
| 140 | + return this; |
| 141 | + } |
| 142 | +} |
0 commit comments