Commits

Giovanni Marco Dall'Olio committed b555170

TOPS: a qsub job to get the top scores

Comments (0)

Files changed (1)

jobs/get_topscores.q

+#/!usr/bin/env bash
+# Get Top Scores
+#
+#$ -cwd
+#$ -V
+#$ -l h_vmem=200M
+#$ -t 1-9
+#$ -j y
+#$ -o logs/bed/
+#$ -N topscores
+
+#SGE_TASK_ID=9
+
+case $SGE_TASK_ID in 
+
+1)
+    gawk '$5 > 4   {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/av_degree_EUR.bed > results/beds/results_bed/top_regions/avdegree_EUR_4.bed
+    ;;
+2)
+    gawk '$5 > 4.5 {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/av_degree_EUR.bed > results/beds/results_bed/top_regions/avdegree_EUR_45.bed
+    ;;
+3)
+    gawk '$5 > 0.6   {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/av_closeness_EUR.bed > results/beds/results_bed/top_regions/avcloseness_EUR_6.bed
+    ;;
+4)
+    gawk '$5 > 0.65 {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/av_closeness_EUR.bed > results/beds/results_bed/top_regions/avcloseness_EUR_65.bed
+    ;;
+5)
+    gawk '$5 > 20 {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/n_components_EUR.bed > results/beds/results_bed/top_regions/ncomponents_EUR_6.bed
+    ;;
+6)
+    gawk '$5 > 60 {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/n_components_EUR.bed > results/beds/results_bed/top_regions/ncomponents_EUR_65.bed
+    ;;
+7)
+    gawk '$5 > 4   {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/av_path_length_EUR.bed > results/beds/results_bed/top_regions/avpathlength_EUR_4.bed
+    ;;
+8)
+    gawk '$5 > 4.5 {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/av_path_length_EUR.bed > results/beds/results_bed/top_regions/avpathlength_EUR_45.bed
+    ;;
+9)
+    gawk '$5 > 5 {print $1, $6-1, $6, $4}' results/beds/results_bed/filtered/av_path_length_EUR.bed > results/beds/results_bed/top_regions/avpathlength_EUR_5.bed
+    ;;
+esac