Skip to content

Commit

Permalink
Remove $$() construct from condor submission scripts
Browse files Browse the repository at this point in the history
I apparently misunderstood it's use according to more recent
documentation $$() is for looking up classad variables and not
submission script variables.

Though hopefully the $(variable:default) construct works, as that's
what I had been using $$($(variable):default) for
  • Loading branch information
detrout committed Aug 2, 2024
1 parent 829415b commit 542f679
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 21 deletions.
9 changes: 5 additions & 4 deletions woldrnaseq/align-star.condor
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
universe=vanilla
CURDIR=$(curdir)

log=$(CURDIR)/align-star-$(Process).log
output=$(CURDIR)/align-star-$(Process).out
error=$(CURDIR)/align-star-$(Process).out

STAR_DIR=$(star_dir)
GENOME_ROOT=$$($(genome_root):/woldlab/castor/home/diane/proj/genome)
GENOME_ROOT=$($(genome_root:/woldlab/castor/home/diane/proj/genome)
GENOME_NAME=$(GENOME_NAME)
GENOME_DIR=$(GENOME_ROOT)/$(GENOME_NAME)/
THREADS=8

READ1=$$(read1)
READ2=$$(read2:)
CURDIR=$$(curdir)
READ1=$(read1)
READ2=$(read2:)

if defined READ2
EXTRA_ARGS=
Expand Down
2 changes: 1 addition & 1 deletion woldrnaseq/bam2bigwig_stranded.condor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ log=$(curdir)/bam2bigwig-$(Process).log
output=$(curdir)/bam2bigwig-$(Process).out
error=$(curdir)/bam2bigwig-$(Process).out

ANALYSIS_NAME=$$($(analysis_name):Analysis)
ANALYSIS_NAME=$(analysis_name:Analysis)

GENOME_NAME=$(GENOME_NAME)
IN=$(ANALYSIS_NAME)-$(GENOME_NAME)_genome.bam
Expand Down
2 changes: 1 addition & 1 deletion woldrnaseq/bam2bigwig_unstranded.condor
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ output=$(curdir)/bam2bigwig-$(Process).out
error=$(curdir)/bam2bigwig-$(Process).out

CURDIR=$(curdir)
ANALYSIS_NAME=$$($(analysis_name):Analysis)
ANALYSIS_NAME=$(analysis_name:Analysis)

GENOME_NAME=$(GENOME_NAME)
IN=$(ANALYSIS_NAME)-$(GENOME_NAME)_genome.bam
Expand Down
6 changes: 3 additions & 3 deletions woldrnaseq/qc-coverage.condor
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ log=coverage-$(Process).log
output=coverage-$(Process).out
error=coverage-$(Process).out

ANALYSIS_NAME=$$($(analysis_name):Analysis)
GEORGI_DIR=$$($(georgi_dir):/woldlab/castor/home/diane/proj/GeorgiScripts)
ANALYSIS_NAME=$(analysis_name:Analysis)
GEORGI_DIR=$(georgi_dir:/woldlab/castor/home/diane/proj/GeorgiScripts)
GENE_COVERAGE=$(GEORGI_DIR)/gene_coverage_wig_gtf.py
GENOME_ROOT=$$($(genome_root):/home/diane/proj/genome/)
GENOME_ROOT=$(genome_root:/home/diane/proj/genome/)
GENOME_NAME=$(GENOME_NAME)
GENOME_DIR=$(GENOME_ROOT)$(GENOME_NAME)/
GTF=$(gtf)
Expand Down
6 changes: 3 additions & 3 deletions woldrnaseq/qc-distribution.condor
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ log=distribution-$(Process).log
output=distribution-$(Process).out
error=distribution-$(Process).out

ANALYSIS_NAME=$$($(analysis_name):Analysis)
GEORGI_DIR=$$($(georgi_dir):~/proj/GeorgiScripts)
ANALYSIS_NAME=$(analysis_name:Analysis)
GEORGI_DIR=$(georgi_dir:~/proj/GeorgiScripts)
DISTRIBUTION=$(GEORGI_DIR)/SAM_reads_in_genes3_BAM.py
GENOME_ROOT=$$($(genome_root):~/proj/genome/)
GENOME_ROOT=$(genome_root:~/proj/genome/)
GENOME_NAME=$(GENOME_NAME)
GENOME_DIR=$(GENOME_ROOT)/$(GENOME_NAME)/
GTF=$(gtf)
Expand Down
4 changes: 2 additions & 2 deletions woldrnaseq/qc-flagstat.condor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
universe=vanilla

#ANALYSIS_NAME=$$($(analysis_name):Analysis)
#GENOME_ROOT=$$($(genome_root):~/proj/genome/)
#ANALYSIS_NAME=$(analysis_name:Analysis)
#GENOME_ROOT=$(genome_root:~/proj/genome/)
#GENOME_NAME=$(GENOME_NAME)
#GENOME_DIR=$(GENOME_ROOT)$(GENOME_NAME)/
#IN=$(ANALYSIS_NAME)-$(GENOME_NAME)_genome.bam
Expand Down
6 changes: 3 additions & 3 deletions woldrnaseq/qc-samstats.condor
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ log=samstats-$(Process).log
output=samstats-$(Process).out
error=samstats-$(Process).out

ANALYSIS_NAME=$$($(analysis_name):Analysis)
GENOME_ROOT=$$($(genome_root):~/proj/genome/)
ANALYSIS_NAME=$(analysis_name:Analysis)
GENOME_ROOT=$(genome_root:~/proj/genome/)
GENOME_NAME=$(GENOME_NAME)
GENOME_DIR=$(GENOME_ROOT)/$(GENOME_NAME)/
CHROM_INFO=$(GENOME_DIR)chrNameLength.txt
IN=$(ANALYSIS_NAME)-$(GENOME_NAME)_genome.bam
OUT=$(ANALYSIS_NAME)-$(GENOME_NAME)_genome.samstats
GEORGI_DIR=$$($(georgi_dir):~/proj/GeorgiScripts/)
GEORGI_DIR=$(georgi_dir:~/proj/GeorgiScripts/)
SAMSTATS=$(GEORGI_DIR)SAMstats.py

request_cpus=1
Expand Down
4 changes: 2 additions & 2 deletions woldrnaseq/quant-rsem.condor
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ output=rsem-$(Process).out
error=rsem-$(Process).out
environment="PATH=/usr/local/bin:/usr/bin:/bin"

ANALYSIS_NAME=$$($(analysis_name):Analysis)
GENOME_ROOT=$$($(genome_root):~/proj/genome/)
ANALYSIS_NAME=$(analysis_name:Analysis)
GENOME_ROOT=$(genome_root:~/proj/genome/)
GENOME_NAME=$(GENOME_NAME)
GENOME_DIR=$(GENOME_ROOT)/$(GENOME_NAME)/rsem
PAIRED_END=$(paired_end)
Expand Down
2 changes: 1 addition & 1 deletion woldrnaseq/rrna-premap.condor
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ log=$(CURDIR)/rrna-premap.log
output=$(CURDIR)/rrna-premap.out
error=$(CURDIR)/rrna-premap.out

GENOME_ROOT=$$($(genome_root):/woldlab/castor/home/diane/proj/genome)
GENOME_ROOT=$(genome_root:/woldlab/castor/home/diane/proj/genome)
GENOME_NAME=$(GENOME_NAME)

executable=$(rrna_premap_sh)
Expand Down
2 changes: 1 addition & 1 deletion woldrnaseq/sort-samtools.condor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ output=sort-samtools-$(Process).out
error=sort-samtools-$(Process).out
environment="PATH=/usr/bin:/bin"

IN=$$($(in):Aligned.toTranscriptome.out.bam)
IN=$(in:Aligned.toTranscriptome.out.bam)
GENOME_NAME=$(GENOME_NAME)
OUT=$(ANALYSIS_NAME)-$(GENOME_NAME)_anno.bam

Expand Down

0 comments on commit 542f679

Please sign in to comment.