From 4e18d0ed4133d8919b53e29bc9b579ce3d010669 Mon Sep 17 00:00:00 2001 From: Syed Talha Khalid Date: Tue, 17 Dec 2024 01:30:58 -0500 Subject: [PATCH 1/4] updated interface --- electron-app/resources/saeedlogo.png | Bin 0 -> 22867 bytes electron-app/src/main/index.ts | 6 +- electron-app/src/renderer/index.html | 2 +- .../src/components/ConfigForm/index.tsx | 142 ++++++++++-------- .../renderer/src/components/SideBar/index.tsx | 4 +- .../src/renderer/src/utils/helper.tsx | 10 +- 6 files changed, 90 insertions(+), 74 deletions(-) create mode 100644 electron-app/resources/saeedlogo.png diff --git a/electron-app/resources/saeedlogo.png b/electron-app/resources/saeedlogo.png new file mode 100644 index 0000000000000000000000000000000000000000..73e0d84ae9c391b2a53bb54c19a0ed8d5208e51f GIT binary patch literal 22867 zcmeFYbySqyw>Un`03*`fA&h`@cgRaCAu281AR#$)`3jN(N=OO{N{4g}N=S>O)y3~>#p^?|9wUu=6TL@_CCALK6~$T=J`D>Rl@6Z*C7xHp}LyVeFy}K z3xQzmUju(3DzQKL!2^Yjfx4}_Iv3;`Xu}5$*bppmhYJO_f8Xze1}GK`0t4-d;3C3; zLdd{(D!9l%JElM8qQk)!PA~aRbBHQgpCitf%pIT#x$}B@d*m>2}^)C0zx8Ef1SF>l8(Q-Y1Q<4aLT_#Bn5?$rfqzf93y*sw+p- ze#Nfa(cYo7`ihyN!1&QQ~h*@ zHSKH74~8ABCal%U6R2KAtZqSl&{vv#L3vMr&R-8hs7kE<)gOYBH94?!Ys2 zrMa;FH+qjK!sfNH-Q2ICH(2|sZWG|dk{P;F;3ana(RM@YsT=*Jc|UXBQy}~O6?lH~$tSnbuJe_1&4S}})X$@cFktgZeD@8;$H z_=+8CD}I~DHqM}{2N+fGzYK|)kNZYE^mMTOm$3c|ZJ0M#?EE_+ z0Q{eL|4Z+G@P5@9^wQLnQgXHO!jPw~B+H5!U&`9m%E4Od>efQsTFAyq(u!AHOiYMZ zM9@~4*HY9+EG%q=#dvM3 z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!~nC4YQYx_ z>ojQAAtg{0u`(zt9}dig=ATYS+%_R=d_T@>nVd5mNVP9HESwVN=LaXf0b@i-%AGlI zHk*ApbHkWp9E}{zHAoYcKc)8>h1q}F`AGPOaK>)dW3_uobA;0WYiYmya~H8$9i}Pl SuLeyt0?t{U$CjCUlK%ng|5>g8 literal 0 HcmV?d00001 diff --git a/electron-app/src/main/index.ts b/electron-app/src/main/index.ts index d1872c7..4d5f43f 100644 --- a/electron-app/src/main/index.ts +++ b/electron-app/src/main/index.ts @@ -1,7 +1,7 @@ import { app, shell, BrowserWindow, ipcMain, dialog } from 'electron' import path, { join } from 'path' import { electronApp, optimizer, is } from '@electron-toolkit/utils' -import icon from '../../resources/icon.png?asset' +import icon from '../../resources/saeedlogo.png?asset' import { spawn } from 'child_process' import fs from 'fs' @@ -25,7 +25,9 @@ const config = JSON.parse(rawData) let cmd -function createWindow(): void { + + +function createWindow(): void { // Create the browser window. const mainWindow = new BrowserWindow({ width: 900, diff --git a/electron-app/src/renderer/index.html b/electron-app/src/renderer/index.html index e198e05..7cf977d 100644 --- a/electron-app/src/renderer/index.html +++ b/electron-app/src/renderer/index.html @@ -2,7 +2,7 @@ - Electron + Maestro { const [useGpu, setUseGpu] = useState(false) @@ -29,17 +30,17 @@ const ConfigForm = ({ run }: any) => { } = useForm({ mode: 'onTouched', defaultValues: { - spec_batch_size: 16384, - pep_batch_size: 4096, + spec_batch_size: 4, + pep_batch_size: 1, - search_spec_batch_size: 1024, + search_spec_batch_size: 0.5, precursor_tolerance: 20, precursor_tolerance_type: 'ppm', keep_psms: 5, num_mods: 1, - charge: 8, + charge: 4, length_filter: true, len_tol_neg: -1, @@ -75,7 +76,7 @@ const ConfigForm = ({ run }: any) => {
setValue('mgf_dir', path, { shouldValidate: true })} @@ -84,16 +85,7 @@ const ConfigForm = ({ run }: any) => { setValue('prep_dir', path, { shouldValidate: true })} - value={watch('prep_dir')} - /> - - - setValue('pep_dir', path, { shouldValidate: true })} @@ -115,9 +107,13 @@ const ConfigForm = ({ run }: any) => { { { + + + { - - - + { /> + + + Search space reduction using the following + {/* Filters */} + + setValue('length_filter', e.target.checked)} + /> + } + label="Length Filter" + /> + + {watch('length_filter') && ( + <> + + + + + + + + + )} + - setValue('length_filter', e.target.checked)} - /> - } - label="Length Filter" - /> { {/* Text fields at the bottom */} - - - - - - - diff --git a/electron-app/src/renderer/src/components/SideBar/index.tsx b/electron-app/src/renderer/src/components/SideBar/index.tsx index eebd301..1f0510c 100644 --- a/electron-app/src/renderer/src/components/SideBar/index.tsx +++ b/electron-app/src/renderer/src/components/SideBar/index.tsx @@ -6,10 +6,12 @@ import { ListItemIcon, ListItemText, Divider, - Typography + Typography, + Box } from '@mui/material' import HomeIcon from '@mui/icons-material/Home' import { styled } from '@mui/material/styles' +import logo from '../../assets/logo-1.png' const drawerWidth = 240 @@ -33,24 +35,31 @@ const Toolbar = styled('div')(({ theme }) => ({ const Sidebar = () => { return ( - - MAESTRO - - - - - - - - - - {/* - - - - - */} - + + + + MAESTRO + + + + + + + + + + + {/* + + + + + */} + + + + + ) } From 8713653e4e15c4adcfcf0665ba3cd8099fba4441 Mon Sep 17 00:00:00 2001 From: Syed Talha Khalid Date: Tue, 17 Dec 2024 17:53:56 -0500 Subject: [PATCH 4/4] updated the installer script for linux for folder with space --- electron-app/package.json | 2 +- installer.py | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/electron-app/package.json b/electron-app/package.json index fd8c8c5..bf24f60 100644 --- a/electron-app/package.json +++ b/electron-app/package.json @@ -1,6 +1,6 @@ { "name": "maestro", - "version": "1.2.0", + "version": "1.3.0", "description": "An Electron application with React and TypeScript", "main": "./out/main/index.js", "author": "example.com", diff --git a/installer.py b/installer.py index d90bd49..dd96243 100644 --- a/installer.py +++ b/installer.py @@ -67,6 +67,9 @@ def extract_tar_gz(tar_gz_path, extract_to): def extract_zip(zip_path, extract_to): with ZipFile(zip_path, 'r') as zip_ref: zip_ref.extractall(extract_to) + +def path_spacer(path): + return f"\"{path}\"" def main(): print("Installer Running") @@ -151,7 +154,7 @@ def main(): if platform.system() == "Windows": python_check_command = "py -3.10 --version" else: - python_check_command = f"{python_bin} --version" + python_check_command = f"{path_spacer(python_bin)} --version" try: @@ -178,10 +181,15 @@ def main(): python_tar = download_file("https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tgz", python_dir) extract_tar_gz(python_tar, python_dir) python_src_dir = python_dir / "Python-3.10.14" + os.chdir(python_src_dir) - run_command(f"./configure --prefix={python_dir}") + + run_command(f'./configure --prefix=/tmp/Python-3.10.14') run_command(f"make -j{os.cpu_count()}") run_command("make install") + + run_command(f"cp -R /tmp/Python-3.10.14/* {path_spacer(python_dir)}") + run_command("rm -rf /tmp/Python-3.10.14") print("Installing PyTorch") run_command(f"\"{python_bin}\" -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121") @@ -226,8 +234,8 @@ def main(): run_command(f"npm run dev" ) else: if(platform.system() != "Windows"): - run_command(f"chmod +x {electron_app_dir}/{app_name}" ) - run_command(f"{electron_app_dir}/{app_name}") + run_command(f"chmod +x \"{electron_app_dir}/{app_name}\"" ) + run_command(f"\"{electron_app_dir}/{app_name}\"") if __name__ == "__main__": main()