Skip to content

Commit 7a47da9

Browse files
authored
Merge pull request #143 from Intron7/update-_pre
Updated pre to run faster
2 parents 2192575 + 4ebdc64 commit 7a47da9

13 files changed

+23
-20
lines changed

decoupler/method_aucell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from scipy.sparse import csr_matrix
99

1010
from numpy.random import default_rng
11-
from tqdm import tqdm
11+
from tqdm.auto import tqdm
1212

1313
from .pre import extract, rename_net, filt_min_n, return_data
1414

decoupler/method_gsea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .pre import extract, rename_net, filt_min_n, return_data
1313
from .utils import p_adjust_fdr
1414

15-
from tqdm import tqdm
15+
from tqdm.auto import tqdm
1616

1717
import numba as nb
1818

decoupler/method_gsva.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .pre import extract, rename_net, filt_min_n, return_data
1414
from .method_gsea import std
1515

16-
from tqdm import tqdm
16+
from tqdm.auto import tqdm
1717

1818
import numba as nb
1919

decoupler/method_mdt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from .pre import extract, match, rename_net, get_net_mat, filt_min_n, return_data
1111

12-
from tqdm import tqdm
12+
from tqdm.auto import tqdm
1313

1414

1515
def check_if_skranger():

decoupler/method_mlm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from scipy import stats
1313

14-
from tqdm import tqdm
14+
from tqdm.auto import tqdm
1515

1616
import numba as nb
1717

decoupler/method_ora.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .pre import extract, rename_net, filt_min_n, return_data
1616
from .utils import p_adjust_fdr
1717

18-
from tqdm import tqdm
18+
from tqdm.auto import tqdm
1919

2020
import numba as nb
2121

decoupler/method_udt.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
from .pre import extract, match, rename_net, get_net_mat, filt_min_n, return_data
1111

12-
from tqdm import tqdm
13-
12+
from tqdm.auto import tqdm
1413

1514
def check_if_sklearn():
1615
try:

decoupler/method_ulm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from .pre import extract, match, rename_net, get_net_mat, filt_min_n, return_data
1313

14-
from tqdm import tqdm
14+
from tqdm.auto import tqdm
1515

1616

1717
def mat_cov(A, b):

decoupler/method_viper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
from .pre import extract, match, rename_net, get_net_mat, filt_min_n, return_data
1414

15-
from tqdm import tqdm
15+
from tqdm.auto import tqdm
16+
1617

1718
import numba as nb
1819

decoupler/method_wmean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .pre import extract, match, rename_net, get_net_mat, filt_min_n, return_data
1111
from .method_gsea import std
1212

13-
from tqdm import tqdm
13+
from tqdm.auto import tqdm
1414

1515
import numba as nb
1616

0 commit comments

Comments
 (0)