All Downloads are FREE. Search and download functionalities are using the official Maven repository.

umcg.genetica.io.gwascatalog.GWASPublication Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package umcg.genetica.io.gwascatalog;

import java.util.HashMap;
import java.util.HashSet;
import umcg.genetica.containers.Pair;

/**
 *
 * @author harmjan
 */
public class GWASPublication {

    HashSet traits = new HashSet();
    HashSet snps = new HashSet();
    HashSet loci = new HashSet();
    HashMap, Double> assoc = new HashMap, Double>();
    int id;
    String name;

    public void setPValueAssociatedWithTrait(GWASSNP gwasSNPObj, GWASTrait traitObj, Double pval) {
        assoc.put(new Pair(traitObj, gwasSNPObj), pval);
    }

    public Double getPValueAssociatedWithTrait(GWASSNP gwasSNPObj, GWASTrait traitObj) {
        return assoc.get(new Pair(traitObj, gwasSNPObj));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy