Error when running Python code


#1



Replace this line with your code.


#2



    
    

  
    
      Hi,

What does this error mean "IOError: [Errno 2] No such file or directory: '-f' "

There is no file -f in my script. What does -f here specify?

Thank you

Priya

  







Hi,
What does this error mean "IOError: [Errno 2] No such file or directory: '-f' "
There is no file -f in my script. What does -f here specify?
Thank you
Priya

#3

Are you able to share your code so that we can see more of what's going on?


#4

I will share the link from where I have taken the code (https://github.com/lujunyan1118/SimpleBool/blob/master/BoolAttractor.py). We need 2 files to run the code, to specify the rules (CAC.txt) and steady.in file. Since I cannot upload the text files. I will copy the content of the files below.
CAC.txt
ATM* = ROS

    ASK1* = ROS and not P21


    AKT* = PI3K and not (PP2A or CASP3)


    BAX* = ((TBID or P53) and PP2A) and not AKT


    BCATENIN* = not (GSK3B and APC)


    BCL2* = (STAT3 or NFKB) and not (P53 or PP2A)


    CASP3* = (CASP8 or CASP9) and not IAP


    CASP8* = FADD and not (CFLIP or P21)


    CASP9* = CYTC and not (IAP or P21)


    CERAMIDE* = SMASE and not SPHK1


    CFLIP* = NFKB


    COX2* = S1P and TNFR


    CYCLIND1* = (BCATENIN or STAT3 or JUN) and not GSK3B


    CYTC* = MOMP


    EP2* = PGE2


    ERK* = MEK


    FAS* = CTL


    FADD* = TNFR or FAS


    FOS* = ERK


    GP130* = IL6


    GSK3B* = not (EP2 or AKT)


    IAP* = (NFKB or STAT3) and not SMAC


    IKB* = not IKK


    IKK* = (AKT or (S1P and TNFR))


    JAK* = GP130 and not SOCS


    JNK* = ASK1 or MEKK1


    JUN* = ((BCATENIN or ERK) and JNK) and not GSK3B


    MDM2* = (P53 and AKT) and not (GSK3B or ATM)


    MEK* = RAF or ROS


    MEKK1* = CERAMIDE or TGFR or TNFR


    MOMP* = (BAX or TBID or CERAMIDE) and not BCL2


    NFKB* = not IKB


    P21* = (P53 or SMAD) and not (GSK3B or CASP3)


    P53* = (PTEN or JNK or ATM) and not MDM2


    PGE2* = COX2


    PI3K* = (EP2 or RAS) and not PTEN


    PP2A* = CERAMIDE and not AKT


    PTEN* = P53 and not (NFKB or JUN)


    RAF* = CERAMIDE or RAS


    RAS* = EP2 or GP130


    ROS* = TNFR and not SOD


    SOD* = NFKB or STAT3


    S1P* = SPHK1


    SMAC* = MOMP


    SMAD* = TGFR and not JUN


    SMAD7* = SMAD or NFKB


    SMASE* = P53 or FADD


    SPHK1* = ERK or TNFR


    STAT3* = JAK


    SOCS* = STAT3


    TBID* = CASP8 and not BCL2


    TGFR* = TGFB and not SMAD7


    TNFR* = TNFA


    Proliferation* = (FOS and CYCLIND1) and not (P21 or CASP3)


    Apoptosis* = CASP3


    TREG* = (IL10 or DC) and not IL6


    TNFA* = MAC


    TH2* = IL4 and not (IFNG or TGFB)


    TH1* = (IL12 or IFNG) and not (IL10 or TGFB or IL4)


    TGFB* = TREG


    MAC* = (IFNG or CCL2) and not IL10


    IL6* = MAC or DC or NFKB


    IL4* = DC or TH2


    IL12* = DC or MAC


    IL10* = TREG or TH2


    IFNG* = TH1 or CTL


    CTL* = IFNG and not TGFB


    DC* =  (CCL2 or TNFA) and not IL10


    CCL2* = NFKB

steady.in txt file
rules = CAC.txt
turn_on = DC
turn_off =
ini_on = APC,IKB
ini_off = Proliferation,Apoptosis
mode=sync
rounds = 500
steps = 30
plot_nodes = Apoptosis,Proliferation,IL6,TNFA,NFKB,STAT3
missing=random

Thank you
Priya


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.