Body: <p>I was reading the manual of <a href="http://chibba.pgml.uga.edu/mcscan2/" rel="nofollow noreferrer">MCScanX</a> and found that besides a all-vs-all protein blast file the tool takes a gtf file with four columns only: scaffold name, protein name, from, to.</p>
  
  <p>As the tool is not taking the strand column, it appears to me that probably the most popular tool for genome collinearity analysis is disregarding orientation of genes. Do I get it right? Is there an analogical tool that would perform the collinearity analysis with respect to orientation of genes?</p>
  
  <p>-- edit --</p>
  
  <p>Now I am almost entirely sure that it MCScanX is not taking orientation into account since I found collinear blocks where some of the gene homologs were on the same strand and some of them two different strands (I do hesitate to call them co-"linear" now). So the updated question would be: Is there a good MCScanX alternative that would take orientation of genes into account?</p>
  
  <p>I am not sure if I will improve the question with an example, but i will try anyway. Let's say that <code>A B C D</code> was detected as collinear with <code>A' B' C' D'</code>. The orientation of genes is <code>+ + - +</code> for <code>A B C D</code> and <code>+ - - -</code> for <code>A' B' C' D'</code>. For sure, these are synteny blocks. The order of genes is the same, but are they collinear? How can I search just for blocks that would be same (or completely revers) orientation?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-29T16:51:43.780Z
Comments.Text: Sounds like you could just do logic on the from, to columns if they correctly have the from > to if the gene is in the reverse orientation as the reference.
Comments.UserDisplayName: conchoecia
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-30T09:28:00.557Z
Comments.Text: Theoretically it would be possible to encode the orientation information like this, but that would be against gtf specification that has the leftmost and the rightmost positions.
Comments.UserDisplayName: Kamil S Jaron
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-31T09:16:51.603Z
Comments.Text: Couldn't that be taken care after the "co-linear" analysis? In your example what would you consider co-linear (`B` and `D` with their pairs `B'` and `D'`)? Sorry it is not my fields but seems interesting
Comments.UserDisplayName: llrs
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-31T18:01:42.243Z
Comments.Text: @Llopis Yep, I have ended up in post processing the MCScanX output - I need to post an answer. In the example I made there are two different collinear blocks A+ C- C'- A'+ (reverse duplication) and B+ D+ D-' B'- (a palindrome). Assuming that we allow gaps in between genes.
Comments.UserDisplayName: Kamil S Jaron
Tags: <software-recommendation><genomics>
Title: Colinearity analysis with respect to gene orientation
ThreadText: # Colinearity analysis with respect to gene orientation
  
  (Asked by: username_0 on 2018-10-29)
  
  I was reading the manual of [MCScanX](http://chibba.pgml.uga.edu/mcscan2/) and found that besides a all-vs-all protein blast file the tool takes a gtf file with four columns only: scaffold name, protein name, from, to.
  
  As the tool is not taking the strand column, it appears to me that probably the most popular tool for genome collinearity analysis is disregarding orientation of genes. Do I get it right? Is there an analogical tool that would perform the collinearity analysis with respect to orientation of genes?
  
  -- edit --
  
  Now I am almost entirely sure that it MCScanX is not taking orientation into account since I found collinear blocks where some of the gene homologs were on the same strand and some of them two different strands (I do hesitate to call them co-"linear" now). So the updated question would be: Is there a good MCScanX alternative that would take orientation of genes into account?
  
  I am not sure if I will improve the question with an example, but i will try anyway. Let's say that `A B C D` was detected as collinear with `A' B' C' D'`. The orientation of genes is `+ + - +` for `A B C D` and `+ - - -` for `A' B' C' D'`. For sure, these are synteny blocks. The order of genes is the same, but are they collinear? How can I search just for blocks that would be same (or completely revers) orientation?
  
  **Tags:** software-recommendation, genomics
  
  > **Comments:**
  > **username_1**: Sounds like you could just do logic on the from, to columns if they correctly have the from > to if the gene is in the reverse orientation as the reference.  
  > **username_0**: Theoretically it would be possible to encode the orientation information like this, but that would be against gtf specification that has the leftmost and the rightmost positions.  
  > **username_2**: Couldn't that be taken care after the "co-linear" analysis? In your example what would you consider co-linear (`B` and `D` with their pairs `B'` and `D'`)? Sorry it is not my fields but seems interesting  
  > **username_0**: @Llopis Yep, I have ended up in post processing the MCScanX output - I need to post an answer. In the example I made there are two different collinear blocks A+ C- C'- A'+ (reverse duplication) and B+ D+ D-' B'- (a palindrome). Assuming that we allow gaps in between genes.  
  
  ---
  
  ## 0 answers
  
  