WGLab / CancerVar

Clinical interpretation of somatic mutations in cancer
42 stars 13 forks source link

error using model ensemble #15

Open evelingonzalezfeliu opened 2 years ago

evelingonzalezfeliu commented 2 years ago

Hi !

Excellent tool!! Congratulations.

I have a question, when using the ensemble model in feature_preprocess.py I get the following error. When changing the -m parameter to evs I don't get any errors.

python3.6 /home/administrador/Documentos/Programas/CancerVar/OPAI/scripts/feature_preprocess.py -a 10021246-1_DNA.hg19_multianno.txt.grl_p -c 10021246-1_DNA.hg19_multianno.txt.cancervar -m ensemble -n 5 -d /home/administrador/Documentos/Programas/CancerVar/OPAI/saves/nonmissing_db.npy -o 10021246-1_DNA.hg19_multianno.txt.cancervar.ensemble.csv

Traceback (most recent call last):
  File "/home/administrador/Documentos/Programas/CancerVar/OPAI/scripts/feature_preprocess.py", line 204, in <module>
    main()
  File "/home/administrador/Documentos/Programas/CancerVar/OPAI/scripts/feature_preprocess.py", line 54, in main
    evs_feature, fun_feature = data_loader(args, fun_name, evs_name, gaussian_params)
  File "/home/administrador/Documentos/Programas/CancerVar/OPAI/scripts/feature_preprocess.py", line 116, in data_loader
    if not all( cancervar_dat['index'] == annovar_dat['index'] ):
  File "/home/administrador/miniconda3/envs/opai/lib/python3.6/site-packages/pandas/core/ops/common.py", line 65, in new_method
    return method(self, other)
  File "/home/administrador/miniconda3/envs/opai/lib/python3.6/site-packages/pandas/core/ops/__init__.py", line 365, in wrapper
    raise ValueError("Can only compare identically-labeled Series objects")
ValueError: Can only compare identically-labeled Series objects