package uk.ac.ebi.atlas.markergenes;

import com.google.auto.value.AutoValue;

@AutoValue
public abstract class MarkerGene {
    static MarkerGene create(String geneId, String experimentAccession, int perplexity, int clusterId, double p) {
        return new AutoValue_MarkerGene(geneId, experimentAccession, perplexity, clusterId, p);
    }

    public abstract String geneId();
    public abstract String experimentAccession();
    public abstract int perplexity();
    public abstract int clusterId();
    public abstract double p();
}

@@ -70,16 +70,60 @@
 toValue;
+%0Aimport org.apache.commons.lang3.tuple.Pair;
 %0A%0A@AutoV
@@ -166,16 +166,23 @@
 e %7B%0A    
+public 
 static M
@@ -387,16 +387,356 @@
 %0A    %7D%0A%0A
+    public static MarkerGene create(String geneId, String experimentAccession,%0A                                    Pair%3CInteger, Integer%3E perplexityAndClusterId, double p) %7B%0A        return new AutoValue_MarkerGene(geneId, experimentAccession,%0A                perplexityAndClusterId.getLeft(), perplexityAndClusterId.getRight(), p);%0A    %7D%0A%0A%0A
     publ

Add utility constructor that takes a Pair of Integers [#147104069]