Przeglądaj źródła

remove ad

master
LUYAO REN 4 lat temu
rodzic
commit
b7ccd94760
1 zmienionych plików z 9 dodań i 1 usunięć
  1. +9
    -1
      tasks/benchmark.wdl

+ 9
- 1
tasks/benchmark.wdl Wyświetl plik

@@ -19,7 +19,15 @@ task benchmark {
export HGREF=/cromwell_root/tmp/reference_data/GRCh38.d1.vd1.fa

cat ${vcf} | grep '#' > header
cat ${vcf} | grep -v '#' | grep -v '0/0' | grep -v '\./\.' > body
cat ${vcf} | grep -v '#' | grep -v '0/0' | grep -v '\./\.'| awk '
BEGIN { OFS = "\t" }
{
for ( i=9; i<=NF; i++ ) {
split($i,a,":") ;$i = a[1];
}
}
{ print }
' > body
cat header body > filtered.vcf

/opt/rtg-tools/dist/rtg-tools-3.10.1-4d58ead/rtg bgzip filtered.vcf -c > ${sample}.rtg.vcf.gz

Ładowanie…
Anuluj
Zapisz