Closed priyambial123 closed 2 years ago
I think the issue is that you are trying to plot while directing the program output to a text file.
When I run this code:
import pystablemotifs as sm
rules="""DIDO1*= X2 and X3
X2*= not (miR101 or miR6504 or miR582 or miR144 or miR93 or miR98 or X1 or miR92a or miR181b or miR3941 or miR4672 or miR582 or miR198)
X3*= MYCN or MYC or KDM5A or SOX2 or TFAP2C or KDM2B
CAND2*= not (let7a)
MYCN*= not (miR101 or miR6504 or miR582 or miR144 or miR93)
MYC*= not (miR98 or X1 or miR92a or let7a)
KDM5A*= not (miR181b)
SOX2*= SOX2
TFAP2C*= TFAP2C
KDM2B*= KDM2B
miR92a*= not (MYCN or MYC)
X1*= not (MYCN or MYC or KDM2B)
miR3941*= not (MYCN or MYC or TFAP2C or KDM2B)
miR4672*= not (MYCN or MYC)
miR101*= not (MYC or KDM2B)
miR144*= not (MYC)
miR582*= not (MYC or SOX2 or TFAP2C)
miR98*= not (KDM2B)
miR198*= not (KDM2B)
miR93*= not (MYCN)
let7a*= not (MYC)
miR6504*= miR6504
miR181b*= miR181b"""
primes = sm.format.create_primes(rules)
ar = sm.AttractorRepertoire.from_primes(primes)
ar.summary()
I get all 56 attractors printed (I counted the number of curly brackets in a text editor to verify). You can expand the "Details" drop-down menu below to see the output I got in case you want to double check.
In short, Python doesn't know how to put a plot in a text file, hence the strange behavior you observed.
Hello
I have the results as 56 attractors but only 26 attractors are printed. Is there a way to get the list of all attractors in a text file. Please find the error below
This is the network:
Script:
Error:
Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize
Results (python script.py > Results.txt)
Thanks