Removed sanity check that required GenomeLoc argument to be strictly 1-base long. We need to relax this in order to be able to pass around a reference context containing full-length chunk of deleted reference bases
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2485 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
497ae700c4
commit
8932e67325
|
|
@ -149,9 +149,9 @@ public class LocusReferenceView extends ReferenceView {
|
||||||
* @param genomeLoc location to verify.
|
* @param genomeLoc location to verify.
|
||||||
*/
|
*/
|
||||||
private void validateLocation( GenomeLoc genomeLoc ) throws InvalidPositionException {
|
private void validateLocation( GenomeLoc genomeLoc ) throws InvalidPositionException {
|
||||||
if( !genomeLoc.isSingleBP() )
|
// if( !genomeLoc.isSingleBP() )
|
||||||
throw new InvalidPositionException(
|
// throw new InvalidPositionException(
|
||||||
String.format("Requested position larger than one base; start = %d, stop = %d", genomeLoc.getStart(), genomeLoc.getStop()));
|
// String.format("Requested position larger than one base; start = %d, stop = %d", genomeLoc.getStart(), genomeLoc.getStop()));
|
||||||
if( bounds != null && !bounds.containsP(genomeLoc) )
|
if( bounds != null && !bounds.containsP(genomeLoc) )
|
||||||
throw new InvalidPositionException(
|
throw new InvalidPositionException(
|
||||||
String.format("Requested position %s not within interval %s", genomeLoc, bounds));
|
String.format("Requested position %s not within interval %s", genomeLoc, bounds));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue