git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2738 tidy Javadoc, remove debug logging
[jalview.git]
/
src
/
jalview
/
ext
/
ensembl
/
EnsemblSeqProxy.java
diff --git
a/src/jalview/ext/ensembl/EnsemblSeqProxy.java
b/src/jalview/ext/ensembl/EnsemblSeqProxy.java
index
577111e
..
35ceea3
100644
(file)
--- a/
src/jalview/ext/ensembl/EnsemblSeqProxy.java
+++ b/
src/jalview/ext/ensembl/EnsemblSeqProxy.java
@@
-34,6
+34,7
@@
import jalview.datamodel.features.SequenceFeatures;
import jalview.exceptions.JalviewException;
import jalview.io.FastaFile;
import jalview.io.FileParse;
import jalview.exceptions.JalviewException;
import jalview.io.FastaFile;
import jalview.io.FileParse;
+import jalview.io.gff.Gff3Helper;
import jalview.io.gff.SequenceOntologyFactory;
import jalview.io.gff.SequenceOntologyI;
import jalview.util.Comparison;
import jalview.io.gff.SequenceOntologyFactory;
import jalview.io.gff.SequenceOntologyI;
import jalview.util.Comparison;
@@
-59,8
+60,6
@@
import java.util.Map.Entry;
*/
public abstract class EnsemblSeqProxy extends EnsemblRestClient
{
*/
public abstract class EnsemblSeqProxy extends EnsemblRestClient
{
- private static final String ALLELES = "alleles";
-
protected static final String PARENT = "Parent";
protected static final String ID = "ID";
protected static final String PARENT = "Parent";
protected static final String ID = "ID";
@@
-717,7
+716,7
@@
public abstract class EnsemblSeqProxy extends EnsemblRestClient
*/
static void reverseComplementAlleles(SequenceFeature sf)
{
*/
static void reverseComplementAlleles(SequenceFeature sf)
{
- final String alleles = (String) sf.getValue(ALLELES);
+ final String alleles = (String) sf.getValue(Gff3Helper.ALLELES);
if (alleles == null)
{
return;
if (alleles == null)
{
return;
@@
-728,7
+727,7
@@
public abstract class EnsemblSeqProxy extends EnsemblRestClient
reverseComplementAllele(complement, allele);
}
String comp = complement.toString();
reverseComplementAllele(complement, allele);
}
String comp = complement.toString();
- sf.setValue(ALLELES, comp);
+ sf.setValue(Gff3Helper.ALLELES, comp);
sf.setDescription(comp);
/*
sf.setDescription(comp);
/*
@@
-738,7
+737,8
@@
public abstract class EnsemblSeqProxy extends EnsemblRestClient
String atts = sf.getAttributes();
if (atts != null)
{
String atts = sf.getAttributes();
if (atts != null)
{
- atts = atts.replace(ALLELES + "=" + alleles, ALLELES + "=" + comp);
+ atts = atts.replace(Gff3Helper.ALLELES + "=" + alleles,
+ Gff3Helper.ALLELES + "=" + comp);
sf.setAttributes(atts);
}
}
sf.setAttributes(atts);
}
}