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

org.opencb.biodata.tools.variant.stats.AggregationUtils Maven / Gradle / Ivy

package org.opencb.biodata.tools.variant.stats;

import org.apache.commons.lang3.StringUtils;
import org.opencb.biodata.models.variant.metadata.Aggregation;

/**
 * Created on 16/08/17.
 *
 * @author Jacobo Coll <[email protected]>
 */
public class AggregationUtils {

    public static boolean isAggregated(Aggregation aggregation) {
        return aggregation != null && !aggregation.equals(Aggregation.NONE);
    }

    public static Aggregation valueOf(String aggregation) {
        return StringUtils.isEmpty(aggregation) ? Aggregation.NONE : Aggregation.valueOf(aggregation.toUpperCase());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy