private static Mapping map;
/**
- * configurable parameter controlling prefixing of entry names with accessions
- */
- private boolean includeAllIds = false;
-
- /**
* Constructor
*/
public Uniprot()
*/
public SequenceI uniprotEntryToSequenceI(UniprotEntry entry)
{
- String id = getUniprotEntryId(entry, includeAllIds);
+ String id = getUniprotEntryId(entry);
SequenceI sequence = new Sequence(id,
entry.getUniprotSequence().getContent());
sequence.setDescription(getUniprotEntryDescription(entry));
* UniprotEntry
* @return The accession id(s) and name(s) delimited by '|'.
*/
- public static String getUniprotEntryId(UniprotEntry entry,
- boolean includeAllIds)
+ public static String getUniprotEntryId(UniprotEntry entry)
{
StringBuilder name = new StringBuilder(32);
- if (includeAllIds)
- {
- // // use 'canonicalised' name for optimal id matching
- name.append(DBRefSource.UNIPROT);
- for (String accessionId : entry.getAccession())
- {
- name.append(BAR_DELIMITER);
- name.append(accessionId);
- }
-
- }
for (String n : entry.getName())
{
if (name.length() > 0)