ccbaumler / 2022-benchmark

benchmarking dib-lab software
3 stars 2 forks source link

Snakefile benchmark needs an id column #5

Open ccbaumler opened 1 year ago

ccbaumler commented 1 year ago

The benchmark files created by snakemake do not come with an internal id column only the benchmarks. This could become an issue when running the same input file multiple times.

ccbaumler commented 1 year ago

For now this is the best I have come up with:

for i in S*.tsv; do sed -i "s/$/\t$i/" $i; done
for i in S*.tsv; do sed -i "1s/$i/id/" $i; done
csvtk concat S* > all_samples.tsv

These sed commands could be included in the snakemake file.