package jalview.datamodel;
import jalview.api.DBRefEntryI;
-import jalview.io.vamsas.Dbref;
import jalview.util.DBRefUtils;
import jalview.util.MapList;
public class DBRefEntry implements DBRefEntryI
{
- /*
- * the mapping to chromosome (genome) is held as an instance with
- * source = speciesId
- * version = assemblyId
- * accessionId = "chromosome:" + chromosomeId
- * map = mapping from sequence to reference assembly
- */
- public static final String CHROMOSOME = "chromosome";
-
- private String source = "";
+ String source = "";
private String version = "";
String canonicalSourceName;
-
- /**
+ /*
* maps from associated sequence to the database sequence's coordinate system
*/
Mapping map = null;
{
}
-/**
- *
- * @param source may not be null
- * @param version may be null
- * @param accessionId may be null
- */
+
+ /**
+ *
+ * @param source
+ * may not be null
+ * @param version
+ * may be null
+ * @param accessionId
+ * may be null
+ */
public DBRefEntry(String source, String version, String accessionId)
{
this(source, version, accessionId, null);
}
/**
- * Mappings to chromosome are held with accessionId as "chromosome:id"
- *
- * @return
- */
- public boolean isChromosome()
- {
- return accessionId != null && accessionId.startsWith(CHROMOSOME + ":");
- }
-
- /**
* stores the upper-case canonical name of the source for use in
* Sequence.getPrimaryDBRefs().
*
public String getCanonicalSourceName() {
return (canonicalSourceName == null ? (canonicalSourceName = DBRefUtils.getCanonicalName(this.source)) : canonicalSourceName);
}
-
-
}