1 package jalview.datamodel;
3 import jalview.util.MapList;
6 * A data bean to model one or more contiguous regions on one chromosome
11 * implemented as an adapter over DBRefEntry with
12 * source -> species id
13 * version -> reference
14 * accession -> chromosome
16 private DBRefEntry loci;
18 boolean forwardStrand;
29 public GeneLoci(String taxon, String ref, String chrId, MapList map,
32 loci = new DBRefEntry(taxon, ref, chrId, new Mapping(map));
33 forwardStrand = forward;
37 * Answers the identifier for the species
41 public String getSpecies()
43 return loci.getSource();
47 * Answers the identifier for the genomic reference assembly
49 public String getReference()
51 return loci.getVersion();
55 * Answers the chromosome identifier
59 public String getChromosome()
61 return loci.getAccessionId();
65 * Answers the mapping from sequence positions (in sequence start..end
66 * coordinates) to the corresponding loci in the chromosome (in reference
67 * assembly coordinates, base 1)
71 public MapList getMapping()
73 return loci.getMap().getMap();
76 public boolean isForwardStrand()