Mercurial > repos > bgruening > salmonquantmerge
view vpolo_convert.py @ 9:dba18bf7528f draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 26cff0d523671ac1e56ba7ef4965861b387727e8
author | bgruening |
---|---|
date | Fri, 23 Jun 2023 17:02:59 +0000 |
parents | 88c07fc4024c |
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")