Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI for multistep searches #494

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

GUI for multistep searches #494

wants to merge 8 commits into from

Conversation

GeorgWa
Copy link
Collaborator

@GeorgWa GeorgWa commented Feb 27, 2025

This PR introduces a GUI component for the multistep search

  • allows to enable transfer learning and MBR step
  • hides advanced parameters
  • unifies input and output tab
Screenshot 2025-02-27 at 14 57 52

@GeorgWa GeorgWa requested review from mo-sameh and mschwoer February 27, 2025 13:59
Copy link
Collaborator

@mschwoer mschwoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (with comments ;-))

const location = useLocation();

// Add function to check if a path is active
const isPathActive = (path) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isRoutePathActive?

const method = useMethod();
const theme = useTheme();

const hasLibrary = method.library.path !== "";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should these members of method maybe be renamed (later) to what they are called in config now?
library_path, raw_paths, fasta_paths?


let message = data.description;
if (hasRawFiles && !hasLibrary && !hasFasta) {
message = "Please select a spectral library and FASTA file to enable transfer learning.";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the if I would have assumed

Please select a spectral library and/or FASTA file.```

{tab === 'files' && <Files />}
{tab === 'config' && <Config />}
</Box>
</Box>
)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got this warning when starting up?
Uploading image.png…

{tab === 'files' && <Files />}
{tab === 'config' && <Config />}
</Box>
</Box>
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you really wana mess with the folks from The Dark Side ..

image

@@ -78,7 +78,7 @@ const MultiSelect = ({
<Grid item xs={3} position={'relative'}>
<Button
variant="outlined"
sx={{float: 'right', ml:1, minWidth: "115px"}}
sx={{float: 'right', ml:1, minWidth: "130px"}}
disabled={!active}
onClick={handleSelect}>
Select Files
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be "Select FASTA file(s).." ? (Likewise: "Output Folder", "Library File")

just a little less mental mapping

)
}

const Method = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a little inconsistency: fasta file is singular with no number (although I selected two)
image


const Config = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a little weird:
when expanding "Initial search settings" ..
image
.. "Search output" moves to the left? would have thought that order is preserved..?
image

Copy link
Collaborator

@mo-sameh mo-sameh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants