Skip to content

Commit

Permalink
Merge pull request #112 from uclahs-cds/nwiltsie_apply_shellcheck
Browse files Browse the repository at this point in the history
Apply shellcheck fixes
  • Loading branch information
philippaSteinberg authored Jan 22, 2024
2 parents 9254971 + dd3797f commit 1b3da15
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ do
for patient in ${patients[@]}
do
Rscript /hot/users/psteinberg/work-code/parse_consensus_tree_PhyloWGS.R \
-s /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-phylowgs/output/call-SRC-1.1.0/${patient}/PhyloWGS-2205be1/output/PhyloWGS-2205be1_${seed}_${patient}_SomaticSniper-Battenberg.summ.json.gz \
-s /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-phylowgs/output/call-SRC-1.1.0/"${patient}"/PhyloWGS-2205be1/output/PhyloWGS-2205be1_"${seed}"_"${patient}"_SomaticSniper-Battenberg.summ.json.gz \
-o /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-phylowgs/output/consensus_tree
done
done
Expand Down
12 changes: 6 additions & 6 deletions src/output-analysis/plotting/plotting_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
projectdir=/hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/
workdir=/hot/user/yiyangliu/repo/project-AlgorithmEvaluation-BNCH-000082-SRCRNDSeed/src/output-analysis/plotting/

cd ${workdir}
cd ${workdir} || exit
for snv in Strelka2 Mutect2 SomaticSniper; do echo ${snv}
for src in DPClust PhyloWGS PyClone-VI; do echo ${src}
for mode in sr mr; do echo ${mode}
snvl=${snv,,}; echo ${snvl}
srcl=${src,,}; echo ${srcl}
file=$(ls ${projectdir}/pipeline-call-src/run-${snvl}-battenberg-${srcl}/output/*${snvl}_battenberg_${srcl}_${mode}.tsv -Art | tail -n 1)
echo ${file}
snvl=${snv,,}; echo "${snvl}"
srcl=${src,,}; echo "${srcl}"
file=$(ls ${projectdir}/pipeline-call-src/run-"${snvl}"-battenberg-"${srcl}"/output/*"${snvl}"_battenberg_"${srcl}"_${mode}.tsv -Art | tail -n 1)
echo "${file}"
if [ -f "$file" ]; then
Rscript ${workdir}/subclone_relative_seed_variability.R -f ${file} -p ${snv}-Battenberg-${src} -m ${mode} -o ${projectdir}/pipeline-call-src/plots/stripplot2
Rscript ${workdir}/subclone_relative_seed_variability.R -f "${file}" -p ${snv}-Battenberg-${src} -m ${mode} -o ${projectdir}/pipeline-call-src/plots/stripplot2
fi
done
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 30
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -29,9 +29,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-pyclone-vi/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/multi-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_Mutect2-Battenberg-PyClone-VI-mr \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-pyclone-vi/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/multi-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_Mutect2-Battenberg-PyClone-VI-mr \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 30
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -29,9 +29,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-pyclone-vi/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/multi-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_SomaticSniper-Battenberg-PyClone-VI-mr \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-pyclone-vi/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/multi-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_SomaticSniper-Battenberg-PyClone-VI-mr \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 60
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -29,9 +29,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-strelka2-battenberg-pyclone-vi/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/strelka2_battenberg_yamls/multi-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_Strelka2-Battenberg-PyClone-VI-mr \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-strelka2-battenberg-pyclone-vi/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/strelka2_battenberg_yamls/multi-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_Strelka2-Battenberg-PyClone-VI-mr \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 240
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-dpclust/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_Mutect2-Battenberg-DPClust-sr \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-dpclust/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_Mutect2-Battenberg-DPClust-sr \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 30
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 6 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/software/pipeline/pipeline-call-SRC/Nextflow/release/1.0.0-rc.1/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-phylowgs/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_Mutect2-Battenberg-PhyloWGS \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-phylowgs/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_Mutect2-Battenberg-PhyloWGS \
--partition_type F72 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 30
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-pyclone-vi/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_Mutect2-Battenberg-PyClone-VI \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-mutect2-battenberg-pyclone-vi/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/mutect2_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_Mutect2-Battenberg-PyClone-VI \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 240
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-dpclust/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_SomaticSniper-Battenberg-DPClust \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-dpclust/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_SomaticSniper-Battenberg-DPClust \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 60
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-phylowgs/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_SomaticSniper-Battenberg-PhyloWGS-sr \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-phylowgs/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_SomaticSniper-Battenberg-PhyloWGS-sr \
--partition_type F72 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 60
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-pyclone-vi/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_SomaticSniper-Battenberg-PyClone-VI \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-somaticsniper-battenberg-pyclone-vi/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/somaticsniper_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_SomaticSniper-Battenberg-PyClone-VI \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 240
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 5 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/user/yashpatel/pipeline-call-SRC/pipeline-call-SRC/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-strelka2-battenberg-dpclust/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/strelka2_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_Strelka2-Battenberg-DPClust \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-strelka2-battenberg-dpclust/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/strelka2_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_Strelka2-Battenberg-DPClust \
--partition_type F32 \
--email [email protected]
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
while [ $submit_signal == "false" ]
do
sleep 300
jobs_running=$((`squeue -u psteinberg | wc -l` - 1))
jobs_running=$(($(squeue -u psteinberg | wc -l) - 1))
echo "jobs running: $jobs_running"
if [ $jobs_running -lt 6 ]
then
Expand All @@ -36,9 +36,9 @@ do
done
python3 /hot/software/package/tool-submit-nf/Python/release/2.2.0/submit_nextflow_pipeline.py \
--nextflow_script /hot/software/pipeline/pipeline-call-SRC/Nextflow/release/1.0.0-rc.1/main.nf \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-strelka2-battenberg-phylowgs/input/config/seed_${seed}.config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/strelka2_battenberg_yamls/single-region/${patient}.yaml \
--pipeline_run_name ${patient}_${seed}_Strelka2-Battenberg-PhyloWGS \
--nextflow_config /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/run-strelka2-battenberg-phylowgs/input/config/seed_"${seed}".config \
--nextflow_yaml /hot/project/method/AlgorithmEvaluation/BNCH-000082-SRCRNDSeed/pipeline-call-src/strelka2_battenberg_yamls/single-region/"${patient}".yaml \
--pipeline_run_name "${patient}"_"${seed}"_Strelka2-Battenberg-PhyloWGS \
--partition_type F72 \
--email [email protected]
done
Expand Down
Loading

0 comments on commit 1b3da15

Please sign in to comment.