Mercurial > repos > bgruening > salmonquantmerge
view vpolo_convert.py @ 3:f6e3a10a88e5 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 30fe16f7d786e4b0c43b8333853fc56c59f6c664"
author | bgruening |
---|---|
date | Sat, 25 Apr 2020 11:52:56 -0400 |
parents | 178ebdfe5a7e |
children | cfb0849582e1 |
line wrap: on
line source
#!/usr/bin/env python from vpolo.alevin import parser as par import argparse import os 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")