Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
monique2208 opened this issue Dec 15, 2023 · 1 comment
Open

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

monique2208 opened this issue Dec 15, 2023 · 1 comment

Comments

@monique2208
Copy link
Contributor

@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.

@VisLab
Copy link
Member

VisLab commented Dec 15, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants