95ae203cc2b6bb6c15d3e54c8a6137a69f89c382
Startup:
- Open the app using the shortcut in the Submissions folder: L:\Robotics Laboratory Support\Submissions\Submissions App.lnk.
- Ignore the large black window of fast scrolling text, it is there for debugging purposes.
- The 'Submissions' tab should be open by default.
- Default settings (config.yml) will be copied to C:\Users\{USERNAME}\AppData\Local\submissions\config
Logging in New Run:
should fit 90% of usage cases
- Ensure a properly formatted Submission Excel form has been filled out.
- The program can fill in reagent fields and some other information automatically, but should be checked for accuracy afterward.
- Click on 'File' in the menu bar, followed by 'Import Submission' and use the file dialog to locate the form.
- The Excel file may also be dragged into the grey area on the left hand side of the screen from Windows File Explorer. If so, skip step 3.
- Click 'Ok'.
- Most of the fields in the form should be automatically filled in from the form area to the left of the screen.
- You may need to maximize the app to ensure you can see all the info.
- Any fields that are not automatically filled in can be filled in manually from the drop-down menus.
- Any reagent lots not found in the drop-downs can be typed in manually.
- Once you are certain all the information is correct, click 'Submit' at the bottom of the form.
- Add in any new reagents the app doesn't have in the database.
- Once the new run shows up at the bottom of the Submissions, everything is fine.
- In case of any mistakes, the run can be overwritten by a reimport.
Adding Equipment to a Run:
- Right-click on the run in the Submissions Table to access the context menu.
- Click on “Add Equipment”.
- Select equipment used for each equipment role from the drop-down menu.
- Any tips associated with a liquid handler will also be available in a separate drop-down menu.
- Select (or input) the process used on with the equipment.
- Equipment that is not necessary may be disabled using the checkboxes to the left of each entry.
Importing PCR results (Wastewater only):
This is meant to import .xlsx files created from the Design & Analysis Software
- Click on 'File' -> 'Import PCR Results'.
- Use the file dialog to locate the .xlsx file you want to import.
- Click 'Okay'.
Using the Gel Box (Wastewater Artic only):
- Right-click on the run in the Submissions Table to access the context menu.
- Click on “Gel Box”.
- Choose the .jpg file exported from the Egel reader.
- Click “Okay”.
- If none exists, Enter the DNA Core Submission Number and gel barcode at the top of the window.
- Use the histogram slide on the right side of the window to adjust the image contrast.
- Use the mouse scroll to zoom in on relevant areas of the image.
- Enter the control status in the grid at the bottom of the window.
- Add any relevant comments.
- Click “Okay”.
Check existing Run:
- Details of existing runs can be checked by double-clicking on the row of interest in the summary sheet on the right of the 'Submissions' tab.
- All information available on the run should be available in the resulting text window.
- This information can be exported by clicking 'Export DOCX' at the top.
Signing Off on a run:
- Open the “Submission Details” window (see 7.6 above).
- Scroll down to bottom of the details window.
- If the current user is authorized a button marked “Sign Off” will appear at the bottom of the page. Click it.
Generating a report:
- Click on 'Reports' -> 'Make Report' in the menu bar.
- Select the start date and the end date you want for the report. Click 'ok'.
- Use the file dialog to select a location to save the report.
- Both an Excel sheet and a pdf should be generated containing summary information for submissions made by each client lab.
Exporting a run as an Excel file:
- Right-click on the run in the Submissions Table to access the context menu.
- Select “Export” from the context menu.
- Select the folder and input the filename in the “Save File” dialog.
- Click “Okay”.
- Ensure the resulting Excel workbook contains all the relevant information.
Checking Controls:
- Controls for bacterial runs are now incorporated directly into the submissions database using webview. (Admittedly this performance is not as good as with a browser, so you will have to triage your data)
- Click on the "Controls" tab.
- Range of dates for controls can be selected from the date pickers at the top.
- If start date is set after end date, the start date will default back to 3 months before end date.
- Recommendation is to use less than 6 month date range keeping in mind that higher data density will affect performance (with kraken being the worst so far)
- Analysis type and subtype can be set using the drop-down menus. (Only kraken has a subtype so far).
Adding new Kit:
- Click "Add Kit" tab in the tab bar.
- Select the Submission type from the drop-down menu.
- Fill in the kit name (required) and other fields (optional).
- For each reagent type in the kit click the "Add Reagent Type" button.
- Fill in the name of the reagent type. Alternatively select from already existing types in the drop-down.
- Fill in the reagent location in the Excel submission sheet.
- For example if the reagent name is in a sheet called "Reagent Info" in row 12, column 1, type "Reagent Info" in the "Excel Location Sheet Name" field.
- Set 12 in the "Name Row" and 1 in the "Name Column".
- Repeat 6b for the Lot and the Expiry row and columns.
- Click the "Submit" button at the top.
Linking Extraction Logs:
- Click "Monthly" -> "Link Extraction Logs".
- Chose the .csv file taken from the extraction table run logs folder.
Linking PCR Logs:
- Click "Monthly" -> "Link PCR Logs".
- Chose the .csv file taken from the PCR table run logs folder.
SETUP:
Download and Setup:
Python v3.11 or greater must be installed on your system for this.
- Clone or download from GitHub.
- Enter the downloaded folder.
- Open a terminal in the folder with the 'src' folder.
- Create a new virtual environment:
python -m venv .venv - Activate the virtual environment: (Windows)
.venv\Scripts\activate.bat - Install dependencies:
pip install -r requirements.txt
Database:
If using a pre-existing database, skip this.
- Copy 'alembic_default.ini' to 'alembic.ini' in the same folder.
- Open 'alembic.ini' and edit 'sqlalchemy.url' to the desired path of the database.
- The path by default is sqlite based. Postgresql support is available.
- Open a terminal in the folder with the 'src' folder.
- Run database migration:
alembic upgrade head
First Run:
- On first run, the application copies src/config.yml to C:\Users\{USERNAME}\AppData\Local\submissions\config
- If this folder cannot be found, C:\Users\{USERNAME}\Documents\submissions will be used.
- If using Postgres, the 'database_path' and other variables will have to be updated manually.
- Initially, the config variables are set parsing the 'sqlalchemy.url' variable in alembic.ini
Building Portable Application:
Download and Setup must have been performed beforehand.
- Using pyinstaller, an exe can be created.
- Open a terminal in the folder containing the 'src' folder.
- Activate the virtual environment: (Windows)
.venv\Scripts\activate.bat - Enter the following command:
pyinstaller .\submissions.spec --noconfirm
Description
Languages
Python
91.3%
HTML
4.9%
JavaScript
2.9%
CSS
0.8%