JAL-1705 concrete classes for different ENSEMBL sequence retrieval modes
authorJim Procter <jprocter@issues.jalview.org>
Sun, 28 Jun 2015 16:11:41 +0000 (17:11 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 28 Jun 2015 16:11:41 +0000 (17:11 +0100)
src/jalview/ext/ensembl/EnsemblCdna.java [new file with mode: 0644]
src/jalview/ext/ensembl/EnsemblCds.java [new file with mode: 0644]
src/jalview/ext/ensembl/EnsemblGenome.java [new file with mode: 0644]
src/jalview/ext/ensembl/EnsemblProtein.java [new file with mode: 0644]
src/jalview/ext/ensembl/EnsemblTranscript.java [new file with mode: 0644]

diff --git a/src/jalview/ext/ensembl/EnsemblCdna.java b/src/jalview/ext/ensembl/EnsemblCdna.java
new file mode 100644 (file)
index 0000000..4fc80ca
--- /dev/null
@@ -0,0 +1,25 @@
+package jalview.ext.ensembl;
+
+import jalview.ext.ensembl.SeqFetcher.EnsemblSeqType;
+
+public class EnsemblCdna extends EnsemblSeqProxy
+{
+
+  public EnsemblCdna() throws Exception
+  {
+    super();
+  }
+
+  @Override
+  public String getDbName()
+  {
+    return "ENSEMBL (CDNA)";
+  }
+
+  @Override
+  protected EnsemblSeqType getSourceEnsemblType()
+  {
+    return EnsemblSeqType.CDNA;
+  }
+
+}
diff --git a/src/jalview/ext/ensembl/EnsemblCds.java b/src/jalview/ext/ensembl/EnsemblCds.java
new file mode 100644 (file)
index 0000000..1f63e05
--- /dev/null
@@ -0,0 +1,25 @@
+package jalview.ext.ensembl;
+
+import jalview.ext.ensembl.SeqFetcher.EnsemblSeqType;
+
+public class EnsemblCds extends EnsemblSeqProxy
+{
+
+  public EnsemblCds() throws Exception
+  {
+    super();
+  }
+
+  @Override
+  public String getDbName()
+  {
+    return "ENSEMBL (CDS)";
+  }
+
+  @Override
+  protected EnsemblSeqType getSourceEnsemblType()
+  {
+    return EnsemblSeqType.CDS;
+  }
+
+}
diff --git a/src/jalview/ext/ensembl/EnsemblGenome.java b/src/jalview/ext/ensembl/EnsemblGenome.java
new file mode 100644 (file)
index 0000000..37e8e2b
--- /dev/null
@@ -0,0 +1,25 @@
+package jalview.ext.ensembl;
+
+import jalview.ext.ensembl.SeqFetcher.EnsemblSeqType;
+
+public class EnsemblGenome extends EnsemblSeqProxy
+{
+
+  public EnsemblGenome() throws Exception
+  {
+    super();
+  }
+
+  @Override
+  public String getDbName()
+  {
+    return "ENSEMBL (Genome)";
+  }
+
+  @Override
+  protected EnsemblSeqType getSourceEnsemblType()
+  {
+    return EnsemblSeqType.GENOMIC;
+  }
+
+}
diff --git a/src/jalview/ext/ensembl/EnsemblProtein.java b/src/jalview/ext/ensembl/EnsemblProtein.java
new file mode 100644 (file)
index 0000000..db8d9d5
--- /dev/null
@@ -0,0 +1,25 @@
+package jalview.ext.ensembl;
+
+import jalview.ext.ensembl.SeqFetcher.EnsemblSeqType;
+
+public class EnsemblProtein extends EnsemblSeqProxy
+{
+
+  public EnsemblProtein() throws Exception
+  {
+    super();
+  }
+
+  @Override
+  public String getDbName()
+  {
+    return "ENSEMBL (Protein)";
+  }
+
+  @Override
+  protected EnsemblSeqType getSourceEnsemblType()
+  {
+    return EnsemblSeqType.PROTEIN;
+  }
+
+}
diff --git a/src/jalview/ext/ensembl/EnsemblTranscript.java b/src/jalview/ext/ensembl/EnsemblTranscript.java
new file mode 100644 (file)
index 0000000..68ed310
--- /dev/null
@@ -0,0 +1,25 @@
+package jalview.ext.ensembl;
+
+import jalview.ext.ensembl.SeqFetcher.EnsemblSeqType;
+
+public class EnsemblTranscript extends EnsemblSeqProxy
+{
+
+  public EnsemblTranscript() throws Exception
+  {
+    super();
+  }
+
+  @Override
+  public String getDbName()
+  {
+    return "ENSEMBL (Protein)";
+  }
+
+  @Override
+  protected EnsemblSeqType getSourceEnsemblType()
+  {
+    return EnsemblSeqType.PROTEIN;
+  }
+
+}