rki-mf1 / cievad

A tool suite for a simple, streamlined and rapid evaluation of variant callsets
https://github.com/rki-mf1/cievad
GNU General Public License v3.0
5 stars 1 forks source link

[eval.nf] som.py stats miss first index #35

Closed Krannich479 closed 5 months ago

Krannich479 commented 5 months ago

PROBLEM:

The final stats report by som.py misses a first column in the header. It's misleading when converting and looking at the CSV table, e.g. with

sed 's/,/\t/g' sample01.sompy.stats.csv | column -t | less -S 

because all the lines below the header are shifted with respect to the header.

FIX:

The first column of the header needs content, e.g. "idx" in the example below:

idx,type,total.truth,total.query,tp,fp,fn,...
0,indels,140,113,113,0,27,0,0,...
1,SNVs,320,305,305,0,15,0,0,...
5,records,460,422,418,4,42,0,0,...

IMPLEMENTATION:

Add a process that modifies the header after the som.py process.