ctargon / TSPG

Transcriptome State Perturbation Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHASE 4: VISUALIZE SAMPLE PERTURBATIONS: Errors

rpauly opened this issue · comments

Hi,
I am having some trouble running the phase 4 of the TSPG analysis (Phase 1-3 runs fine).

/home/rpauly/.conda/envs/tspg/lib/python3.7/site-packages/sklearn/manifold/_t_sne.py:783: FutureWarning: The default initialization in TSNE will change from 'random' to 'pca' in 1.2.
  FutureWarning,
/home/rpauly/.conda/envs/tspg/lib/python3.7/site-packages/sklearn/manifold/_t_sne.py:793: FutureWarning: The default learning rate in TSNE will change from 200.0 to 'auto' in 1.2.
  FutureWarning,
loading train/perturb data...
loaded train data (10812 genes, 597 samples)
loaded perturb data (10812 genes, 1193 samples)
target class is: CAU
loading gene sets...
10812 / 10812 genes from gene sets are in the input dataset
loaded 1 gene sets
creating tsne plot...
creating heatmaps...
  HG00096
Traceback (most recent call last):
  File "/home/rpauly/.conda/envs/tspg/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3361, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas/_libs/index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/zfs/lasernode/feltuslab/rpauly/Ancestry_Inference/Tools/TSPG/bin/visualize.py", line 254, in <module>
    'X': x_perturb[i],
  File "/home/rpauly/.conda/envs/tspg/lib/python3.7/site-packages/pandas/core/frame.py", line 3458, in __getitem__
    indexer = self.columns.get_loc(key)
  File "/home/rpauly/.conda/envs/tspg/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3363, in get_loc
    raise KeyError(key) from err
KeyError: 0