Skip to content
Prev 9474 / 21318 Next

[Bioc-devel] Build error in released version

This is my opinion.  I think the class should have a very general
structure.  Depending on the assay, users may be particularly interested in
the original case described by Herve (alignments on opposite strands, same
chromosome), but I dont think it should be enforced.

We have first(), last(), second() for getting the information in each pair.

I suggest that the functionality inherent in granges() instead by moved to
a function like
  getFragment()
What this function does, is really to get the actual DNA fragment that was
sequenced.  I think this function should have an argument like
standRequirement which defaults to "opposite" and which has other options
"same" and "ignored" and which returns a GRanges with the "outer"
coordinates exactly as now.  That accessor function would silently drop
alignment pairs which does not satisfy the criteria.

An alternative is that this could be set as options inside the
GAlignmentPairs object: what is considered a "valid" alignment.  Then this
could dictate the behaviour of say seqnames().

I strongly support this class having the possibility of alignments to
different chromosomes.  But I can also see the advantage in having default
methods drop alignments which does this, as this will be the majority
usecase.  Then people with special requirements can set a few arguments.

Kasper

On Tue, Jul 5, 2016 at 7:15 PM, Zhu, Lihua (Julie) <Julie.Zhu at umassmed.edu>
wrote: