line access after importing a file in python

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

actin 2.3

tubulin -0.08

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.

Thank you.

Source: Stack Overflow


Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273