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

org.opencb.biodata.models.clinical.qc.SampleQcVariantStats Maven / Gradle / Ivy

The newest version!
/*
 * 
 *
 */

package org.opencb.biodata.models.clinical.qc;

import org.opencb.biodata.models.constants.FieldConstants;
import org.opencb.biodata.models.variant.metadata.SampleVariantStats;
import org.opencb.commons.annotations.DataField;

import java.util.Map;

//To force github actions to compile
public class SampleQcVariantStats {

    @DataField(id = "id", indexed = true,
            description = FieldConstants.GENERIC_ID_DESCRIPTION)
    private String id;

    @DataField(id = "description", indexed = true,
            description = FieldConstants.GENERIC_DESCRIPTION_DESCRIPTION)
    private String description;

    @DataField(id = "query", indexed = true,
            description = FieldConstants.GENERIC_QUERY_DESCRIPTION)
    private Map query;

    @DataField(id = "stats", indexed = true, uncommentedClasses = {"SampleVariantStats"},
            description = FieldConstants.SAMPLE_QC_VARIANT_STATS_STATS)
    private SampleVariantStats stats;

    @DataField(id = "sampleId", indexed = true,
            description = FieldConstants.SAMPLE_QC_VARIANT_STATS_STATS)
    @Deprecated
    private String sampleId;
    @Deprecated
    private Signature signature;
    @Deprecated
    private QcVariantStats qcVariantStats;

    public SampleQcVariantStats() {
    }

    @Deprecated
    public SampleQcVariantStats(String id, String sampleId, String description, Map query, Signature signature,
                                QcVariantStats qcVariantStats) {
        this.id = id;
        this.sampleId = sampleId;
        this.description = description;
        this.query = query;
        this.signature = signature;
        this.qcVariantStats = qcVariantStats;
    }

    public SampleQcVariantStats(String id, String description, Map query, SampleVariantStats stats) {
        this.id = id;
        this.description = description;
        this.query = query;
        this.stats = stats;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SampleQcVariantStats{");
        sb.append("id='").append(id).append('\'');
        sb.append(", description='").append(description).append('\'');
        sb.append(", query=").append(query);
        sb.append(", stats=").append(stats);
        sb.append('}');
        return sb.toString();
    }

    public String getId() {
        return id;
    }

    public SampleQcVariantStats setId(String id) {
        this.id = id;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public SampleQcVariantStats setDescription(String description) {
        this.description = description;
        return this;
    }

    public Map getQuery() {
        return query;
    }

    public SampleQcVariantStats setQuery(Map query) {
        this.query = query;
        return this;
    }

    public SampleVariantStats getStats() {
        return stats;
    }

    public SampleQcVariantStats setStats(SampleVariantStats stats) {
        this.stats = stats;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy