INNER CODE UNIT · Python

upload

pybel/pybel · src/pybel/cli.py:312

def upload(graph: BELGraph, host: str, user: str, password: str):
    """Upload a graph to BEL Commons."""
    resp = to_bel_commons(graph, host=host, user=user, password=password)
    resp.raise_for_status()
    click.echo(json.dumps(resp.json()))


@main.command()
@graph_pickle_argument
@click.option("--tsv", type=click.File("w"), help="Path to output a TSV file.")
@click.option("--edgelist", type=click.File("w"), help="Path to output a edgelist file.")
@click.option("--sif", type=click.File("w"), help="Path to output an SIF file.")
@click.option(
    "--gsea",
    type=click.File("w"),
    help="Path to output a GRP file for gene set enrichment analysis.",
)
@click.option("--graphml", help="Path to output a GraphML file. Use .graphml for Cytoscape.")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…