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

org.snpeff.gsa.PvaluesList Maven / Gradle / Ivy

The newest version!
package org.snpeff.gsa;

/**
 * A list of pvalues (i.e. values in the range [0, 1])
 * 
 * @author pcingola
 */
public class PvaluesList extends ScoreList {

	public PvaluesList() {
		super();
	}

	/**
	 * Add a p-value to the list
	 * @param score
	 */
	@Override
	public void add(double score) {
		if ((score < 0) || (score > 1)) throw new RuntimeException("p-value out of range: " + score);
		scores.add(score);
	}

	@Override
	protected double getDefaultValue() {
		return 1.0;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy