Answers.Body: <p>At its current form, your question is not clear, for example which aspects of these cell lines are your trying to compare?</p>
  
  <p>Regarding your point on the ontologies, in <code>Python</code> you can use the <a href="https://pypi.org/project/pronto/" rel="nofollow noreferrer"><code>pronto</code></a> library to work with ontologies in OBO format.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-23T17:15:25.350Z
Answers.Text: I have edited the question, I hope it might give a clearer idea @haci
Answers.UserDisplayName: Yousef
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-23T19:04:03.117Z
Answers.Text: I am not an expert on this domain, however, going over the documentation and [examples](https://pronto.readthedocs.io/en/latest/examples/ms.html) I learned that you can extract different hierarchies using `pronto`.  I have not seen any mention of generating a corpora out of ontologies though.
Answers.UserDisplayName: haci
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-23T13:57:07.207Z
Answers.LastActivityDate: 2019-10-23T13:57:07.207Z
Answers.UserDisplayName: haci
Body: <p>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 <strong>MCF7</strong>    and <strong>10964c</strong> cell lines. I am using python so, can anyone provide some steps so that I can do the comparison. </p>
  
  <p>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.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>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. </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-22T22:47:31.970Z
Comments.Text: First part is a database, pandas will work. Second part is a specialist area with its own solutions
Comments.UserDisplayName: M__
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-23T13:11:58.577Z
Comments.Text: 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.
Comments.UserDisplayName: Yousef
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-23T14:18:10.893Z
Comments.Text: I don't do ontologies, I had colleagues that did, so I'd go with @haci idea
Comments.UserDisplayName: M__
Tags: <python><cell-line><ontology>
Title: Is there a way to measure cell line similarity using python?
ThreadText: # Is there a way to measure cell line similarity using python?
  
  (Asked by: username_0 on 2019-10-22)
  
  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.
  
  **Tags:** python, cell-line, ontology
  
  > **Comments:**
  > **username_1**: First part is a database, pandas will work. Second part is a specialist area with its own solutions  
  > **username_0**: 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.  
  > **username_1**: I don't do ontologies, I had colleagues that did, so I'd go with @username_2 idea  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-10-23. Score: 1
  
  At its current form, your question is not clear, for example which aspects of these cell lines are your trying to compare?
  
  Regarding your point on the ontologies, in `Python` you can use the [`pronto`](https://pypi.org/project/pronto/) library to work with ontologies in OBO format.
  
  > **Comments:**
  > **username_0**: I have edited the question, I hope it might give a clearer idea @username_2  
  > **username_2**: I am not an expert on this domain, however, going over the documentation and [examples](https://pronto.readthedocs.io/en/latest/examples/ms.html) I learned that you can extract different hierarchies using `pronto`.  I have not seen any mention of generating a corpora out of ontologies though.  
  
  ---
  
  