Skip to content

Commit

Permalink
modify batch scripts to allow for separate output directories and to …
Browse files Browse the repository at this point in the history
…specify number of top genes and corresponding directories for output
  • Loading branch information
ashuaibi7 committed Jan 7, 2025
1 parent bc57fd9 commit b1460eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion scripts/msbatch.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env bash

DATA_DIR=data/TCGA_PanCancer_Atlas_2018 ##TODO: SPECIFY DIR W/ MAF FILES
DOUT=output/TOP_10_Genes ##TODO: SPECIFY OUTPUT DIR
MAF_FILES=(${DATA_DIR}/*.maf) ## Array of all MAF files in the directory
SCRIPT_DIR=$(dirname "$0") ## Directory of the current script
SLURM_DIR=output/slurm_logs
SLURM_DIR=${DOUT}/slurm_logs

mkdir -p ${SLURM_DIR}

Expand Down
7 changes: 4 additions & 3 deletions scripts/ssbatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ cd ${DISCOVER_DIR}
python setup.py install --user # Use --user to install DISCOVER in user space
cd ${ORIGINAL_DIR}

K=100 ##TODO SPECIFY NUMBER OF TOP GENES
K=10 ##TODO SPECIFY NUMBER OF TOP GENES
DOUT=output/TOP_10_Genes ##TODO: SPECIFY OUTPUT DIR
MAF_FILE=${1} ## MAF file path
SUBTYPE_NAME=$(basename ${MAF_FILE} .maf) ## Extract subtype name from MAF file
OUTPUT_DIR=output/${SUBTYPE_NAME} ## Set output directory
OUTPUT_DIR=${DOUT}/${SUBTYPE_NAME} ## Set output directory

mkdir -p ${OUTPUT_DIR}

## Commands to run
dialect generate -m ${MAF_FILE} -o ${OUTPUT_DIR}
# dialect generate -m ${MAF_FILE} -o ${OUTPUT_DIR} ##TODO: UNCOMMENT TO RUN END TO END
dialect identify -c ${OUTPUT_DIR}/count_matrix.csv -b ${OUTPUT_DIR}/bmr_pmfs.csv -o ${OUTPUT_DIR} -k ${K} -cb ${OUTPUT_DIR}/CBaSE_output/q_values.txt
dialect compare -c ${OUTPUT_DIR}/count_matrix.csv -b ${OUTPUT_DIR}/bmr_pmfs.csv -o ${OUTPUT_DIR} -k ${K}
dialect merge -d ${OUTPUT_DIR}/pairwise_interaction_results.csv -a ${OUTPUT_DIR}/comparison_interaction_results.csv -o ${OUTPUT_DIR}

0 comments on commit b1460eb

Please sign in to comment.