public GWASTrack(ResourceLocator locator, String id, String name, GWASData gData, GWASParser parser) {
super(locator, id, name);
PreferenceManager prefs = PreferenceManager.getInstance();
// Set range from 0 to highest value rounded to greater integer
int maxValue = (int) Math.ceil(gData.getMaxValue());
super.setDataRange(new DataRange(0, (maxValue / 2), maxValue));
// Get default values
super.setHeight(prefs.getAsInt(PreferenceManager.GWAS_TRACK_HEIGHT));
this.minPointSize = prefs.getAsInt(PreferenceManager.GWAS_MIN_POINT_SIZE);
this.maxPointSize = prefs.getAsInt(PreferenceManager.GWAS_MAX_POINT_SIZE);
this.primaryColor = ColorUtilities.stringToColor(prefs.get(PreferenceManager.GWAS_PRIMARY_COLOR));
this.secondaryColor = ColorUtilities.stringToColor(prefs.get(PreferenceManager.GWAS_SECONDARY_COLOR));
this.singleColor = prefs.getAsBoolean(PreferenceManager.GWAS_SINGLE_COLOR);
this.alternatingColors = prefs.getAsBoolean(PreferenceManager.GWAS_ALTERNATING_COLORS);
this.useChrColors = prefs.getAsBoolean(PreferenceManager.GWAS_USE_CHR_COLORS);
this.showAxis = prefs.getAsBoolean(PreferenceManager.GWAS_SHOW_AXIS);
this.gData = gData;
this.parser = parser;