001/*
002 *                    BioJava development code
003 *
004 * This code may be freely distributed and modified under the
005 * terms of the GNU Lesser General Public Licence.  This should
006 * be distributed with the code.  If you do not have a copy,
007 * see:
008 *
009 *      http://www.gnu.org/copyleft/lesser.html
010 *
011 * Copyright for this code is held jointly by the individual
012 * authors.  These should be listed in @author doc comments.
013 *
014 * For more information on the BioJava project and its aims,
015 * or to join the biojava-l mailing list, visit the home page
016 * at:
017 *
018 *      http://www.biojava.org/
019 *
020 * created at 28 Jan 2014
021 * Author: Andreas Prlic
022 */
023
024package org.biojava.nbio.genome.parsers.genename;
025
026import java.io.Serializable;
027
028/** 
029 * A simple bean that contains gene name information as available from www.genenames.org
030 *
031 * @author Andreas Prlic
032 *
033 */
034public class GeneName implements Serializable, Comparable<GeneName>{
035        //[HGNC ID, Approved Symbol, Approved Name, Status, Previous Symbols, Previous Names, Synonyms,
036        // Chromosome, Accession Numbers, RefSeq IDs,Uniprot]
037
038        private static final long serialVersionUID = -7163977639324764020L;
039        
040        private String hgncId;
041        private String approvedSymbol;
042        private String approvedName;
043        private String status;
044        private String previousSymbols;
045        private String previousNames;
046        private String synonyms;
047        private String chromosome;
048        private String accessionNr;
049        private String refseqIds;
050        private String uniprot;
051        private String omimId;
052        private String ensemblGeneId;
053
054        public String getHgncId() {
055                return hgncId;
056        }
057        public void setHgncId(String hgncId) {
058                this.hgncId = hgncId;
059        }
060        public String getApprovedSymbol() {
061                return approvedSymbol;
062        }
063        public void setApprovedSymbol(String approvedSymbol) {
064                this.approvedSymbol = approvedSymbol;
065        }
066        public String getApprovedName() {
067                return approvedName;
068        }
069        public void setApprovedName(String approvedName) {
070                this.approvedName = approvedName;
071        }
072        public String getStatus() {
073                return status;
074        }
075        public void setStatus(String status) {
076                this.status = status;
077        }
078        public String getPreviousSymbols() {
079                return previousSymbols;
080        }
081        public void setPreviousSymbols(String previousSymbols) {
082                this.previousSymbols = previousSymbols;
083        }
084        public String getPreviousNames() {
085                return previousNames;
086        }
087        public void setPreviousNames(String previousNames) {
088                this.previousNames = previousNames;
089        }
090        public String getSynonyms() {
091                return synonyms;
092        }
093        public void setSynonyms(String synonyms) {
094                this.synonyms = synonyms;
095        }
096        public String getChromosome() {
097                return chromosome;
098        }
099        public void setChromosome(String chromosome) {
100                this.chromosome = chromosome;
101        }
102        public String getAccessionNr() {
103                return accessionNr;
104        }
105        public void setAccessionNr(String accessionNr) {
106                this.accessionNr = accessionNr;
107        }
108        public String getRefseqIds() {
109                return refseqIds;
110        }
111        public void setRefseqIds(String refseqIds) {
112                this.refseqIds = refseqIds;
113        }
114        public String getUniprot() {
115                return uniprot;
116        }
117        public void setUniprot(String uniprot) {
118                this.uniprot = uniprot;
119        }
120
121        public String getEnsemblGeneId() {
122                return ensemblGeneId;
123        }
124        public void setEnsemblGeneId(String ensemblGeneId) {
125                this.ensemblGeneId = ensemblGeneId;
126        }
127        public String getOmimId() {
128                return omimId;
129        }
130        public void setOmimId(String omimId) {
131                this.omimId = omimId;
132        }
133        @Override
134        public int compareTo(GeneName o) {
135                return hgncId.compareTo(o.getHgncId());
136        }
137
138        public boolean equals(GeneName o){
139                return hgncId.equals(o.getHgncId());
140        }
141        @Override
142        public String toString() {
143                return "GeneName [hgncId=" + hgncId + ", approvedSymbol="
144                                + approvedSymbol + ", approvedName=" + approvedName
145                                + ", status=" + status + ", previousSymbols=" + previousSymbols
146                                + ", previousNames=" + previousNames + ", synonyms=" + synonyms
147                                + ", chromosome=" + chromosome + ", accessionNr=" + accessionNr
148                                + ", refseqIds=" + refseqIds + ", uniprot=" + uniprot
149                                + ", omimId=" + omimId + ", ensemblGeneId=" + ensemblGeneId
150                                + "]";
151        }
152
153}