Differences between revisions 7 and 19 (spanning 12 versions)
Revision 7 as of 2010-09-03 22:35:10
Size: 2750
Editor: hamrhein
Comment:
Revision 19 as of 2015-04-13 22:38:12
Size: 3628
Editor: hamrhein
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<TableOfContents(2)>>
Line 39: Line 41:
environment="ERANGEPATH=/path/to/erange/commoncode INDIR=/full/path/to/input OUTDIR=/full/path/to/output" environment="PYTHONPATH=/path/to/cistematic/root CISTEMATIC_ROOT=/path/to/cistematic/root ERANGEPATH=/path/to/erange"
Line 41: Line 43:
executable = /usr/bin/python
arguments = $(ERANGEPATH)/makerdsfrombowtie.py 1184_1_1 $(INDIR)/1184_1_1.bowtie.txt $(OUTDIR)/1184_1_1.rds -RNA $(INDIR)/hg19-knownGene.txt
executable=/bin/sh
Line 44: Line 45:
log=makerdsfrombowtie.$(Process).log
output=makerdsfrombowtie.$(Process).out
error=makerdsfrombowtie.$(Process).err
log=rrpa.$(Process).log
output=rrpa.$(Process).out
error=rrpa.$(Process).err
Line 48: Line 49:
getenv = true

arguments = $(ERANGEPATH)/doc/runRNAPairedAnalysis.sh hsapiens 1184_1_1 /proj/genome/gbdb/hg19/hg19.rmsk.db
Line 52: Line 56:
 '''Notes'''
 * You will need to fill-in all the variables
 * Setting PATH with environment replaces your current PATH, so you can't access your current path with $PATH.
 * Instead of setting the environment you can tell condor to reuse your current environment with getenv=True
 * Also you can break long argument lines at spaces by ending the line with \
 * The variable ALL_FASTQ_FILES is the same as concatenating FASTQ_FILES_1 and FASTQ_FILES_2. It's there to avoid the case of a trailing comma if FASTQ_FILES_2 is empty.
Line 55: Line 66:
environment="PATH=$PATH:/proj/genome/programs/bowtie-0.10.1:/proj/genome/programs/tophat-1.0.14/bin BOWTIE_INDEXES=/proj/genome/programs/bowtie-0.10.1/indexes INDIR=/full/path/to/input OUTDIR=/full/path/to/output" environment = "PATH=/bin:/usr/bin:/usr/local/bin:/woldlab/castor/proj/genome/programs/${BOWTIE_DIR}"
Line 57: Line 68:
executable=/proj/genome/programs/bowtie-0.12.1/bowtie
arguments="-p 4 -o $(OUTDIR) hg19 $(INDIR)/11501_61MMHAAXX.fa"
executable=/usr/bin/python
Line 60: Line 70:
error=tophat.$(PROCESS).err
output=tophat.$(PROCESS).out
log=tophat.$(PROCESS).log
error = ${BASE_DIR}/logs/tophat.$(Process).err
output = ${BASE_DIR}/logs/tophat.$(Process).out
log = ${BASE_DIR}/logs/tophat.$(Process).log
Line 64: Line 74:
request_cpus=4 request_cpus = 6
request_memory = 4000
request_disk = 0
Line 66: Line 78:
should_transfer_files = YES
when_to_transfer_output = ON_EXIT

transfer_input_files = ${ALL_FASTQ_FILES}
transfer_output_files = XFER/accepted_hits.bam
transfer_output_remaps = "accepted_hits.bam = ${RESULTS_DIR}/accepted_hits.bam"

arguments = "${TOPHAT_DIR}/tophat --bowtie1 -o XFER -p 6 -G ${GENES_DIR}/${GTF_FILE} --transcriptome-index ${GENES_DIR}/ --no-novel-juncs --library-type fr-unstranded ${INDEX_DIR}/${GENOME_BASE} ${FASTQ_FILES_1} ${FASTQ_FILES_2}"
Line 67: Line 87:

A Quick Word on Files

