GithubHelp home page GithubHelp logo

scholcommlab / fhe-plos Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 2.08 MB

Reproduction code for: How much research shared on Facebook is hidden from public view?

License: MIT License

Jupyter Notebook 95.41% Python 4.43% Shell 0.16%
altmetrics facebook plos engagement

fhe-plos's Introduction

logo

Reproduction code for: How much research shared on Facebook is hidden from public view?

A comparison of public and private online activity around PLOS ONE papers

Authors: Asura Enkhbayar, Stefanie Haustein, Germana Barata, Juan Pablo Alperin

Resource Link
Preprint TBD
Article TBD
Code Zenodo (doi:10.5281/zenodo.3381821)
Data Dataverse (doi:10.7910/DVN/3CS5ES)

This repository contains all figures and tables present in the manuscript for "How much research shared on Facebook is hidden from public view?". Output files can be found in:

  • figures/ - contains all figures used in the manuscript
  • tables/ - contains all programmatically created tables used in the manuscript

Furthermore, all the input data and code required to reproduce results are provided with instructions. Provided scripts include:

  • download_data.sh - to download input data
  • prepare_data.py - data preprocessing
  • analysis.py - data analysis and outputs

This article is part of a broader investigation of the hidden engagement on Facebook. More information about the project can be found here.

Initial Data Collection

The data used in this paper was collected using our own methods. The data collection method is described in [Enkhbayar and Alperin (2018)(https://arxiv.org/abs/1809.01194)]. Code & instructions can be found here.

Reproduce results

All scripts have been written with Python 3.x. To explore results interactively a working instance of Jupyter Notebooks/Labs is required.

Packages specified in requirements.txt can be installed via

pip install -r requirements.txt

  1. Clone this repository and cd into the scripts folder

    git clone [email protected]:ScholCommLab/fhe-plos-paper.git
    cd fhe-plos-paper/scripts
    
  2. Download data from Dataverse.

    All the data is hosted on dataverse: Dataverse repository

    Using the helper script provided, you can download all files into the respective locations. Make the script executable and ensure that you have wget installed.

    chmod +x download_data.sh
    ./download_data.sh
    
  3. Preprocess data

    Run the preprocessing script to apply transformations on the input dataset. This step creates the file data/articles.csv

    python process_data.py

  4. (Re)produce results

    Run the analysis script to produce figures and tables.

    python analysis.py

    Optionally, you can also open the notebook analysis.ipynb with Jupyter to explore the dataset and results.

fhe-plos's People

Contributors

bubblbu avatar pdurbin avatar

Watchers

 avatar  avatar  avatar

Forkers

pdurbin

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.