Search in sources :

Example 11 with RemoteLocationsApi

use of com.hartwig.batch.api.RemoteLocationsApi in project pipeline5 by hartwigmedical.

the class PurpleRerun method execute.

@Override
public VirtualMachineJobDefinition execute(final InputBundle inputs, final RuntimeBucket runtimeBucket, final BashStartupScript commands, final RuntimeFiles executionFlags) {
    final InputFileDescriptor biopsy = inputs.get("biopsy");
    final RemoteLocationsApi storageLocations = new RemoteLocationsApi(biopsy);
    commands.addCommands(bashCommands(storageLocations));
    commands.addCommand(new OutputUpload(GoogleStorageLocation.of(runtimeBucket.name(), "purple"), executionFlags));
    return VirtualMachineJobDefinition.purple(commands, ResultsDirectory.defaultDirectory());
}
Also used : OutputUpload(com.hartwig.pipeline.execution.vm.OutputUpload) InputFileDescriptor(com.hartwig.batch.input.InputFileDescriptor) RemoteLocationsApi(com.hartwig.batch.api.RemoteLocationsApi)

Aggregations

RemoteLocationsApi (com.hartwig.batch.api.RemoteLocationsApi)11 InputFileDescriptor (com.hartwig.batch.input.InputFileDescriptor)8 ResourceFiles (com.hartwig.pipeline.resource.ResourceFiles)8 OutputUpload (com.hartwig.pipeline.execution.vm.OutputUpload)7 StringJoiner (java.util.StringJoiner)6 LocalLocations (com.hartwig.batch.api.LocalLocations)3 InputDownload (com.hartwig.pipeline.execution.vm.InputDownload)2 SampleLocationData (com.hartwig.batch.utils.SampleLocationData)1 BwaCommand (com.hartwig.pipeline.calling.command.BwaCommand)1 SamtoolsCommand (com.hartwig.pipeline.calling.command.SamtoolsCommand)1 Driver (com.hartwig.pipeline.calling.structural.gridss.stage.Driver)1 GridssAnnotation (com.hartwig.pipeline.calling.structural.gridss.stage.GridssAnnotation)1 OutputFile (com.hartwig.pipeline.execution.vm.OutputFile)1 ExportPathCommand (com.hartwig.pipeline.execution.vm.unix.ExportPathCommand)1 SubStageInputOutput (com.hartwig.pipeline.stages.SubStageInputOutput)1 GoogleStorageLocation (com.hartwig.pipeline.storage.GoogleStorageLocation)1 IOException (java.io.IOException)1 ParseException (org.apache.commons.cli.ParseException)1