Condor has the ability to work with files which live on the NFS server (castor, loxcyc, rattus) as well as files local to the execute host. If you plan to work with a ton of small files or a handful of large files, feel free to use the NFS server as the source for your files. If you have a bunch of large files to process, you'll likely be better off telling Condor to transfer the files to the execute host before executing your job. Not only will you get better performance, everyone else will still be able to use the NFS server, allowing you to save face at the same time...Trust me, I speak from experience.

To transfer files to the execute host, use the following directives:

should_transfer_files = YES
when_to_transfer_output = ON_EXIT
transfer_input_files = /full/path/to/infile1,/full/path/to/infile2,...

This can be done globally by placing these directives at the top of the recipe, or on a per-job basis by placing them before each "queue" directive.

Bowtie Template

universe=vanilla

environment="BOWTIE_INDEXES=/proj/genome/programs/bowtie-0.12.1/indexes OUTDIR=/full/path/to/output"

executable=/proj/genome/programs/bowtie-0.12.1/bowtie
arguments=hg19sp75spike -v 2 -k 11 -m 10 --best --strata -p 4 -q $(OUTDIR)/1184_1_1.fastq --un $(OUTDIR)/1184_1_1.unmapped.fa --max $(OUTDIR)/1185_1_1.repeat.fa $(OUTDIR)/1184_1_1.bowtie.txt

log=bowtie.$(Process).log
output=bowtie.$(Process).out
error=bowtie.$(Process).err

request_cpus = 4
request_memory = 8000
request_disk = 0

queue

It's important to set the "request_cpus" variable to match the -p option to bowtie. It's also probably a good idea to set the "request_memory" to a more realistic value...8000 is almost 8 Gigs

ERANGE Template

universe=vanilla

environment="PYTHONPATH=/path/to/cistematic/root CISTEMATIC_ROOT=/path/to/cistematic/root ERANGEPATH=/path/to/erange"

executable=/bin/sh

log=rrpa.$(Process).log
output=rrpa.$(Process).out
error=rrpa.$(Process).err

getenv = true

arguments = $(ERANGEPATH)/doc/runRNAPairedAnalysis.sh hsapiens 1184_1_1 /proj/genome/gbdb/hg19/hg19.rmsk.db
queue

Tophat Template

  • Notes

  • You will need to fill-in all the variables
  • Setting PATH with environment replaces your current PATH, so you can't access your current path with $PATH.
  • Instead of setting the environment you can tell condor to reuse your current environment with getenv=True
  • Also you can break long argument lines at spaces by ending the line with \
  • The variable ALL_FASTQ_FILES is the same as concatenating FASTQ_FILES_1 and FASTQ_FILES_2. It's there to avoid the case of a trailing comma if FASTQ_FILES_2 is empty.

universe=vanilla

environment = "PATH=/bin:/usr/bin:/usr/local/bin:/woldlab/castor/proj/genome/programs/${BOWTIE_DIR}"

executable=/usr/bin/python

error = ${BASE_DIR}/logs/tophat.$(Process).err
output = ${BASE_DIR}/logs/tophat.$(Process).out
log = ${BASE_DIR}/logs/tophat.$(Process).log

request_cpus = 6
request_memory = 4000
request_disk = 0

should_transfer_files = YES
when_to_transfer_output = ON_EXIT

transfer_input_files = ${ALL_FASTQ_FILES}
transfer_output_files = XFER/accepted_hits.bam
transfer_output_remaps = "accepted_hits.bam = ${RESULTS_DIR}/accepted_hits.bam"

arguments = "${TOPHAT_DIR}/tophat --bowtie1 -o XFER -p 6 -G ${GENES_DIR}/${GTF_FILE} --transcriptome-index ${GENES_DIR}/ --no-novel-juncs --library-type fr-unstranded ${INDEX_DIR}/${GENOME_BASE} ${FASTQ_FILES_1} ${FASTQ_FILES_2}"
queue

WoldlabWiki: Condor/Templates (last edited 2015-04-13 22:38:12 by hamrhein)