Mercurial > repos > bgruening > alevin
view vpolo_convert.py @ 16:b0fe3e482cb7 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 6954ddebecfe9f0975f2c7e29193e4c99c550514
author | bgruening |
---|---|
date | Mon, 28 Oct 2024 17:50:35 +0000 |
parents | e4c01dcece8b |
children |
line wrap: on
line source
#!/usr/bin/env python import argparse import os from vpolo.alevin import parser as par parser = argparse.ArgumentParser() parser.add_argument("--mtx", "-m", action="store_true", help="--dumpMtx flag set") parser.add_argument("--umi", "-u", action="store_true", help="--dumpUmiGraph flag set") args = parser.parse_args() if args.mtx: alevin_df = par.read_quants_bin("output") with open("quants_mat.tsv", "w") as f: f.write(alevin_df.to_csv(sep="\t")) if args.umi: os.mkdir("umiout") par.read_umi_graph("output", "umiout")