We are trying to build flexible schema where, for example, we might have single units that come from one of two places, either a SpikeSorting pipeline that begins from raw data, or imported from a file where spike sorting has already been done.
We'd like to be able to feed the data from whichever of those tables is relevant into the same analysis functions / tables downstream.
We have considered making the SpikeSorting table a hybrid of computed and imported entries, but that seems a bit ugly. Is there a better way?