Skip to content

Instantly share code, notes, and snippets.

View mxposed's full-sized avatar

Nick Markov mxposed

View GitHub Profile
$ cat velocyto-sc14.sh
#!/bin/bash
#MSUB -A b1042
#MSUB -q genomics
#MSUB -l walltime=10:00:00
#MSUB -N velocyto-sc14
#MSUB -l nodes=1:ppn=4
#MSUB -o velocyto-sc14.out.log
#MSUB -e velocyto-sc14.err.log
speed: init 3.8186559677124023
speed: parsed 3.821230888366699
/anaconda3/bin/ipython:6: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).complete instead.
dbg: Start: complete
dbg: infer_node <Name: plt@1,0>@(1, 0) in MixedModuleContext(<ModuleValue: __main__@1-1 is_stub=False>)
dbg: context.goto <Name: plt@1,0> in (MixedModuleContext(<ModuleValue: __main__@1-1 is_stub=False>)): [MixedName(<CompiledName: (<CompiledValueName: string_name=NamespaceObject>).plt>)]
dbg: context.names_to_types: [MixedName(<CompiledName: (<CompiledValueName: string_name=NamespaceObject>).plt>)] -> S{<MixedObject: <module 'matplotlib.pyplot' from '/anaconda3/lib/p..; <ModuleValue: matplotlib.pyplot@4-3270 is_stub=False>>}
dbg: infer_trailer: PythonNode(trailer, [<Operator: .>, <Name: figure@1,4>]) in S{<MixedObject: <module 'matplotlib.pyplot' from '/anaconda3/lib/p..; <ModuleValue: matplotlib.pyplot@4-3270 is_stub=False>>}
dbg: context.goto <Name: figure@1,4> in (<MixedObject: <module 'matplotlib.pyplo
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="main.js"></script>
</head>
<body>
fig, ax = plt.subplots(figsize=(8, 8))
sc.pl.umap(ds, color="cell_type", legend_loc="on data", size=10, ax=ax, show=False)
shrink_by = 0.1
xlim = ax.get_xlim()
ylim = ax.get_ylim()
xbound = xlim[0] + (xlim[1] - xlim[0]) * shrink_by
ybound = ylim[0] + (ylim[1] - ylim[0]) * shrink_by
b = ax.spines["bottom"]