BlanchetteLab / HIFI

Hi-C Interaction Frequency Inference (HIFI): High-resolution estimation of DNA-DNA interaction frequency from Hi-C data
23 stars 2 forks source link

src/parseHIFIoutput.py #8

Open xiaobei1999 opened 4 years ago

xiaobei1999 commented 4 years ago

Hello, when I tried to run the example code, I got an error with src/parseHIFIoutput.py

HIFI]$ python src/parseHIFIoutput.py examples_output/Rao_GM12878.hg19.chr9_example.chr9_chr9.RF.HIFI_MRF.tsv examples/hg19.HindIII_fragments.bed 125000000 129000000 examples_output
  File "src/parseHIFIoutput.py", line 42
    print "Error - sparse matrix format not recognized"
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error - sparse matrix format not recognized")?

Could you please tell the reason? Best regards!

zhyanlin commented 4 years ago

Hello, I believe your python version is 3.x, however, parseHIFIoutput.py was written for Python v2.7. You could switch to python2.7 with commands like python2 or python2.7 etc. depending on your OS environment.

xiaobei1999 commented 4 years ago

Hello, I believe your python version is 3.x, however, parseHIFIoutput.py was written for Python v2.7. You could switch to python2.7 with commands like python2 or python2.7 etc. depending on your OS environment.

It did work! Thank you very much.