-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtool_widgets.py
61 lines (49 loc) · 1.68 KB
/
tool_widgets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"""
These are the individual widgets that coordinate the input for each tool
"""
from textual.app import ComposeResult
from textual.containers import Horizontal
from textual.widget import Widget
from textual.widgets import Button, Input
# Tools available in the toolbox
TOOLS = {
"Base Content Filtering": "Description Here",
"Degenerate Bases": "Description Here",
"Diff": "Description Here",
"Downsample": "Description Here",
"FastQC": "Description Here",
"Pairwise Alignment": "Description Here",
"Read Pair Merging": "Description Here",
"Regex Filtering": "Description Here",
"Search": "Description Here",
"Synchronize": "Description Here",
"Unique": "Description Here",
"Window Shopper": "Description Here",
}
class FastQC(Widget):
"""
FastQC Tool
This widget is responsible for collecting the input for the FastQC tool
"""
def compose(self) -> ComposeResult:
yield Input(placeholder="Enter the path to the FastQ file")
yield Button("Run")
def on_button_pressed(self, event: Button.Pressed) -> None:
"""
Handle the button being clicked
"""
self.log("Button clicked")
class Downsample(Widget):
"""
Downsample Tool
This widget is responsible for collecting the input for the Downsample tool
"""
def compose(self) -> ComposeResult:
yield Input(placeholder="Enter the path to the FastQ file")
yield Input(placeholder="Enter the path to the output file")
yield Button("Run")
def on_button_pressed(self, event: Button.Pressed) -> None:
"""
Handle the button being clicked
"""
self.log("Button clicked")