use of com.hartwig.pipeline.execution.vm.unix.MkDirCommand in project pipeline5 by hartwigmedical.
the class Orange method commands.
@Override
public List<BashCommand> commands(final SomaticRunMetadata metadata) {
final String pipelineVersionFilePath = VmDirectories.INPUT + "/orange_pipeline.version.txt";
final String pipelineVersion = Versions.pipelineMajorMinorVersion();
final List<String> primaryTumorDoids = metadata.tumor().primaryTumorDoids();
String linxPlotDir = linxOutputDir.getLocalTargetPath() + "/plot";
return List.of(new MkDirCommand(linxPlotDir), () -> "echo '" + pipelineVersion + "' | tee " + pipelineVersionFilePath, new JavaJarCommand("orange", Versions.ORANGE, "orange.jar", "16G", List.of("-output_dir", VmDirectories.OUTPUT, "-doid_json", resourceFiles.doidJson(), "-primary_tumor_doids", primaryTumorDoids.isEmpty() ? "\"\"" : "\"" + String.join(";", primaryTumorDoids) + "\"", "-max_evidence_level", MAX_EVIDENCE_LEVEL, "-tumor_sample_id", metadata.tumor().sampleName(), "-reference_sample_id", metadata.reference().sampleName(), "-ref_sample_wgs_metrics_file", refMetrics.getLocalTargetPath(), "-tumor_sample_wgs_metrics_file", tumMetrics.getLocalTargetPath(), "-ref_sample_flagstat_file", refFlagstat.getLocalTargetPath(), "-tumor_sample_flagstat_file", tumFlagstat.getLocalTargetPath(), "-sage_germline_gene_coverage_tsv", sageGermlineGeneCoverageTsv.getLocalTargetPath(), "-sage_somatic_ref_sample_bqr_plot", sageSomaticRefSampleBqrPlot.getLocalTargetPath(), "-sage_somatic_tumor_sample_bqr_plot", sageSomaticTumorSampleBqrPlot.getLocalTargetPath(), "-purple_gene_copy_number_tsv", purpleGeneCopyNumberTsv.getLocalTargetPath(), "-purple_germline_driver_catalog_tsv", purpleGermlineDriverCatalog.getLocalTargetPath(), "-purple_germline_variant_vcf", purpleGermlineVcf.getLocalTargetPath(), "-purple_plot_directory", purpleOutputDir.getLocalTargetPath() + "/plot", "-purple_purity_tsv", purplePurityTsv.getLocalTargetPath(), "-purple_qc_file", purpleQCFile.getLocalTargetPath(), "-purple_somatic_driver_catalog_tsv", purpleSomaticDriverCatalog.getLocalTargetPath(), "-purple_somatic_variant_vcf", purpleSomaticVcf.getLocalTargetPath(), "-linx_fusion_tsv", linxFusionTsv.getLocalTargetPath(), "-linx_breakend_tsv", linxBreakEndTsv.getLocalTargetPath(), "-linx_driver_catalog_tsv", linxDriverCatalogTsv.getLocalTargetPath(), "-linx_driver_tsv", linxDriverTsv.getLocalTargetPath(), "-linx_plot_directory", linxPlotDir, "-cuppa_result_csv", cuppaResultCsv.getLocalTargetPath(), "-cuppa_summary_plot", cuppaSummaryPlot.getLocalTargetPath(), "-cuppa_feature_plot", cuppaFeaturePlot.getLocalTargetPath(), "-chord_prediction_txt", chordPredictionTxt.getLocalTargetPath(), "-peach_genotype_tsv", peachGenotypeTsv.getLocalTargetPath(), "-protect_evidence_tsv", protectEvidenceTsv.getLocalTargetPath(), "-annotated_virus_tsv", annotatedVirusTsv.getLocalTargetPath(), "-pipeline_version_file", pipelineVersionFilePath, "-cohort_mapping_tsv", resourceFiles.orangeCohortMapping(), "-cohort_percentiles_tsv", resourceFiles.orangeCohortPercentiles())));
}
use of com.hartwig.pipeline.execution.vm.unix.MkDirCommand in project pipeline5 by hartwigmedical.
the class Orange method buildCommands.
private List<BashCommand> buildCommands(final SomaticRunMetadata metadata) {
final String pipelineVersionFilePath = VmDirectories.INPUT + "/orange_pipeline.version.txt";
final String pipelineVersion = Versions.pipelineMajorMinorVersion();
final List<String> primaryTumorDoids = metadata.tumor().primaryTumorDoids();
String linxPlotDir = linxOutputDir.getLocalTargetPath() + "/plot";
return List.of(new MkDirCommand(linxPlotDir), () -> "echo '" + pipelineVersion + "' | tee " + pipelineVersionFilePath, new JavaJarCommand("orange", Versions.ORANGE, "orange.jar", "16G", List.of("-output_dir", VmDirectories.OUTPUT, "-doid_json", resourceFiles.doidJson(), "-primary_tumor_doids", primaryTumorDoids.isEmpty() ? "\"\"" : "\"" + String.join(";", primaryTumorDoids) + "\"", "-max_evidence_level", MAX_EVIDENCE_LEVEL, "-tumor_sample_id", metadata.tumor().sampleName(), "-reference_sample_id", metadata.reference().sampleName(), "-ref_sample_wgs_metrics_file", refMetrics.getLocalTargetPath(), "-tumor_sample_wgs_metrics_file", tumMetrics.getLocalTargetPath(), "-ref_sample_flagstat_file", refFlagstat.getLocalTargetPath(), "-tumor_sample_flagstat_file", tumFlagstat.getLocalTargetPath(), "-sage_germline_gene_coverage_tsv", sageGermlineGeneCoverageTsv.getLocalTargetPath(), "-sage_somatic_ref_sample_bqr_plot", sageSomaticRefSampleBqrPlot.getLocalTargetPath(), "-sage_somatic_tumor_sample_bqr_plot", sageSomaticTumorSampleBqrPlot.getLocalTargetPath(), "-purple_gene_copy_number_tsv", purpleGeneCopyNumberTsv.getLocalTargetPath(), "-purple_germline_driver_catalog_tsv", purpleGermlineDriverCatalog.getLocalTargetPath(), "-purple_germline_variant_vcf", purpleGermlineVcf.getLocalTargetPath(), "-purple_plot_directory", purpleOutputDir.getLocalTargetPath() + "/plot", "-purple_purity_tsv", purplePurityTsv.getLocalTargetPath(), "-purple_qc_file", purpleQCFile.getLocalTargetPath(), "-purple_somatic_driver_catalog_tsv", purpleSomaticDriverCatalog.getLocalTargetPath(), "-purple_somatic_variant_vcf", purpleSomaticVcf.getLocalTargetPath(), "-linx_fusion_tsv", linxFusionTsv.getLocalTargetPath(), "-linx_breakend_tsv", linxBreakEndTsv.getLocalTargetPath(), "-linx_driver_catalog_tsv", linxDriverCatalogTsv.getLocalTargetPath(), "-linx_driver_tsv", linxDriverTsv.getLocalTargetPath(), "-linx_plot_directory", linxPlotDir, "-cuppa_result_csv", cuppaResultCsv.getLocalTargetPath(), "-cuppa_summary_plot", cuppaSummaryPlot.getLocalTargetPath(), "-cuppa_feature_plot", cuppaFeaturePlot.getLocalTargetPath(), "-chord_prediction_txt", chordPredictionTxt.getLocalTargetPath(), "-peach_genotype_tsv", peachGenotypeTsv.getLocalTargetPath(), "-protect_evidence_tsv", protectEvidenceTsv.getLocalTargetPath(), "-annotated_virus_tsv", annotatedVirusTsv.getLocalTargetPath(), "-pipeline_version_file", pipelineVersionFilePath, "-cohort_mapping_tsv", resourceFiles.orangeCohortMapping(), "-cohort_percentiles_tsv", resourceFiles.orangeCohortPercentiles())));
}
Aggregations