Giter Site home page Giter Site logo

trelliscope_example's Introduction

Example of using trelliscope to fit sinusoidal curves to time-series data.

This repo is based on a project that fit cosinor regression models to time-series lipidomics data. The data used here is fake.

The data is provided in ./data but you can see how it was created in munge_data.R. There are multiple 'subjects' that are assigned to either the 'day' or 'night' group. Each sample indicates the group, individual, and time it was taken. For each subject, they are assigned a sinusoidal response across samples for each feature ('lipids'). The amplitude and phase shift of the sinusoid is forced to be dependent on the group assignment. Additionally, I induce a random subject effect.

In apply_model.R or Notebook.Rmd, we split the data by each lipid and create a plot across all lipids. This is done by fitting a cosinor model to the data within each lipid, that essentially tries to align a sinusoid to the data representing each subject for that lipid. The model fit is then used to draw a plot for each lipid, all of which are arranged in an interactive trelliscope display.

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.