-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaliases.py
More file actions
35 lines (29 loc) · 713 Bytes
/
aliases.py
File metadata and controls
35 lines (29 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import json
import logging
import os
import pickle
from collections import Counter, defaultdict
from functools import partial
from itertools import zip_longest
from pathlib import Path
import anndata
import gseapy as gp
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import peasy as ps
import seaborn as sns
from tqdm.auto import tqdm
mpl.rcParams['pdf.fonttype'] = 42
logger = logging.getLogger(__name__)
npi = np.intersect1d
npc = np.concatenate
npu = np.unique
npurc = partial(np.unique, return_counts=True)
npd = np.setdiff1d
npin = np.in1d
r5 = anndata.read_h5ad
colony = ps.Colony()
artist = colony.new_artist()
martist = colony.new_artist(multi=True)