Murali-group / Beeline

BEELINE: evaluation of algorithms for gene regulatory network inference
GNU General Public License v3.0
171 stars 53 forks source link

Running without trueEdges (refNetwork.csv) #53

Closed doncarlos999 closed 3 years ago

doncarlos999 commented 3 years ago

Hi,

Thanks for this great tool.

In your documentation is says that it is possible to run base pipeline without a refNetwork.csv file. However when I try to run: python BLRunner.py --config config-files/config_d0.yaml

I get the following error:

Traceback (most recent call last):
  File "BLRunner.py", line 77, in <module>
    main()
  File "BLRunner.py", line 59, in main
    evaluation = br.ConfigParser.parse(conf)
  File "/scratch/projects/GRN/Beeline/BLRun/__init__.py", line 137, in parse
    config_map['output_settings']))
  File "/scratch/projects/GRN/Beeline/BLRun/__init__.py", line 67, in __init__
    self.runners: Dict[int, Runner] = self.__create_runners()
  File "/scratch/projects/GRN/Beeline/BLRun/__init__.py", line 88, in __create_runners
    data['trueEdges'] = dataset['trueEdges']
KeyError: 'trueEdges'

Any help with this would be greatly appreciated.

Thanks

adyprat commented 3 years ago

Hi @doncarlos999 , Apologies for the confusion. You can indeed infer GRNs without needing a refNetwork.csv file. However, it looks like BLRunner object is initalized with it anyway. While I work on a fix, there are a couple of options:

1) You can create an empty csv file and include it in the config file under "trueEdges". 2) Another option is to comment out line #88 here (which is what I was going to do to fix this issue).

Let me know if that works.

Thanks,

Aditya

doncarlos999 commented 3 years ago

Great, option 1 fixed the problem for me.

Thanks for the rapid response!