By vinay rao
I am new to python, and I have loaded two files containing gene expression counts. Now, I want to check if the expression count of each gene in the sample set is similar to its representative in the reference set. For this, I am using a for loop. I need the syntax for the for loop, where I can look for specific lines in the sample and reference file.
For example, my file look like this –
gene_name expression count
Please give me the syntax for the for loop, which would help me access tubulin from the reference file and then I can check if sample value for tubulin is the same as in the reference using an if statement.
Source: Stack Overflow