From 0aa643a0ae5881c4715b3ab621257ce417340c29 Mon Sep 17 00:00:00 2001 From: Zhian Kamvar Date: Sat, 11 Mar 2017 14:01:32 -0600 Subject: [PATCH] add genome size calculation to makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index d056b0a..07fb7d7 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,7 @@ EMAIL := $$EMAIL # Note: this gets interpreted here, so be sure to define thi REF_FNA := $(patsubst $(FAST_DIR)/%.fasta.gz,$(REF_DIR)/%.fasta, $(FASTA)) REF_IDX := $(patsubst %.fasta,%.dict, $(REF_FNA)) INTERVALS:= $(patsubst %.fasta,%.intervals.txt, $(REF_FNA)) +REFSIZES := $(patsubst %.fasta,%.sizes.txt, $(REF_FNA)) TR_READS := $(patsubst reads/%,$(TRIM_DIR)/%_1P.fq.gz, $(READS)) TR_PRE := $(patsubst reads/%,$(TRIM_DIR)/%, $(READS)) IDX := $(addprefix $(strip $(IDX_DIR)/$(PREFIX)), .1.bz2 .2.bz2 .3.bz2 .4.bz2 .rev.1.bz2 .rev.2.bz2) @@ -107,6 +108,9 @@ $(REF_DIR)/%.fasta : $(FAST_DIR)/%.fasta.gz | $(REF_DIR) $(RUNFILES) $(REF_DIR)/%.intervals.txt : $(REF_DIR)/%.fasta ./scripts/make-GATK-intervals.py -f $< -w 10000 > $@ +$(REF_DIR)/%.sizes.txt : $(REF_DIR)/%.fasta + ./scripts/make-GATK-intervals.py -f $< -w 0 > $@ + runs/BOWTIE2-BUILD/BOWTIE2-BUILD.sh : scripts/make-index.sh $(REF_FNA) | $(IDX_DIR) $(RUNFILES) $^ $(addprefix $(IDX_DIR)/, $(PREFIX)) SLURM_Array -c $(RUNFILES)/make-index.txt \