From 7e82e1fed011077e5cd4cc40ac8ad3519d7c47a8 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 14 Sep 2018 17:11:40 +0100 Subject: [PATCH] JAL-3116 parse EMBL XML with JAXB (todo: update unit tests) --- schemas/embl.xsd | 309 +++ schemas/embl_bindings.xml | 15 + schemas/uniprot.xsd | 5 + src/jalview/datamodel/xdb/embl/EmblEntry.java | 872 ------- src/jalview/datamodel/xdb/embl/EmblError.java | 48 - src/jalview/datamodel/xdb/embl/EmblFeature.java | 108 - src/jalview/datamodel/xdb/embl/EmblFile.java | 203 -- src/jalview/datamodel/xdb/embl/EmblSequence.java | 49 - src/jalview/datamodel/xdb/embl/Qualifier.java | 119 - src/jalview/gui/AlignFrame.java | 28 +- src/jalview/gui/AlignViewport.java | 12 +- src/jalview/gui/AlignmentPanel.java | 2 +- src/jalview/gui/CalculationChooser.java | 4 +- src/jalview/gui/FontChooser.java | 2 +- src/jalview/gui/Jalview2XML.java | 16 +- src/jalview/gui/Jalview2XML_V1.java | 2 +- src/jalview/gui/PCAPanel.java | 2 +- src/jalview/gui/SplitFrame.java | 2 +- src/jalview/gui/TreeCanvas.java | 46 +- src/jalview/gui/TreePanel.java | 121 +- src/jalview/gui/VamsasApplication.java | 4 +- src/jalview/ws/dbsources/EmblXmlSource.java | 687 +++++- src/jalview/ws/dbsources/Uniprot.java | 2 +- src/jalview/xml/binding/embl/EntrySetType.java | 76 + src/jalview/xml/binding/embl/EntryType.java | 2680 ++++++++++++++++++++++ src/jalview/xml/binding/embl/ObjectFactory.java | 159 ++ src/jalview/xml/binding/embl/ROOT.java | 96 + src/jalview/xml/binding/embl/XrefType.java | 121 + 28 files changed, 4280 insertions(+), 1510 deletions(-) create mode 100644 schemas/embl.xsd create mode 100644 schemas/embl_bindings.xml delete mode 100644 src/jalview/datamodel/xdb/embl/EmblEntry.java delete mode 100644 src/jalview/datamodel/xdb/embl/EmblError.java delete mode 100644 src/jalview/datamodel/xdb/embl/EmblFeature.java delete mode 100644 src/jalview/datamodel/xdb/embl/EmblFile.java delete mode 100644 src/jalview/datamodel/xdb/embl/EmblSequence.java delete mode 100644 src/jalview/datamodel/xdb/embl/Qualifier.java create mode 100644 src/jalview/xml/binding/embl/EntrySetType.java create mode 100644 src/jalview/xml/binding/embl/EntryType.java create mode 100644 src/jalview/xml/binding/embl/ObjectFactory.java create mode 100644 src/jalview/xml/binding/embl/ROOT.java create mode 100644 src/jalview/xml/binding/embl/XrefType.java diff --git a/schemas/embl.xsd b/schemas/embl.xsd new file mode 100644 index 0000000..1baebfe --- /dev/null +++ b/schemas/embl.xsd @@ -0,0 +1,309 @@ + + + + + + Database cross-reference. + + + + + + + + + + + + + + + + + + + + Not supported for EMBL-CDS. + + + + + + + + Patent applicant. + + + + + + The submission date (used only for submission + references). + + + + + The journal name (used only for article + references). + + + + + The publication year (used only for article + references). + + + + + The volume number (used only for article + references). + + + + + The issue number (used only for article + references). + + + + + The first page (used only for article + references). + + + + + The last page (used only for article + references). + + + + + + + + + + + + + + + + + + + + + + + + + + Sequence feature. + + + + + + + + + + + + + + + + + + + + + + + + + + + Sequence feature qualifier. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Not supported for EMBL-CDS. + + + + + + + + + + + + + + + + + Not supported for EMBL-CDS. + + + + + Not supported for EMBL-CDS. + + + + + Not supported for EMBL-CDS. + + + + + Not supported for EMBL-CDS. + + + + + + + + + + + + diff --git a/schemas/embl_bindings.xml b/schemas/embl_bindings.xml new file mode 100644 index 0000000..0f6f669 --- /dev/null +++ b/schemas/embl_bindings.xml @@ -0,0 +1,15 @@ + + + + + + + + \ No newline at end of file diff --git a/schemas/uniprot.xsd b/schemas/uniprot.xsd index 13df214..1744d37 100644 --- a/schemas/uniprot.xsd +++ b/schemas/uniprot.xsd @@ -9,6 +9,11 @@ *******************************************************************************--> +