Giter Club home page Giter Club logo

maketutorial1's Introduction

Example of a reproducible research workflow: JSON parsing and text mining in Python, R + RMarkdown

This is a basic example workflow using GNU Make, Python and R for a reproducible research workflow, following the principles of tilburgsciencehub.com. Please use this template in combination with our tutorial at http://tilburgsciencehub.com/tutorial.

The main aim of this repository is to have a clean and basic structure, which can be easily adjusted to use in an actual project. In this example project, the following is done:

  • Pipeline stage "data-preparation"
    • Download raw JSON data in a zip file
    • Unzip data
    • Parse JSON data to CSV file
    • Load CSV file, and enrich textual data with text mining metrics using Python's TextBlob package for sentiment analysis
  • Pipeline stage "analysis"
    • Load final output file from previous pipeline stage, run precleaning code
    • Produce RMarkdown HTML output with simple statistics

Dependencies

  • Python via the Anaconda distribution

  • TextBlob via pip install -U textblob

  • NLTK dictionaries; open Python, then type

    import nltk
    nltk.download('punkt')
    
  • Gnu Make

  • R and the following packages:

install.packages(c("stargazer", "knitr", "data.table", "ggplot2"))

Detailed installation instructions can be found here: tilburgsciencehub.com/tutorial

How to get started

The best way to get started is by following our tutorial.

  • Download this repository (either by forking and then cloning, or as a template)

  • Open Terminal in project's main directory, type make

  • The src/data-preparation and src/analysis directories contain the specific workflow for each stage of the pipeline.

  • Tested on Mac and Windows 10

  • Many possible improvements remain. Comments and contributions are welcome!

maketutorial1's People

Contributors

sjorsboelaars1 avatar

Watchers

 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.