Search in sources :

Example 1 with HistoryDataset

use of com.github.jmchilton.blend4j.galaxy.beans.HistoryDataset in project irida by phac-nml.

the class GalaxyHistoriesService method libraryDatasetToHistory.

/**
 * Transfers a dataset from a Galaxy library into a history for a workflow.
 * @param libraryFileId The id of a file within a Galaxy library.
 * @param history The history to transfer this library dataset into.
 * @return A HistoryDetails object describing the details of the created history dataset.
 */
public HistoryDetails libraryDatasetToHistory(String libraryFileId, History history) {
    checkNotNull(libraryFileId, "libraryFileId is null");
    checkNotNull(history, "history is null");
    HistoryDataset historyDataset = new HistoryDataset();
    historyDataset.setSource(Source.LIBRARY);
    historyDataset.setContent(libraryFileId);
    return historiesClient.createHistoryDataset(history.getId(), historyDataset);
}
Also used : HistoryDataset(com.github.jmchilton.blend4j.galaxy.beans.HistoryDataset)

Aggregations

HistoryDataset (com.github.jmchilton.blend4j.galaxy.beans.HistoryDataset)1