Skip to main content

A Python package for converting EyeLink .asc files to structured .csv files.

Project description

asc2csv

asc2csv is a Python package developed for converting EyeLink .asc files into structured .csv files, facilitating the analysis of eye-tracking data. It extracts gaze data and event details such as blinks, saccades, and fixations, organizing them into an easy-to-use format.

Features

  • Converts EyeLink .asc files to .csv format efficiently.
  • Extracts and processes blink (EBLINK), saccade (ESACC), and fixation (EFIX) event data.
  • Aligns timestamps relative to trial start for consistent temporal analysis.
  • Handles missing data by combining event and sample data fields where applicable.

Changelog

See the Changes in versions

Version 1.4

  • Initial release of asc2csv.
  • V 1.4 Update 12/11/24 make adding header=True in conversion optional. By default header=True is applied.

Version 1.4.1

  • Enhanced data importing

Installation

To install the package, run:

pip install asc2csv

Usage

Import the package and use the process_asc_file() function:

import asc2csv as convert

convert.process_asc_file('input_file.asc', 'output_file.csv')

Parameters

  • input_file_path (str): Path to the input .asc file.
  • output_csv_path (str): Path to save the output .csv file.
  • header (bool, optional): Whether to include a header row in the output CSV. Default is True.

Requirements

  • Python >= 3.6
  • pandas

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! If you find a bug or have an idea for an improvement, please submit a pull request or open an issue.

Creator and Maintainer

Mohammad Ahsan Khodami

Acknowledgments

  • The EyeLink system and data format are provided by SR Research.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asc2csv-1.4.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asc2csv-1.4.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file asc2csv-1.4.1.tar.gz.

File metadata

  • Download URL: asc2csv-1.4.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for asc2csv-1.4.1.tar.gz
Algorithm Hash digest
SHA256 2663fe2e81ab14c9bc87c80d7bb9a4ffe538cb0e6a69dc7c4593bda4ada7cbfd
MD5 72da3271281f0bc1f0a1ece0cf7d0c4c
BLAKE2b-256 22156497e5874667ae720036a7c2a5d36a02bf15ce73594bdaedce8eb8eaac9a

See more details on using hashes here.

File details

Details for the file asc2csv-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: asc2csv-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for asc2csv-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30eeb8e870508dc7e2f08f6545d3186cbb976d17126276440f41400378c90ef0
MD5 ed349ff34d2c66f3ea53025c5d89844c
BLAKE2b-256 8b56862d5ed5952902f9706d12cbceff69913d6af6e094a40ac142937b798f45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page