Skip to content

Biosurv/RunReporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunReporter

This is a repository for Polio Sequencing Consortium Run Reporter app development. The app generates an aggregate report from DDNS/Isolate run reports.

Interface

Interface

Installation

Go to the releases page and download the latest release, this will be a single executable file. For now there is only a Windows version of the app. You might need to allow the executable through your firewall if it does not run the first time.

Usage

The User firstly selects the destination where the report is saved to and then the User can drag the detailed run reports into the dropbox. The User will then click the Generate button to run the app. A message will let you know if the app worked successfully and show you the output file name. The output file name is made using the lowest and highest run number and the chosen report mode e.g. {mode}_{lowest report}to{highest_report}.html.

The User can choose reporting modes with selection box in the top left, by default it is DDNS. The DDNS mode will display both Sabin and VDPV samples information such as classification and EPID. The Isolate mode, will only display sample information for the VDPVs. Both Modes will display summary counts of all classifications for all the runs supplied and for the individual runs.

The app will handle a few errors such as no destination / no input file chosen,missing columns, but the app has a general error handler that will display the error and write to log file called "app_error.log" at the chosen destination output. This log will have more details about the error for debugging purposes; this won't be overwritten but logs will continually be added until the file is 5Mb in size and will delete the earliest logs.

If the wrong file was chosen, use the clear button to clear the dropbox. If the app has run successfully, it will automatically clear the dropbox and the destination path will never be cleared.

The copy button allows the users to copy the simple text version of the report.

Inputs

The detailed run reports should be completed by the technical team lead before this point, but the app only requires these columns to completed:

  • sample
  • [DDNS|Isolate]classification
  • EpidNumber
  • [Run|Sample]QC
  • ToReport
  • AnalysisPipelineVersion
  • MinKNOWSoftwareVersion
  • Piranha columns

The user can supply as many reports as they want to the app. The app will check for empty information such as EpidNumber and warn the user. The two software version will be filled in as missing in the output if missing. The EmergenceGroup of a VDPV will be set to UNKNOWN. Please return to those reports and will the information and run the app again.

The filenames for the reports are expected to be in the format YYYYMMDD_RUNNUMBER_detailed_run_report.csv, e.g. 20250528_001_detailed_run_report.csv. This won't prevent the app from working but will mess up the output filename.

Output

The main output of app is the HTML report described above. Below is an example:

The app also has a small text window that will show a simplified version of the report, useful if want to check the output at a glance or copy it using the copy button. The text can be put into an email for example.

Compiling the app

If you want to compile the app yourself, perhaps for a OS that isn't currently supported. This app was compiled using Nuitka and in the misc folder, there is the conda environment YAML that was used to build the app. You can clone this repository if you want to compile the app:

  1. Create the Conda/Mamba environment using:
[conda|mamba] env create -f extras/nuitka.yml
  1. Activate the environment:
[conda|mamba] activate nuitka
  1. Use the compilation command:
nuitka --onefile --enable-plugins=pyqt5 --include-data-files=Logo.png=./Logo.png --include-data-files=Icon.ico=./Icon.ico --disable-console --windows-icon-from-ico=Icon.ico --company-name="Biosurv International" --product-name="CSV Merger Application" --file-version=2.1.0 --file-description=="This App merges LabID and EpiID files to a standard output"  Merger_before_piranha.py

Make sure that you are the Python Version folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages