Search in sources :

Example 11 with BioSequence2GeneProduct

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);
}
Also used : BioSequence2GeneProduct(ubic.gemma.model.association.BioSequence2GeneProduct) BlatAssociation(ubic.gemma.model.genome.sequenceAnalysis.BlatAssociation)

Aggregations

BioSequence2GeneProduct (ubic.gemma.model.association.BioSequence2GeneProduct)11 CompositeSequence (ubic.gemma.model.expression.designElement.CompositeSequence)6 Gene (ubic.gemma.model.genome.Gene)5 BlatAssociation (ubic.gemma.model.genome.sequenceAnalysis.BlatAssociation)4 HashSet (java.util.HashSet)2 CompositeSequenceValueObject (ubic.gemma.model.expression.designElement.CompositeSequenceValueObject)2 BioSequence (ubic.gemma.model.genome.biosequence.BioSequence)2 GeneProduct (ubic.gemma.model.genome.gene.GeneProduct)2 BlatResult (ubic.gemma.model.genome.sequenceAnalysis.BlatResult)2 org.hibernate (org.hibernate)1 HibernateTemplate (org.springframework.orm.hibernate3.HibernateTemplate)1 OntologyTerm (ubic.basecode.ontology.model.OntologyTerm)1 GeneMappingSummary (ubic.gemma.core.analysis.sequence.GeneMappingSummary)1 DatabaseEntry (ubic.gemma.model.common.description.DatabaseEntry)1 DesignElementDataVector (ubic.gemma.model.expression.bioAssayData.DesignElementDataVector)1 ExperimentalFactor (ubic.gemma.model.expression.experiment.ExperimentalFactor)1 PhysicalLocation (ubic.gemma.model.genome.PhysicalLocation)1 GeneProductValueObject (ubic.gemma.model.genome.gene.GeneProductValueObject)1 GeneValueObject (ubic.gemma.model.genome.gene.GeneValueObject)1 AnnotationAssociation (ubic.gemma.model.genome.sequenceAnalysis.AnnotationAssociation)1