Search in sources :

Example 1 with EvidenceSourceValueObject

use of ubic.gemma.model.genome.gene.phenotype.valueObject.EvidenceSourceValueObject in project Gemma by PavlidisLab.

the class EvidenceImporterAbstractCLI method makeEvidenceSource.

EvidenceSourceValueObject makeEvidenceSource(String databaseID, String externalDatabaseName) {
    EvidenceSourceValueObject evidenceSourceValueObject = null;
    if (databaseID != null && externalDatabaseName != null && !externalDatabaseName.isEmpty()) {
        ExternalDatabaseValueObject externalDatabase = new ExternalDatabaseValueObject();
        externalDatabase.setName(externalDatabaseName);
        evidenceSourceValueObject = new EvidenceSourceValueObject(databaseID, externalDatabase);
    }
    return evidenceSourceValueObject;
}
Also used : ExternalDatabaseValueObject(ubic.gemma.model.common.description.ExternalDatabaseValueObject) EvidenceSourceValueObject(ubic.gemma.model.genome.gene.phenotype.valueObject.EvidenceSourceValueObject)

Aggregations

ExternalDatabaseValueObject (ubic.gemma.model.common.description.ExternalDatabaseValueObject)1 EvidenceSourceValueObject (ubic.gemma.model.genome.gene.phenotype.valueObject.EvidenceSourceValueObject)1