Skip to content

Latest commit

 

History

History
89 lines (66 loc) · 2.73 KB

File metadata and controls

89 lines (66 loc) · 2.73 KB

Modify Metadata Application

This is a simple web-based application built with Flask, designed to create and modify metadata files.

Getting Started

Prerequisites

Make sure you have the following installed on your system:

Setting Up R

To successfully run this project, you need to set the R_HOME environment variable on your computer. This environment variable should point to the directory where R is installed. Follow the steps below to configure it:

1. Locate Your R Installation Directory

  • If you have R installed, you should find it in a directory similar to one of these:
    • C:\Program Files\R\R-x.x.x\ (where x.x.x is the version number of R installed)
    • C:\Users\YourUsername\Documents\R\R-x.x.x\

If you do not have R installed, please download and install it from the official R website.

2. Set the R_HOME Environment Variable

On Windows:

  1. Press Win + S and type Environment Variables.
  2. Click on Edit the system environment variables.
  3. In the System Properties window, click on Environment Variables....
  4. Under System variables (or User variables if you only want to set it for your user), click New....
  5. In the Variable name field, enter: R_HOME.
  6. In the Variable value field, enter the path to your R installation directory. For example:
    • C:\Program Files\R\R-x.x.x\
  7. Click OK to close each window and apply

3. Install R package inferno

Open a R terminal and run the following

install.packages("devtools")
devtools::install_github('pglpm/inferno')

Setting up the Flask App

  1. Make sure to have Python 3.12 activated:

    python --version
  2. Clone the repository:

    git clone https://github.com/h587916/modify_metadata.git
    cd modify_metadata
  3. Create a virtual environment:

    python -m venv venv
  4. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  5. Install the required packages:

    pip install -r requirements.txt

Running the Application

  1. Start the flask app:

    flask run
  2. Access the application:

    • Open your web browser and navigate to http://127.0.0.1:5000.

do you have some improvements to this README.md file+