sii-cell-atlas / paraCell

Single-cell analysis web interface, especially geared toward parasitologists. Inherits core functionality of cellxgene and cellxgene VIP for general purpose analysis, with additional features such as advanced gene search, host-parasite interactions, database integration and trajectory inference.
MIT License
2 stars 3 forks source link

Automated YAML file parsing #20

Closed EdwardAgboraw closed 1 year ago

EdwardAgboraw commented 1 year ago

VIP now automatically detects and parses the YAML file, using it to set global variables and removing the need for any "hardcoding" in the code itself. This is done by storing the YAML files in a sub-directory of the "cellxgene_VIP" titled YAML. The path to the "cellxgene_VIP" directory is automatically stored in the "strExePath" variable in VIPInterface.py; this lets any YAML file be accessed on the backend using only its name (which is always the name of the dataset it is associated with) and some minor string formatting (e.g. strExePath + "/YAML/" + dataset + ".yml").