public interface DatasetServices
Modifier and Type | Method and Description |
---|---|
void |
addDataset(uno.informatics.data.Dataset dataset)
Add a new dataset
|
List<uno.informatics.data.Dataset> |
getAllDatasets()
Gets all databases
|
CoreHunterData |
getCoreHunterData(String datasetId)
Gets the CoreHunter data associated with a dataset by unique dataset identifier
|
uno.informatics.data.Dataset |
getDataset(String datasetId)
Gets a single dataset by unique dataset identifier
|
uno.informatics.data.Data |
getOriginalData(String datasetId,
CoreHunterDataType dataType)
Gets the original data upload by the user
|
void |
loadData(uno.informatics.data.Dataset dataset,
Path path,
uno.informatics.data.io.FileType fileType,
CoreHunterDataType dataType,
Object... options)
Loads the data and associates it with a dataset.
|
void |
removeData(String datasetId)
Removes the all the data associated with a dataset
|
boolean |
removeDataset(String datasetId)
Removes a dataset and all associated data
|
List<uno.informatics.data.Dataset> getAllDatasets()
uno.informatics.data.Dataset getDataset(String datasetId)
datasetId
- the identifier of the datasetvoid addDataset(uno.informatics.data.Dataset dataset) throws uno.informatics.data.dataset.DatasetException
dataset
- the dataset to be addeduno.informatics.data.dataset.DatasetException
- if the dataset is invalid or is already presentboolean removeDataset(String datasetId) throws uno.informatics.data.dataset.DatasetException
datasetId
- the identifier of the dataset to be removedtrue
if the dataset was present and was removed,
false
otherwiseuno.informatics.data.dataset.DatasetException
- if the dataset does not existCoreHunterData getCoreHunterData(String datasetId) throws uno.informatics.data.dataset.DatasetException
datasetId
- the identifier of the datasetuno.informatics.data.dataset.DatasetException
- if the data can not be accessed or the dataset does not existvoid loadData(uno.informatics.data.Dataset dataset, Path path, uno.informatics.data.io.FileType fileType, CoreHunterDataType dataType, Object... options) throws IOException, uno.informatics.data.dataset.DatasetException
Data loading options can include the Genotype Data Format
(see GenotypeDataFormat
) for CoreHunterDataType.GENOTYPIC
dataset
- the dataset to which the data will be associatedpath
- a path where the data file can be foundfileType
- the type of file from which the data will be loadeddataType
- the type of dataoptions
- the data loading options.IOException
- if the is an issue with reading the data from the pathuno.informatics.data.dataset.DatasetException
- if the data can not be merged with existing data for a
datasetvoid removeData(String datasetId) throws uno.informatics.data.dataset.DatasetException
datasetId
- the identifier of the dataset for which all data will be removeduno.informatics.data.dataset.DatasetException
- if the data can not be accessed or the dataset does not existuno.informatics.data.Data getOriginalData(String datasetId, CoreHunterDataType dataType) throws uno.informatics.data.dataset.DatasetException
datasetId
- the identifier of the datasetdataType
- the type of datauno.informatics.data.dataset.DatasetException
- if the data can not be accessed or the dataset does not existCopyright © 2016. All rights reserved.