The scripts in this repository are utilities used to manage the IBEX Imaging Community Knowledge-Base (KB) and accompanying website.
- Create a Python virtual environment using venv or conda.
- Follow these instructions to install the latest utilities.
On the commandline, go to the root directory of the KB and run the relevant command for the file(s) you want to validate. For the current way to run the validation scripts, see their usage in the GitHub actions workflow. These are the commands that are automatically run when data is added to the KB repository.
On the commandline, go to the root directory of the KB and run the relevant command for the file(s) you want to convert. Note that the conversion of the publications bibliography file to markdown assumes that the pandoc program is installed (a general document conversion program supporting many common formats such as LaTex, docx).
For the current way to run the conversion scripts, see their usage in the GitHub actions workflow.
Creating supporting material can be done manually, writing markdown files or in a semi-automated fashion using the csv2supporting script:
csv2supporting reagents_batch.csv supporting_template_file.md.in output_directory --image_dir new_image_dir
-
reagents_batch.csv: csv input file. The file follows the reagent_resources.csv format with two additional columns titled "Publications" and "Notes". The "Notes" column is free text and can include markdown formatting. The "Publications" column contains the prefixes of markdown file names that contain the publication information. If multiple publications are associated with the same row, they are separated by a semicolon. These files are expected to be in the same directory as the csv input file (for example contents see radtke_pnas.md and radtke_nat_prot.md).
⚠ Note:- Leading and trailing whitespaces are removed from the csv (required by the KB).
- If images are provided as input to the script, optional
--image_dirargument, their MD5 hashes are computed and added in the column titled MD5. If there was content in that column it is overwritten. - The input file is overwritten by the updated information.
-
supporting_template_file.md.in: template file used to create supporting material files.
-
output_directory: path to directory where the supporting material files are written.
-
new_image_dir: optional argument, directory containing the images listed in the csv input file. These will be copied to the relevant output directories based on the path to the file listed in the csv. That is, if the file
all_images/image.jpgis listed in the csv file asFOXP3_eF570/image.jpg, it will be copied to theFOXP3_eF570directory.