lujunyan1118 / SimpleBool

A python package for simulation and analysis of dynamic Boolean network models
GNU General Public License v3.0
10 stars 5 forks source link

Executing Boolmutation python file #1

Closed priyambial123 closed 7 years ago

priyambial123 commented 7 years ago

Hi, I have been trying Boolean modeling of protein interactions using SimpleBool. I imported the mutation.in txt file in canopy editor mutation_in.txt

and tried executing Boolmutation.py script. I got the following error :

%run "/home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master/BoolMutation.py"

IOError Traceback (most recent call last) /home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master/BoolMutation.py in () 383 para=ParaParser(sys.argv[1]) 384 except: --> 385 para=ParaParser('mutation.in') 386 simu_mutation(para)

/home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master/BoolMutation.py in ParaParser(ParaFile) 254 } # define parameters 255 --> 256 for each_line in open(ParaFile).readlines(): 257 para_name = each_line.split('=')[0].strip() 258 para_value = each_line.split('=')[1].strip()

IOError: [Errno 2] No such file or directory: 'mutation.in'

Does this mean that the mutation.in.txt file has not been imported or the file should be a python file or I have not specified the directory properly?. I am new to Python and I am learning it. Kindly help me to sort this issue, it would be of great help. I have attached the files that I have used.Pls find it

Thank you Regards Priya

lujunyan1118 commented 7 years ago

Hi Priya,

Thanks for your message. According to the error message, I think the input file name is wrong. It should be "mutation.in", not "mutation_in.txt". Alternatively, you can run the script in command line. Then you can use any name you want for the input file. like " python BoolMutation.py mutation_in.txt". Hope it helps.

Regards,

Junyan

priyambial123 commented 7 years ago

Thank you Junyan. Now the script is working Regards Priya