Class SequencingMetadataFileDataLoader
java.lang.Object
ubic.gemma.core.loader.expression.AbstractDelegatingDataLoader
ubic.gemma.core.loader.expression.sequencing.AbstractDelegatingSequencingDataLoader
ubic.gemma.core.loader.expression.sequencing.SequencingMetadataFileDataLoader
- All Implemented Interfaces:
Closeable,AutoCloseable,DataLoader,SequencingDataLoader
Load sequencing metadata from a TSV file.
- Author:
- poirigui
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSequencingMetadataFileDataLoader(SequencingDataLoader delegate, Path sequencingMetadataFile, SequencingMetadata defaultMetadata, BioAssayMapper bioAssayMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetSequencingMetadata(Collection<BioAssay> bioAssays) Retrieve various sequencing metadata if counting data is present.voidsetIgnoreUnmatchedSamples(boolean ignoreUnmatchedSamples) Ignore unmatched samples from the data.Methods inherited from class ubic.gemma.core.loader.expression.AbstractDelegatingDataLoader
close, getFactors, getGenes, getQuantitationTypes, getSampleNames, getSamplesCharacteristics, setBioAssayToSampleNameMapper, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.loader.expression.DataLoader
close, getFactors, getGenes, getQuantitationTypes, getSampleNames, getSamplesCharacteristics, setBioAssayToSampleNameMapper, setDesignElementToGeneMapper, setIgnoreUnmatchedDesignElements
-
Constructor Details
-
SequencingMetadataFileDataLoader
public SequencingMetadataFileDataLoader(SequencingDataLoader delegate, @Nullable Path sequencingMetadataFile, @Nullable SequencingMetadata defaultMetadata, BioAssayMapper bioAssayMapper) - Parameters:
delegate- the delegate loader which may, or may not implementgetSequencingMetadata(Collection)sequencingMetadataFile- path to the TSV file containing the metadatadefaultMetadata- metadata to fill-in of there are no other values either from the file or supplied by the delegatebioAssayMapper- a mapper to resolveBioAssays from the sample IDs in the file
-
-
Method Details
-
setIgnoreUnmatchedSamples
public void setIgnoreUnmatchedSamples(boolean ignoreUnmatchedSamples) Description copied from interface:DataLoaderIgnore unmatched samples from the data.This defaults to true.
- Specified by:
setIgnoreUnmatchedSamplesin interfaceDataLoader- Overrides:
setIgnoreUnmatchedSamplesin classAbstractDelegatingDataLoader
-
getSequencingMetadata
public Map<BioAssay,SequencingMetadata> getSequencingMetadata(Collection<BioAssay> bioAssays) throws IOException Description copied from interface:SequencingDataLoaderRetrieve various sequencing metadata if counting data is present.- Specified by:
getSequencingMetadatain interfaceSequencingDataLoader- Overrides:
getSequencingMetadatain classAbstractDelegatingSequencingDataLoader- Throws:
IOException
-