Class ArrayDesignProbeMapperServiceImpl
java.lang.Object
ubic.gemma.core.loader.expression.arrayDesign.ArrayDesignProbeMapperServiceImpl
- All Implemented Interfaces:
ArrayDesignProbeMapperService
@Component
public class ArrayDesignProbeMapperServiceImpl
extends Object
implements ArrayDesignProbeMapperService
For an array design, generate gene product mappings for the sequences.
- Author:
- pavlidis
-
Constructor Summary
ConstructorsConstructorDescriptionArrayDesignProbeMapperServiceImpl(AnnotationAssociationService annotationAssociationService, ArrayDesignAnnotationService arrayDesignAnnotationService, ArrayDesignReportService arrayDesignReportService, ArrayDesignService arrayDesignService, ProbeMapper probeMapper, BioSequenceService bioSequenceService, BlatResultService blatResultService, CompositeSequenceService compositeSequenceService, ExpressionDataFileService expressionDataFileService, GeneProductService geneProductService, GeneService geneService, Persister persisterHelper, org.springframework.core.task.TaskExecutor taskExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteOldFiles(ArrayDesign arrayDesign) Delete outdated annotation and associated experiment files.voidprintResult(CompositeSequence compositeSequence, Collection<BlatAssociation> col) Print results to STDOUTvoidprocessArrayDesign(ArrayDesign arrayDesign) Do probe mapping, writing the results to the database and using default settings.voidprocessArrayDesign(ArrayDesign arrayDesign, ProbeMapperConfig config, boolean useDB) voidprocessArrayDesign(ArrayDesign arrayDesign, Taxon taxon, File source, ExternalDatabase sourceDB, boolean ncbiIds) Annotate an array design using a direct source file.processCompositeSequence(ProbeMapperConfig config, Taxon taxon, GoldenPathSequenceAnalysis goldenPathDb, CompositeSequence compositeSequence)
-
Constructor Details
-
ArrayDesignProbeMapperServiceImpl
@Autowired public ArrayDesignProbeMapperServiceImpl(AnnotationAssociationService annotationAssociationService, ArrayDesignAnnotationService arrayDesignAnnotationService, ArrayDesignReportService arrayDesignReportService, ArrayDesignService arrayDesignService, ProbeMapper probeMapper, BioSequenceService bioSequenceService, BlatResultService blatResultService, CompositeSequenceService compositeSequenceService, ExpressionDataFileService expressionDataFileService, GeneProductService geneProductService, GeneService geneService, Persister persisterHelper, org.springframework.core.task.TaskExecutor taskExecutor)
-
-
Method Details
-
printResult
Description copied from interface:ArrayDesignProbeMapperServicePrint results to STDOUT- Specified by:
printResultin interfaceArrayDesignProbeMapperService- Parameters:
compositeSequence- composite sequencecol- blat associations
-
processArrayDesign
Description copied from interface:ArrayDesignProbeMapperServiceDo probe mapping, writing the results to the database and using default settings.- Specified by:
processArrayDesignin interfaceArrayDesignProbeMapperService- Parameters:
arrayDesign- AD
-
processArrayDesign
@Transactional(propagation=NEVER) public void processArrayDesign(ArrayDesign arrayDesign, ProbeMapperConfig config, boolean useDB) - Specified by:
processArrayDesignin interfaceArrayDesignProbeMapperService- Parameters:
arrayDesign- ADconfig- configuseDB- if false, the results will not be written to the database, but printed to stdout instead.
-
processArrayDesign
@Transactional(propagation=NEVER) public void processArrayDesign(ArrayDesign arrayDesign, Taxon taxon, File source, ExternalDatabase sourceDB, boolean ncbiIds) throws IOException Description copied from interface:ArrayDesignProbeMapperServiceAnnotate an array design using a direct source file. This should only be used if we can't run sequence analysis ourselves. The expected file format is tab-delimited with the following columns:- Probe name which must match the probe names Gemma uses for the array design.
- Sequence name. If blank, it will be ignored but the probe will still be mapped if possible. The probe will be skipped if it isn't already associated with a sequence. If not blank, it will be checked against the sequence for the probe. If the probe has no sequence, it will be used to create one. If it does, it will be checked for a name match.
- Gene symbol. More than one gene can be specified, delimited by '|'. Genes will only be found if Gemma has a unambiguous match to the name. The gene must already exist in the system.
- Specified by:
processArrayDesignin interfaceArrayDesignProbeMapperService- Parameters:
arrayDesign- ADtaxon- We require this to ensure correct association of the sequences with the genes.source- sourcesourceDB- describes where the annotations came from. Can be null if you really don't know.ncbiIds- true if the values provided are ncbi ids, not gene symbols (ncbi ids are more reliable)- Throws:
IOException- when IO problems occur.
-
processCompositeSequence
@Transactional(propagation=NEVER) public Map<String, Collection<BlatAssociation>> processCompositeSequence(ProbeMapperConfig config, Taxon taxon, GoldenPathSequenceAnalysis goldenPathDb, CompositeSequence compositeSequence) - Specified by:
processCompositeSequencein interfaceArrayDesignProbeMapperService
-
deleteOldFiles
Description copied from interface:ArrayDesignProbeMapperServiceDelete outdated annotation and associated experiment files.- Specified by:
deleteOldFilesin interfaceArrayDesignProbeMapperService- Parameters:
arrayDesign- platform
-