Skip to content
Snippets Groups Projects

WIP: Checkpoint snakefile

Merged Susheel Busi requested to merge checkpoint_snakefile into master
Compare and Show latest version
5 files
+ 208
6
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -15,7 +15,7 @@ awk '{print $0=$2"\t"$1}' flye_metaspades.m8 > flye_metaspades.txt # this o
awk -F"\t" 'BEGIN{OFS="\t"} {if (NR==FNR) {a[$1]=$2; next} if ($1 in a) {print $1, $2, a[$1]}}' flye_metaspades.txt flye_megahit.txt > temp
awk -F"\t" 'BEGIN{OFS="\t"} {if (NR==FNR) {a[$1]=$2; next} if ($1 in a) {print $2, $1, $3, a[$1]}}' flye_metaspades_hybrid.txt temp > temp2
awk -F"\t" 'BEGIN{OFS="\t"} {if (NR==FNR) {a[$1]=$2; next} if ($1 in a) {print $1, $2, a[$1]}}' megahit_metaspades_hybrid.txt megahit_metaspades.txt > temp3
awk -F"\t" '{print $0=$3"\t"$1"\"$2}' temp3 > temp4
awk -F"\t" '{print $0=$3"\t"$1"\t"$2}' temp3 > temp4
awk -F"\t" 'BEGIN{OFS="\t"} {if (NR==FNR) {a[$1]=$2; next} if ($1 in a) {print $2, $1, $3, a[$1]}}' metaspades_metaspades_hybrid.txt temp4 > temp5
awk -F"\t" 'BEGIN{OFS="\t"} {if (NR==FNR) {a[$1]=$2; next} if ($1 in a) {print $1, $2, $3, $4, a[$1]}}' temp5 temp2 > flye_megahit_metaspades_hybrid_metaspades.txt
Loading