nf_core.pipelines.create

A Textual app to create a pipeline.

classnf_core.pipelines.create.PipelineCreateApp(driver_class: Type[Driver] | None = None, css_path: str | PurePath | List[str | PurePath] | None = None, watch_css: bool = False, ansi_color: bool = False)

Bases: App[CreateConfig]

A Textual app to manage stopwatches.

BINDINGS: ClassVar[list[BindingType]] = [(‘d’, ‘toggle_dark’, ‘Toggle dark mode’), (‘q’, ‘quit’, ‘Quit’), (‘a’, ‘toggle_all’, ‘Toggle all’)]

The default key bindings.

CSS_PATH: ClassVar[CSSPathType | None] = ‘create.tcss’

File paths to load CSS from.

LOGGING_STATE= None

LOG_HANDLER= <RichHandler (INFO)>

NFCORE_PIPELINE= True

SCREENS: ClassVar[dict[str, Callable[[], Screen[Any]]]] = {‘basic_details’: <class ‘nf_core.pipelines.create.basicdetails.BasicDetails’>, ‘choose_type’: <class ‘nf_core.pipelines.create.pipelinetype.ChoosePipelineType’>, ‘final_details’: <class ‘nf_core.pipelines.create.finaldetails.FinalDetails’>, ‘github_exit’: <class ‘nf_core.pipelines.create.githubexit.GithubExit’>, ‘github_repo’: <class ‘nf_core.pipelines.create.githubrepo.GithubRepo’>, ‘github_repo_question’: <class ‘nf_core.pipelines.create.githubrepoquestion.GithubRepoQuestion’>, ‘logging’: <class ‘nf_core.pipelines.create.loggingscreen.LoggingScreen’>, ‘type_custom’: <class ‘nf_core.pipelines.create.custompipeline.CustomPipeline’>, ‘type_nfcore’: <class ‘nf_core.pipelines.create.nfcorepipeline.NfcorePipeline’>, ‘welcome’: <class ‘nf_core.pipelines.create.welcome.WelcomeScreen’>}

Screens associated with the app for the lifetime of the app.

SUB_TITLE: str | None = ‘Create a new pipeline with the nf-core pipeline template’

A class variable to set the default sub-title for the application.

To update the sub-title while the app is running, you can set the [sub_title][textual.app.App.sub_title] attribute. See also [the Screen.SUB_TITLE attribute][textual.screen.Screen.SUB_TITLE].

TEMPLATE_CONFIG= CreateConfig(org=None, name=None, description=None, author=None, version=None, force=True, outdir=None, skip_features=None, is_nfcore=None)

TITLE: str | None = ‘nf-core pipelines create’

A class variable to set the default title for the application.

To update the title while the app is running, you can set the [title][textual.app.App.title] attribute. See also [the Screen.TITLE attribute][textual.screen.Screen.TITLE].

_computes: ClassVar[frozenset[str]] = frozenset({})

_css_type_name: str = ‘PipelineCreateApp’

_css_type_names: ClassVar[frozenset[str]] = frozenset({‘App’, ‘DOMNode’, ‘PipelineCreateApp’})

_decorated_handlers: dict[type[Message], list[tuple[Callable, str | None]]] = {}

_inherit_bindings: ClassVar[bool] = True

_inherit_component_classes: ClassVar[bool] = True

_inherit_css: ClassVar[bool] = True

_merged_bindings: ClassVar[BindingsMap | None] = BindingsMap({‘ctrl+q’: [Binding(key=‘ctrl+q’, action=‘quit’, description=‘Quit’, show=False, key_display=None, priority=True, tooltip=‘Quit the app and return to the command prompt.’, id=None, system=False)], ‘ctrl+c’: [Binding(key=‘ctrl+c’, action=‘help_quit’, description=”, show=False, key_display=None, priority=False, tooltip=”, id=None, system=True)], ‘d’: [Binding(key=‘d’, action=‘toggle_dark’, description=‘Toggle dark mode’, show=True, key_display=None, priority=False, tooltip=”, id=None, system=False)], ‘q’: [Binding(key=‘q’, action=‘quit’, description=‘Quit’, show=True, key_display=None, priority=False, tooltip=”, id=None, system=False)], ‘a’: [Binding(key=‘a’, action=‘toggle_all’, description=‘Toggle all’, show=True, key_display=None, priority=False, tooltip=”, id=None, system=False)]})

_reactives: ClassVar[dict[str, Reactive]] = {‘ansi_color’: Reactive(False, name=‘ansi_color’), ‘ansi_theme_dark’: Reactive(<rich.terminal_theme.TerminalTheme object>, name=‘ansi_theme_dark’), ‘ansi_theme_light’: Reactive(<rich.terminal_theme.TerminalTheme object>, name=‘ansi_theme_light’), ‘app_focus’: Reactive(True, compute=False, name=‘app_focus’), ‘sub_title’: Reactive(”, compute=False, name=‘sub_title’), ‘theme’: Reactive(‘textual-dark’, name=‘theme’), ‘title’: Reactive(”, compute=False, name=‘title’)}

action_toggle_all() → None

An action to toggle all Switches.

action_toggle_dark() → None

An action to toggle dark mode.

on_button_pressed(event: Pressed) → None

Handle all button pressed events.

on_mount() → None