I am looking for a way to make my current python code better. I am not advanced in python as I am a biologist.
Is there some way to make an if statement that reads if each line for my file starts with "+" or "-" and thus make a graph as blue and yellow per condition ? Basically the "+" or "-" for each line are prefixes for genes contained or not contained in my lists of interest.
I have no idea how could I even start this so yeah if you are python advanced and feel like helping me I would appreciate it.
file_1.txt = AAAS,ACTB,LIMS1 file_2.txt = AAAS,ACTN4,ACTN1 if file_1> file_2 print("The genes that differ are:") plot (volacno plot, yellow dots) elif file_1 == file_2: print("The common genes are:") plot (volacno plot, blue dots)