*/
public abstract class EnsemblSeqProxy extends EnsemblRestClient
{
- protected static final String NAME = "Name";
-
protected static final String DESCRIPTION = "description";
/*
}
/**
- * Parses a JSON response into a list of sequences
+ * Parses a JSON response for a single sequence ID query
*
* @param br
- * @return
+ * @return a single jalview.datamodel.Sequence
* @see http://rest.ensembl.org/documentation/info/sequence_id
*/
protected List<SequenceI> parseSequenceJson(BufferedReader br)
protected boolean featureMayBelong(SequenceFeature sf, String identifier)
{
String parent = (String) sf.getValue(PARENT);
- // using contains to allow for prefix "gene:", "transcript:" etc
if (parent != null
- && !parent.toUpperCase().contains(identifier.toUpperCase()))
+ && !parent.equalsIgnoreCase(identifier))
{
// this genomic feature belongs to a different transcript
return false;
return true;
}
+ /**
+ * Answers a short description of the sequence fetcher
+ */
@Override
public String getDescription()
{