Question about Adjacencies & Inversion #471
-
I have a question about how to specify AdjoiningSequences in an Adjacency in the case of an inversion. Is it possible to define AdjoiningSequence 2 the same way in each Adjacency, so that AdjoiningSequence 2 could be a single SequenceLocation object referenced by both Adjacencies? The problem I'm seeing is that the definition of SequenceLocation requires End greater than or equal to Start, meaning that AdjoiningSequence 2 needs to have {Start: C, End: D}. Then it would be impossible to look at either Adjacency and determine that it's describing an inversion, as opposed to describing an adjacency that's present in the reference sequence (Edited per Larry's correction that End >= Start) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
In your example above I would refer to two examples that we have images for in the repo currently Reverse complement adjacency example and SV Haplotype example. in the reverse complement adjacency it illustrates that fact that you only provide the In the Reverse complement adjacency example the 2nd sequenceLocation specifies the You could apply this to the SV Haplotype example by simply changing the @ahwagner please verify my response... |
Beta Was this translation helpful? Give feedback.
-
I don't think we have "yet" changed our requirement that End >= Start when fully specifying a SequenceLocation. If this is true (and I'll wait on @ahwagner 's validation). That means any inversion would require the use of adjacencies to be defined. |
Beta Was this translation helpful? Give feedback.
-
In the current model, the Adjacency 1: [{start: A}] (if terminal) Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification! |
Beta Was this translation helpful? Give feedback.
-
@ahwagner @larrybabb Is the constraint (that only one of |
Beta Was this translation helpful? Give feedback.
-
@Mrinal-Thomas-Epic no, there is no constraint specified at the schema level; just the bare-bones work at the moment. I can't get to creating this constraint in the near term, but I think it would be useful to have it. If you agree, please make a separate issue requesting this feature. |
Beta Was this translation helpful? Give feedback.
In the current model, the
Adjacency
only describes the sequence junction, nothing beyond. So the use ofA
andF
are not allowed as described in the above model; instead you would have 4 Adjacency objects, ordered in a containing structure (the current proposal is that structure is a revisedHaplotype
, but there is an open discussion about that at #461). The information for the four adjacency objects, per the current schema and examples would look like:Adjacency 1: [{start: A}] (if terminal)
Adjacency 2: [{end: B}, {end: D}]
Adjacency 3: [{start: C}, {start: E}]
Adjacency 4: [{end: F}] (if terminal)
Hope this helps.