if (protein == null)
{
protein = new Sequence(data.proteinId, data.translation);
+ protein.setDescription(data.proteinName);
proteins.put(data.proteinId, protein);
}
// assuming CDSPROTEIN sequence version = dna version (?!)
+ "DE Severe acute respiratory syndrome coronavirus 2 isolate Wuhan-Hu-1,\n"
+ "FT CDS 3..17\n"
+ "FT /protein_id=\"QHD43415.1\"\n"
+ + "FT /product=\"orf1ab polyprotein\"\n"
+ "FT /translation=\"MRKLD\n"
+ "SQ Sequence 7496 BP; 2450 A; 1290 C; 1434 G; 2322 T; 0 other;\n"
+ " ggatGcgtaa gttagacgaa attttgtctt tgcgcacaga 40\n";
mapping = dbref.getMap();
SequenceI mapTo = mapping.getTo();
assertEquals(mapTo.getName(), "QHD43415.1");
+ assertEquals(mapTo.getDescription(), "orf1ab polyprotein");
assertEquals(mapTo.getSequenceAsString(), "MRKLD");
map = mapping.getMap();
assertEquals(map.getFromLowest(), 3);