INNER CODE UNIT · Python

_info

antigenomics/vdjtools · python/vdjtools/cli/__init__.py:70

def _info(msg: str) -> None:
    typer.secho(msg, fg=typer.colors.GREEN, err=True)


def _load_model(model: Optional[str], source: str, model_path: Optional[Path]):
    from vdjtools.model import load_bundled, load_model

    if model_path is not None:
        return load_model(model_path)
    if model is None:
        _err("give a model: --model <LOCUS> (built-in) or --model-path <DIR>")
    try:
        return load_bundled(model, source=source)
    except (ValueError, FileNotFoundError) as e:  # unknown source / locus not bundled
        _err(str(e))


def _write(df: pl.DataFrame, out: Optional[Path]) -> None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…