use of ubic.gemma.model.association.BioSequence2GeneProduct in project Gemma by PavlidisLab.
the class PersistentDummyObjectHelper method getTestPersistentBioSequence2GeneProducts.
/**
* @param bioSequence bio sequence
* @return bio sequence to gene products
*/
public Collection<BioSequence2GeneProduct> getTestPersistentBioSequence2GeneProducts(BioSequence bioSequence) {
Collection<BioSequence2GeneProduct> b2gCol = new HashSet<>();
BlatAssociation b2g = BlatAssociation.Factory.newInstance();
b2g.setScore(new Random().nextDouble());
b2g.setBioSequence(bioSequence);
b2g.setGeneProduct(this.getTestPersistentGeneProduct(this.getTestPersistentGene()));
b2g.setBlatResult(this.getTestPersistentBlatResult(bioSequence, null));
b2gCol.add(b2g);
// noinspection unchecked
return (Collection<BioSequence2GeneProduct>) persisterHelper.persist(b2gCol);
}
Aggregations