%%time
links = oracle.get_links(cluster_name_for_GRN_unit = "scNym", alpha = 10,
verbose_level = 10, test_mode = False)
HBox(children=(HTML(value=''), FloatProgress(value=0.0, max=30.0), HTML(value='')))
inferring GRN for B_cells...
HBox(children=(HTML(value=''), FloatProgress(value=0.0, max=3689.0), HTML(value='')))
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<timed exec> in <module>
~/miniconda3/lib/python3.8/site-packages/celloracle/trajectory/oracle_core.py in get_links(self, cluster_name_for_GRN_unit, alpha, bagging_number, verbose_level, test_mode)
902
903 """
--> 904 links = get_links(oracle_object=self,
905 cluster_name_for_GRN_unit=cluster_name_for_GRN_unit,
906 alpha=alpha, bagging_number=bagging_number,
~/miniconda3/lib/python3.8/site-packages/celloracle/network_analysis/network_construction.py in get_links(oracle_object, cluster_name_for_GRN_unit, alpha, bagging_number, verbose_level, test_mode)
65
66 # calculate GRN for each cluster
---> 67 linkLists = _fit_GRN_for_network_analysis(oracle_object, cluster_name_for_GRN_unit=cluster_name_for_GRN_unit,
68 alpha=alpha, bagging_number=bagging_number, verbose_level=verbose_level, test_mode=test_mode)
69
~/miniconda3/lib/python3.8/site-packages/celloracle/network_analysis/network_construction.py in _fit_GRN_for_network_analysis(oracle_object, cluster_name_for_GRN_unit, alpha, bagging_number, verbose_level, test_mode)
121 TFinfo_dic=oracle_object.TFdict,
122 verbose=False)
--> 123 tn_.fit_All_genes(bagging_number=bagging_number,
124 alpha=alpha, verbose=verbose)
125
~/miniconda3/lib/python3.8/site-packages/celloracle/network/net_core.py in fit_All_genes(self, bagging_number, scaling, model_method, command_line_mode, log, alpha, verbose)
309 verbose (bool): Whether or not to show a progress bar.
310 """
--> 311 self.fit_genes(target_genes=self.all_genes,
312 bagging_number=bagging_number,
313 scaling=scaling,
~/miniconda3/lib/python3.8/site-packages/celloracle/network/net_core.py in fit_genes(self, target_genes, bagging_number, scaling, model_method, save_coefs, command_line_mode, log, alpha, verbose)
416
417 for target_gene in loop:
--> 418 coefs = _get_bagging_ridge_coefs(target_gene=target_gene,
419 gem=self.gem,
420 gem_scaled=self.gem_standerdized,
~/miniconda3/lib/python3.8/site-packages/celloracle/network/regression_models.py in get_bagging_ridge_coefs(target_gene, gem, gem_scaled, TFdict, cellstate, bagging_number, scaling, n_jobs, alpha, solver)
128
129 # get results
--> 130 coefs = _get_coef_matrix(model, reg_all)
131
132 # remove cellstate data from coefs
~/miniconda3/lib/python3.8/site-packages/celloracle/network/regression_models.py in _get_coef_matrix(ensemble_model, feature_names)
143 n_estimater = len(ensemble_model.estimators_features_)
144 coef_list = \
--> 145 [pd.Series(ensemble_model.estimators_[i].coef_,
146 index=feature_names[ensemble_model.estimators_features_[i]])\
147 for i in range(n_estimater)]
~/miniconda3/lib/python3.8/site-packages/celloracle/network/regression_models.py in <listcomp>(.0)
143 n_estimater = len(ensemble_model.estimators_features_)
144 coef_list = \
--> 145 [pd.Series(ensemble_model.estimators_[i].coef_,
146 index=feature_names[ensemble_model.estimators_features_[i]])\
147 for i in range(n_estimater)]
~/miniconda3/lib/python3.8/site-packages/pandas/core/series.py in __init__(self, data, index, dtype, name, copy, fastpath)
311 try:
312 if len(index) != len(data):
--> 313 raise ValueError(
314 f"Length of passed values is {len(data)}, "
315 f"index implies {len(index)}."
ValueError: Length of passed values is 2, index implies 70.
WARNING: If you miss a compact list, please try `print_header`!
-----
anndata 0.7.5
scanpy 1.6.0
sinfo 0.3.1
-----
OpenSSL 19.1.0
PIL 7.2.0
anndata 0.7.5
appdirs 1.4.4
backcall 0.2.0
boltons NA
bucketcache 0.12.1
cairo 1.19.1
celloracle 0.5.2
certifi 2020.06.20
cffi 1.14.0
chardet 3.0.4
colorama 0.4.3
concurrent NA
cryptography 2.9.2
cycler 0.10.0
cython_runtime NA
dateutil 2.8.1
decorator 4.4.2
diskcache 5.0.3
encodings NA
fbpca NA
genericpath NA
genomepy 0.8.4
geosketch NA
get_version 2.1
gimmemotifs 0.14.4
goatools v1.0.6
h5py 2.10.0
idna 2.7
igraph 0.7.1
ipykernel 5.3.4
ipython_genutils 0.2.0
ipyvue 1.4.0
ipyvuetify 1.5.1
ipywidgets 7.5.1
jedi 0.17.2
joblib 0.17.0
kiwisolver 1.2.0
legacy_api_wrap 1.2
llvmlite 0.34.0
logbook 1.5.3
logomaker NA
loompy 3.0.6
louvain 0.6.1
matplotlib 3.2.0
mkl 2.3.0
mpl_toolkits NA
natsort 7.0.1
networkx 2.5
norns NA
ntpath NA
numba 0.51.2
numexpr 2.7.1
numpy 1.19.1
numpy_groupies 0.9.13
opcode NA
packaging 20.4
pandas 1.1.3
parso 0.7.0
pexpect 4.8.0
pickleshare 0.7.5
pkg_resources NA
posixpath NA
prompt_toolkit 3.0.7
psutil 5.7.2
ptyprocess 0.6.0
pyarrow 1.0.1
pybedtools 0.8.1
pycparser 2.20
pydoc_data NA
pyexpat NA
pyfaidx 0.5.9.1
pygments 2.7.1
pyparsing 2.4.7
pysam 0.16.0.1
pytz 2020.1
represent 1.6.0
requests 2.19.1
scanpy 1.6.0
scipy 1.5.2
seaborn 0.10.1
setuptools_scm NA
sinfo 0.3.1
six 1.14.0
sklearn 0.23.2
socks 1.7.1
sphinxcontrib NA
sre_compile NA
sre_constants NA
sre_parse NA
statsmodels 0.12.0
storemagic NA
tables 3.6.1
threadpoolctl 2.1.0
tornado 6.0.4
tqdm 4.50.2
traitlets 4.3.3
typing_extensions NA
urllib3 1.23
velocyto 0.17.17
wcwidth 0.2.5
xdg NA
xxhash 2.0.0
yaml 5.1.2
zmq 19.0.2
-----
IPython 7.18.1
jupyter_client 6.1.6
jupyter_core 4.6.3
jupyterlab 2.2.8
notebook 6.1.1
-----
Python 3.8.3 (default, May 19 2020, 18:47:26) [GCC 7.3.0]
Linux-4.15.0-123-generic-x86_64-with-glibc2.10
60 logical CPU cores, x86_64
-----
Session information updated at 2020-11-23 17:03