# Is there a way to measure cell line similarity using python?

I have a list of cell lines that should be compared against another list of cell lines as pairs. I am trying to find a way in order for me to compare two cells such as MCF7 and 10964c cell lines. I am using python so, can anyone provide some steps so that I can do the comparison.

I also have their ontologies in an OBO format as I need them to do the comparison. if there is a library or a certain procedure that can solve this problem will be a great help.

Edit:

The comparison I'm trying to do is to measure the similarity in different ways, there are many measurement methods such as the distance in the ontological hierarchy between two cells by calculating the shortest path. You can also measure the number of common ancestors. But also, there are libraries that perform complicated (and more accurate) similarity measurements like JiangConrath, Jaccard, or Resnik which is popular. The problem with theses libraries is that they are not oriented to calculate cell line ontologies and may arequire annotation corpus for some similarity measures.

• First part is a database, pandas will work. Second part is a specialist area with its own solutions – Michael Oct 22 '19 at 22:47
• My question is only concerned with the second part. I am already using pandas data-frames. @MichaelG. Can you try to give me any lead on how to tackle this? it's a 3-month project and now I'm stuck in this problem. – Yousef Oct 23 '19 at 13:11
• I don't do ontologies, I had colleagues that did, so I'd go with @haci idea – Michael Oct 23 '19 at 14:18

Regarding your point on the ontologies, in Python you can use the pronto library to work with ontologies in OBO format.
• I am not an expert on this domain, however, going over the documentation and examples I learned that you can extract different hierarchies using pronto. I have not seen any mention of generating a corpora out of ontologies though. – haci Oct 23 '19 at 19:04