Code Monkey home page Code Monkey logo

tobii-aoi-wide-to-long's Introduction

Convert Tobii AOI data (wide to long format)

In some configurations Tobii exports data in a wide format in which each area of interest (AOIs) is represented by a column and a value of 1 indicates a hit. All columns containing 0 or -1 are irrelevant. By including only hits (1) and rendering data in a long format by ID and AOI (column name), the resulting data is much smaller and more well adapted for further analysis.

The script parses a Tobii eyetracker .tsv output file to produce:

  1. an AOIFILE with all AOI hits indexed by an ID (long format)
  2. an IDFILE with participant and event information indexed by ID

The data in AOIFILE and IDFILE can be joined using the ID column.

By default the script removes the leading "AOI[" and trailing ""]Hit"" from AOIs. This trimming can be disabled by specifying: -v NOTRIM=1

Column headers can be disabled by specifying: -v NOHEADERS=1

Default filenames are aois.tsv and ids.tsv for AOIs and IDs, respectively. Custom filenames can be specified using -v AOIFILE=custom-aoi.tsv and -v IDFILE=custom-ids.tsv

Usage:

gawk -f tobii-aoi-wide-to-long.awk exported-tobii-data.tsv

License

Mozilla Public License Version 2.0

Author Information

Kristoffer Winther Balling ([email protected]) & Laura Winther Balling ([email protected])

tobii-aoi-wide-to-long's People

Contributors

balling-dev avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.