INNER CODE UNIT · Python

_tag

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

def _tag(df: pl.DataFrame, sample_id: str) -> pl.DataFrame:
    return df.with_columns(pl.lit(sample_id).alias("sample_id")).select(
        ["sample_id", *[c for c in df.columns if c != "sample_id"]]
    )


# ---------------------------------------------------------------------------- model commands
@app.command()
def models() -> None:
    """List the precomputed recombination models shipped with the package."""
    from vdjtools.model import list_bundled

    for src, loci in list_bundled().items():
        typer.echo(f"{src:8s} {' '.join(loci) if loci else '(none)'}")


@app.command()
def pgen(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…