https://github.com/ggonnella/egcwebapp
A web application for visualizing and editing EGC data
https://github.com/ggonnella/egcwebapp
Last synced: 3 months ago
JSON representation
A web application for visualizing and editing EGC data
- Host: GitHub
- URL: https://github.com/ggonnella/egcwebapp
- Owner: ggonnella
- License: other
- Created: 2023-04-11T10:16:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-12T08:39:52.000Z (about 2 years ago)
- Last Synced: 2025-01-16T16:23:20.514Z (4 months ago)
- Language: Python
- Size: 672 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Authors: AUTHORS.txt
Awesome Lists containing this project
README
EGCWebapp is a web application for the visualization and (optionally) editing of
the information contained in EGC files.# Starting the application
To start the application, clone the repository, change to
the main directory of it,
and run:
```
pip install -r requirements.txt # install necessary dependencies
python3 egcwebapp/app.py # start the application server
```Leave the console open with the server running,
and enter the address mentioned in the console
in a web browser (e.g. http://127.0.0.1:5000).By default the application is opened in read-write mode.
To disable editing, enter this before the python3 command:
```
export EGCWEBAPP_MODE="r"
```# Using the application
First a file is uploaded using the ``Load file`` link in the top navigation bar.
Then one of the sections: ``Documents``, ``Extracts``, etc is selected from the bar.
The sections contain dynamic tables which are paginated and can be sorted by any
column. To search and filter the data, a general search box
is given on the top right (all fields), as well as search boxes for the
single columns, under the column headers.From each table, one can navigate the graph of interconnected records of the EGC file,
by simply clicking on references of one record to another inside the table.
Links are opened as nested tables. From each record it is possible also to
open the list of records which refer to it.## Editing mode
If editing is enabled, then new records can be created from the ``New Record``
button on the top right of the tables. For each record then some actions are available.
If there are no
references to the current record from other records, then it can be deleted.
Furthermore, the record can be edited (a nested editing form opens in the table)
and a (modified) copy of the record can be created (by opening it in the editing form,
changing the information and using the button ``Save as copy``.After editing the EGC data,
the file with edited information can be downloaded from the ``Save File``
link in the top navigation bar. By default, the location of the original
file is shown, so that is can be overwritten by the modified version.# About EGC
EGC is a format, which we developed, to represent rules of expectation
about the contents of genomes of prokaryotic organisms.
The format is described in a manuscript (available as preprint
at https://doi.org/10.48550/arXiv.2303.08758) and implemented as
TextFormats specification
(https://github.com/ggonnella/egc-spec). EGCtools
(https://github.com/ggonnella/egctools) is a Python library for
handling the format and EGCWebapp is based on it.## Acknowledgements
This project has been created in context of the DFG project GO 3192/1-1
“Automated characterization of microbial genomes and metagenomes by collection
and verification of association rules”. The funders had no role in study
design, data collection and analysis.