Documentation for Developers

Guide to update the material on the website for website developers.

Table of contents

How to update the publication page?

  1. The publications are fetched from PubMed. Search the name (Niranjan Nagarajan) and save the results to a summary file by clicking the Save button on the top left, and select to save all the abstracts.

    A file named abstract-NiranjanNa-set.txt will be downloaded. Copy this file to publications/ in this code repository. You can also update the existing abstract file publications/abstract-NiranjanNa-set.txt by simply copy and pasting the new abstract to the beginning of the file.

  2. Run the python script to convert the abstracts to a YML file. Under the root directory of this repository, run

    python publications/pubmed_abstracts_to_yml.py
    

    The output YML file will be in _data/publications.yml. The keyword tags are automatically assigned based on the abstract of each article, using the kwmap variable in the script pubmed_abstracts_to_yml.py.

How to update the resource page?

The resources are currently hard-coded and have to be updated manually. The related data are located in

   _data/resources/software.yml
   _data/resources/pipelines.yml
   _data/resources/scripts_datasets.yml

and the corresponding webpages are located in

   _pages/software.html
   _pages/pipelines.html
   _pages/scripts_datasets.html

Update the YML file (following the existing examples) to update the corresponding webpage.