Hi,
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.
for example
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)
thanks
show us the code, show us the input.
I do not have a code because i have no idea how to achieve this. The input is two gene files. and i am comparing the genes between the two files. my question is how to format the if statement for that.
Realistically nobody is going to want to / be able to help you unless they see some code and data, that's a minimum really.
Show us the sample input (the content of two files) and the desired output.
I updated the initial comment with an example