Skip to content

Add operation to extend event files based on other tsv files #810

Open
@monique2208

Description

@monique2208

@neuromechanist @VisLab

We want to add a remodeler operation that data to an events tsv file based on another tabular file.

Specifically this would be of interest for stimulus metadata that is available in a tabular file. For more details on how this might be organized as discussed here.

Based on the organization there are two types of extensions:

  • Column only extension
  • Row and column extension

For now I think this could be two operations, but with the different options we can also split it up further.

Column only extension

The column only extension would apply to still stimuli. Extension would happen from the stimuli.tsv file. If a value in the events.tsv stim_file column matches a value in the stimuli.tsv column, other column values in that row of the stimuli.tsv are copied to the events.tsv.

There are many ways we can make this more generic:

  • Specify an input tsv
  • Specify input column names, possibly different names between files
  • Specify a mapping between the column values in one file to the other so that column values do not necessarily have to match in the original files.
  • Specify which columns from the external file to copy to the events file

Column and row extension

The column and row extension would apply to stimuli with temporal extent. Extension would happen from an x_stimulus.tsv file where x would match the value in the stim_file column of the event file. The x_stimulus.tsv should contain an onset and duration column. The onset value of the matching row would be added to the onsets in the stimulus file. Then, the rows and columns from the stimulus file would be added to the events file. It would be ordered by onset. Columns values from the original matching rows might also need to be copied to the new events.

More generic:

  • Specify a column, column value to tsv file mapping
  • Specify an interval of the external tsv file (someone shows part of a movie, uses annotations provided from full)1
  • Specify which columns from the stimulus.tsv to copy
  • Specify which columns from the event file pass on their value from the parent event to the newly added rows

Footnotes

  1. We can also say that in this case people should just crop the stimulus.tsv file appropriately. I like having one way of telling people how to do some things so that things stay consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions