use of ubic.gemma.model.expression.experiment.FactorValueValueObject in project Gemma by PavlidisLab.
the class ExpressionExperimentSubSetDaoImpl method getFactorValuesUsed.
@Override
public Collection<FactorValueValueObject> getFactorValuesUsed(Long subSetId, Long experimentalFactor) {
// noinspection unchecked
List<FactorValue> list = this.getSessionFactory().getCurrentSession().createQuery("select distinct fv from ExpressionExperimentSubSet es join es.bioAssays ba join ba.sampleUsed bm " + "join bm.factorValues fv where es.id=:es and fv.experimentalFactor.id = :ef ").setParameter("es", subSetId).setParameter("ef", experimentalFactor).list();
Collection<FactorValueValueObject> result = new HashSet<>();
for (FactorValue fv : list) {
result.add(new FactorValueValueObject(fv));
}
return result;
}
Aggregations