Hello Welmoed,
Could you share the config.ini file with me? Basically it just sounds like there is a repeated group name under experiments ; it should be something like this:
[experiments]
group1=sample1, sample2, sample3, ...... (half of your hundreds of bam files)
group2=sample100, sample101, sample102, ...... (the other half)
I think possibly you had named "group1" and "group2" the same here?
Let me know if it makes sense.
Thanks,
-San