GithubHelp home page GithubHelp logo

GUI implementation about dajin2 HOT 3 OPEN

akikuno avatar akikuno commented on August 27, 2024
GUI implementation

from dajin2.

Comments (3)

akikuno avatar akikuno commented on August 27, 2024

Currently, Streamlit and Flask are difficult to obtain the directory path, which is the input for DAJIN2 (v0.4.6).

While it is possible to obtain the directory path using tkinter.filedialog.askdirectory, the appearance is so poor that it is not worth using.

In Dorado, the output is a BAM file, so it is possible to handle it with Flask as it involves obtaining a path rather than a directory.
Although Guppy's output is a directory, it would be better to align with Dorado's format for consistency. #37

from dajin2.

akikuno avatar akikuno commented on August 27, 2024

Flet looks good.

https://flet.dev/

It can select a directry.

import flet as ft
import os


def main(page: ft.Page):
    page.title = "Folder Picker Example"

    def pick_folder(e):
        file_picker.get_directory_path()

    def folder_picked(e: ft.FilePickerResultEvent):
        if e.path:
            selected_folder.value = os.path.abspath(e.path)
            page.update()

    file_picker = ft.FilePicker(on_result=folder_picked)
    page.overlay.append(file_picker)

    pick_folder_button = ft.ElevatedButton("Pick a Folder", on_click=pick_folder)
    selected_folder = ft.Text("No folder selected")

    page.add(pick_folder_button, selected_folder)


ft.app(target=main)

from dajin2.

akikuno avatar akikuno commented on August 27, 2024

In the case of Dorado, it is simpler to specify the file directly, and it is easier to create a GUI.

Given that the default basecaller in MinKNOW has become Dorado, it might be more convenient for DAJIN2 to adopt a format where the path to BAM or FASTA files output by Dorado is specified directly as default.

Additionally, by including the -d/--directory option, users could select the directory path, which could enhance usability.

from dajin2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.