An object relational mapping of UniProtKB to a database and/or Java objects using Hibernate.
This projects uses the UniProt XML schema to auto-generate Java code as well as a relational database mapping.
URL u = UniProtTools.getURLforXML(accession);
InputStream inStream = u.openStream();
Uniprot up = UniProtTools.readUniProtFromInputStream(inStream);
- Check out the code
- After running
mvn install
you can immediately parse UniProt XML files.
Once the initial code/database have been created any UniProt-XML file can get parsed and loaded into a database (however the code also works without a database by just reading UniProt XML files).
See here for how to load into a database.
This project can map UniProt isoforms to alternative transcripts using BioJava. For an example see isoforms.md
A database that is maintained using this code base is used for the UniProt section of the RCSB PDB Protein Feature View that is available from e.g. here.
Release on Maven Central