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

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

The newest version!
/*
 * 
 *
 */

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

import org.opencb.biodata.models.constants.FieldConstants;
import org.opencb.commons.annotations.DataField;
import org.opencb.commons.datastore.core.ObjectMap;

import java.util.List;

public class SignatureFitting {

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

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

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

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

    @DataField(id = "scores", indexed = true, uncommentedClasses = {"Score"},
            description = FieldConstants.SIGNATURE_FITTING_SCORES_DESCRIPTION)
    private List scores;

    @Deprecated
    @DataField(id = "coeff", indexed = true,
            description = FieldConstants.SIGNATURE_FITTING_COEFF_DESCRIPTION)
    private double coeff;

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

    @DataField(id = "files", indexed = true,
            description = FieldConstants.SIGNATURE_FITTING_FILE_DESCRIPTION)
    private List files;

    @DataField(id = "params", indexed = false,
            description = FieldConstants.SIGNATURE_FITTING_PARAMS_DESCRIPTION)
    private ObjectMap params;

    public SignatureFitting() {
    }

    @Deprecated
    public SignatureFitting(String method, String signatureSource, String signatureVersion, List scores,
                            double coeff, String file) {
        this.method = method;
        this.signatureSource = signatureSource;
        this.signatureVersion = signatureVersion;
        this.scores = scores;
        this.coeff = coeff;
        this.file = file;
    }

    @Deprecated
    public SignatureFitting(String method, String signatureSource, String signatureVersion, List scores,
                            double coeff, String file, List files, ObjectMap params) {
        this.method = method;
        this.signatureSource = signatureSource;
        this.signatureVersion = signatureVersion;
        this.scores = scores;
        this.coeff = coeff;
        this.file = file;
        this.files = files;
        this.params = params;
    }

    public SignatureFitting(String id, String method, String signatureSource, String signatureVersion, List scores,
                            double coeff, String file, List files, ObjectMap params) {
        this.method = method;
        this.signatureSource = signatureSource;
        this.signatureVersion = signatureVersion;
        this.scores = scores;
        this.coeff = coeff;
        this.file = file;
        this.files = files;
        this.params = params;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SignatureFittingScore{");
        sb.append("id='").append(id).append('\'');
        sb.append("method='").append(method).append('\'');
        sb.append(", signatureSource='").append(signatureSource).append('\'');
        sb.append(", signatureVersion='").append(signatureVersion).append('\'');
        sb.append(", scores=").append(scores);
        sb.append(", coeff=").append(coeff);
        sb.append(", file='").append(file).append('\'');
        sb.append(", files=").append(files);
        sb.append(", params=").append(params);
        sb.append('}');
        return sb.toString();
    }

    public String getId() {
        return id;
    }

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

    public String getMethod() {
        return method;
    }

    public SignatureFitting setMethod(String method) {
        this.method = method;
        return this;
    }

    public String getSignatureSource() {
        return signatureSource;
    }

    public SignatureFitting setSignatureSource(String signatureSource) {
        this.signatureSource = signatureSource;
        return this;
    }

    public String getSignatureVersion() {
        return signatureVersion;
    }

    public SignatureFitting setSignatureVersion(String signatureVersion) {
        this.signatureVersion = signatureVersion;
        return this;
    }

    public List getScores() {
        return scores;
    }

    public SignatureFitting setScores(List scores) {
        this.scores = scores;
        return this;
    }

    public double getCoeff() {
        return coeff;
    }

    public SignatureFitting setCoeff(double coeff) {
        this.coeff = coeff;
        return this;
    }

    public String getFile() {
        return file;
    }

    public SignatureFitting setFile(String file) {
        this.file = file;
        return this;
    }

    public List getFiles() {
        return files;
    }

    public SignatureFitting setFiles(List files) {
        this.files = files;
        return this;
    }

    public ObjectMap getParams() {
        return params;
    }

    public SignatureFitting setParams(ObjectMap params) {
        this.params = params;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy