org.opencb.biodata.models.clinical.interpretation.GenomicFeature Maven / Gradle / Ivy
The newest version!
/*
*
*
*/
package org.opencb.biodata.models.clinical.interpretation;
import org.opencb.biodata.models.core.Xref;
import org.opencb.biodata.models.variant.avro.SequenceOntologyTerm;
import java.util.List;
public class GenomicFeature {
private String id;
private String type; // GENE, VARIANT, REGION,...
private String transcriptId;
private String geneName;
private List consequenceTypes;
private List xrefs;
public GenomicFeature() {
}
public GenomicFeature(String id, String type, String transcriptId, String geneName, List consequenceTypes,
List xrefs) {
this.id = id;
this.type = type;
this.transcriptId = transcriptId;
this.geneName = geneName;
this.consequenceTypes = consequenceTypes;
this.xrefs = xrefs;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("GenomicFeature{");
sb.append("id='").append(id).append('\'');
sb.append(", type='").append(type).append('\'');
sb.append(", transcriptId='").append(transcriptId).append('\'');
sb.append(", geneName='").append(geneName).append('\'');
sb.append(", consequenceTypes=").append(consequenceTypes);
sb.append(", xrefs=").append(xrefs);
sb.append('}');
return sb.toString();
}
public String getId() {
return id;
}
public GenomicFeature setId(String id) {
this.id = id;
return this;
}
public String getType() {
return type;
}
public GenomicFeature setType(String type) {
this.type = type;
return this;
}
public String getTranscriptId() {
return transcriptId;
}
public GenomicFeature setTranscriptId(String transcriptId) {
this.transcriptId = transcriptId;
return this;
}
public String getGeneName() {
return geneName;
}
public GenomicFeature setGeneName(String geneName) {
this.geneName = geneName;
return this;
}
public List getConsequenceTypes() {
return consequenceTypes;
}
public GenomicFeature setConsequenceTypes(List consequenceTypes) {
this.consequenceTypes = consequenceTypes;
return this;
}
public List getXrefs() {
return xrefs;
}
public GenomicFeature setXrefs(List xrefs) {
this.xrefs = xrefs;
return this;
}
}