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

DM3 Implement Method Execution Functionality #777

Open
stevenweaver opened this issue Feb 5, 2025 · 0 comments
Open

DM3 Implement Method Execution Functionality #777

stevenweaver opened this issue Feb 5, 2025 · 0 comments
Assignees

Comments

@stevenweaver
Copy link
Member

User Story:
As a user, I want to be able to select a specific HyPhy method from a list and run the analysis on my uploaded data file. After the analysis is complete, I want to see the output and be able to view the JSON results.

Acceptance Criteria:

  • The MethodSelector component should display a list of available HyPhy methods.
  • Each method in the list should have a "Run" button.
  • When the user clicks the "Run" button for a specific method, the corresponding method file and its dependencies should be mounted.
  • The selected method should be executed using the mounted input files.
  • The output of the method execution should be displayed to the user.
  • The JSON results should be downloaded, parsed, and stored in the jsonData variable.
  • The user should be able to view the JSON results.

Tasks:

  1. Add an event handler to the "Run" button in the MethodSelector component to pass the selected method as a parameter.
  2. Implement the runMethod function in the +page.svelte file to handle the execution of the selected method.
  3. Create the getMethodFile function to retrieve the corresponding method file based on the selected method.
  4. Create the getMethodDependencies function to retrieve the dependencies for the selected method.
  5. Update the MethodSelector component in the +page.svelte file to pass the runMethod function as a prop.
  6. Test the functionality by selecting different methods and verifying that the analysis runs successfully and the results are displayed.

Dependencies:

  • The method files and their dependencies should be available in the specified paths.

Additional Notes:

  • The placeholders for the method file paths and dependencies need to be replaced with the actual paths.
  • Error handling should be added to handle cases where the selected method is not supported or if there are any issues during the execution.
  • Consider adding loading states or progress indicators while the analysis is running.
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

No branches or pull requests

1 participant