Giter Club home page Giter Club logo

flpprocess.jl's Introduction

FLPprocess

Stable Dev Build Status Build Status Codecov Coveralls Build Status

Raw data search and processing tools for the Flipping Task in the Systems Neuroscience lab at the Champalimaud Foundation, Portugal.

Usage

Process

The main process function is

DataIndex, Pokes, Bouts, Streaks = process_dataset(dir::String; mouse_tag = nothing, exp_name = nothing)

Process pokes, bouts and streaks dataframes for all data raw data found in the directory dir and stores them in a folder called Results followed by the current date. Returns a Tuple with 4 DataFrame in the following order:

DataIndex

each row contains information about a file: Path, Session, MouseID, Day, Turn

Pokes

each row contains information about a single poke

Bouts

A bout is defined as a series of consecutive pokes until either a reward is delivered or if the animal changes side.

Streaks

A streak is defined as a series of consecutive poke on the same side.

  • mouse_tag: a string to filter the file to process according to a label.

  • exp_name: if a String is provided the Results folder will be created in a folder named exp_name located in the parent folder of dir.

Alternatively the index of raw data to be processed can be created separately

process_dataset(DataIndex::AbstractDataFrame; exp_name = nothing)

see get_DataIndex

Search

The main search function is get_DataIndex

get_DataIndex(dir::String; mouse_tag = nothing)

Read all .csv files in directory dir and extract informations from the filename. It returns a DataFrame with File path, Session, MouseID, Day, Turn.

  • mouse_tag: a string to filter the results according to a label.

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.