################################################################################ ## ## Copyright (c) 2007-2011 Illumina, Inc. ## ## This software is covered by the "Illumina Genome Analyzer Software ## License Agreement" and the "Illumina Source Code License Agreement", ## and certain third party copyright/licenses, and any user of this ## source file is bound by the terms therein (see accompanying files ## Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ## Illumina_Source_Code_License_Agreement.pdf and third party ## copyright/license notices). ## ## This file is part of the Consensus Assessment of Sequence And VAriation ## (CASAVA) software package. ## ## file ErrorGraphs.mk ## ## brief Partial makefile to build the error graphs for a single lane. ## ## Build alignment statistics plots. ## ## author Roman Petrovski ## ################################################################################ PEG:=${TOOLS_DIR}/plot_error_graphs.pl PEG_POST_LANE_PARAMS:=$(RESCORE_SUFFIX) $(RESCORE_IMG_SUFFIX) $(RESCORE_IMG_THUMB_SUFFIX) $(PEC_IMG_SUFFIX) $(PEC_IMG_THUMB_SUFFIX) $(dataset)_ERROR_GRAPH_TARGETS:=\ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)_$(tile)$(RESCORE_IMG_THUMB_SUFFIX)) \ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)_$(tile)$(PEC_IMG_THUMB_SUFFIX)) \ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)_$(tile)$(RESCORE_IMG_SUFFIX)) \ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)_$(tile)$(PEC_IMG_SUFFIX)) .PRECIOUS: $($(dataset)_ERROR_GRAPH_TARGETS) $(dataset)_ERROR_GRAPH_PATTERN_TARGETS:=\ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)%$(tile)$(RESCORE_IMG_THUMB_SUFFIX)) \ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)%$(tile)$(PEC_IMG_THUMB_SUFFIX)) \ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)%$(tile)$(RESCORE_IMG_SUFFIX)) \ $(foreach tile,$($(project)_$(sample)_$(lane)_PADDED_TILES),$($(dataset)_PLOTS_DIR)/$(barcode)/s_$(lane)%$(tile)$(PEC_IMG_SUFFIX)) $($(dataset)_ERROR_GRAPH_PATTERN_TARGETS): lane := $(lane) $($(dataset)_ERROR_GRAPH_PATTERN_TARGETS): dataset := $(dataset) $($(dataset)_ERROR_GRAPH_PATTERN_TARGETS): barcode := $(barcode) $($(dataset)_PLOTS_DIR)/$(barcode)/.s_$(lane)_error_graph_targets: lane := $(lane) $($(dataset)_PLOTS_DIR)/$(barcode)/.s_$(lane)_error_graph_targets: dataset := $(dataset) $($(dataset)_PLOTS_DIR)/$(barcode)/.s_$(lane)_error_graph_targets: barcode := $(barcode) # use a surrogate file to avoid large pattern rules that use a lot of memory $($(dataset)_PLOTS_DIR)/$(barcode)/.s_$(lane)_error_graph_targets: \ $($(dataset)_STATS_DIR)/$(barcode)/s_$(lane)_$(SCORE_XML) \ $($(dataset)_STATS_DIR)/$(barcode)/s_$(lane)_$(RESCORE_XML) \ $($(dataset)_TEMP_DIR)/.sentinel \ $($(dataset)_PLOTS_DIR)/$(barcode)/.sentinel $(CMDPREFIX) \ $(PEG) $($(dataset)_STATS_DIR)/$(barcode)/s_$(lane)$(TILES_SUFFIX) s_$(lane) \ $(PEG_POST_LANE_PARAMS) $($(dataset)_STATS_DIR)/$(barcode) $($(dataset)_TEMP_DIR) $($(dataset)_PLOTS_DIR)/$(barcode) \ && $(TOUCH) $@ .PRECIOUS: $($(dataset)_PLOTS_DIR)/$(barcode)/.s_$(lane)_error_graph_targets $(project)_ERROR_GRAPH_TARGETS:= $($(project)_ERROR_GRAPH_TARGETS) $($(dataset)_PLOTS_DIR)/$(barcode)/.s_$(lane)_error_graph_targets