merge files to create a csv for all data required in active moiety sub graph