GithubHelp home page GithubHelp logo

analysis_reports's Introduction

Analysis Reports

Introduction

This repository provides a script ar.py to generate analysis reports to accompany released data.

Getting Started

Installation

Clone this repository into a folder on the cluster.

git clone [email protected]:oicr-gsi/Analysis_Reports.git

Dependenices

Separately, confirm that you have access to the QC-ETL caches under the folder /scratch2/groups/gsi/production/qcetl_v1, or else the report will not be able to pull data.

The file requirements.txt has the dependenices required for the script to work. It is recomended that you install these in a new python virtual environment. One option is to use Anaconda, a popular package management software that was used in the development of this repository.

After installing Anaconda and setting up a new virtual environment, run the following command in the root directory of this repo

conda create -c conda-forge --prefix /path/to/conda/env --file requirements.txt

If you opt to use a different package manager like Pyenv, you will most likely run

pip install -r requirements.txt

Usage

Two examples of using the script are as follows:

Example 1

python3 ar.py -i infile.json -o outfile.pdf

This will pull data from infile.json and, using data from QC-ETL files located under /scratch2/groups/gsi/production/qcetl_v1, will create an Analysis Report in the current directory named outfile.pdf



Example 2

python3 ar.py -i infile.json -o /reports/outfile.pdf --stage

This will pull data from infile.json and, using data from QC-ETL files located under /scratch2/groups/gsi/staging/qcetl_v1, will create an Analysis Report in the reports directory named outfile.pdf.

Parameters

argument abbreviation purpose required/optional default
--infile -i The input file to be read required ar_input.json
--outfile -o Name of the report generated required "Analysis_Report.pdf"
--staging, --stage If used, data will be pulled from stage. optional Leaving out the flag will pull data from production

Input json structure

Still being developed. (JSON below is a placeholder.)

{"cases":
   {workflow_1:
      {"workflow_id": "19168526", "workflow_version":"2.0.2"},
    workflow_2:
      {"workflow_id":"16962244", "workflow_version":"2.0.2"}
   }
}

analysis_reports's People

Contributors

julia-qian avatar lheisler avatar

Watchers

 avatar  avatar  avatar  avatar

analysis_reports's Issues

TEMP space is hardcoded

temporary plots are saved into a hardcoded location
/.mounts/labs/gsiprojects/gsi/gsiusers/jqian/Analysis_Reports/plots
these should be in either $TMP, or a provided temp location

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.