Cleanup. Remove some unnecessary methods.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2900 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
30eb28886b
commit
b69c2d0f70
|
|
@ -48,12 +48,4 @@ public interface BAMFormatAwareShard extends Shard {
|
|||
* @return An iterator over the reads stored in the shard.
|
||||
*/
|
||||
public StingSAMIterator iterator();
|
||||
|
||||
/**
|
||||
* Get the bounds of the current shard. Current bounds
|
||||
* will be the unfiltered extents of the current shard, from
|
||||
* the start of the first interval to the end of the last interval.
|
||||
* @return The bounds of the shard.
|
||||
*/
|
||||
public GenomeLoc getBounds();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,14 +86,12 @@ public class BlockDelimitedReadShard extends ReadShard implements BAMFormatAware
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the bounds of the current shard. Current bounds
|
||||
* will be the unfiltered extents of the current shard, from
|
||||
* the start of the first interval to the end of the last interval.
|
||||
* @return The bounds of the shard.
|
||||
* returns the type of shard.
|
||||
*/
|
||||
public GenomeLoc getBounds() {
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public ShardType getShardType() {
|
||||
return shardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* String representation of this shard.
|
||||
|
|
|
|||
|
|
@ -95,27 +95,6 @@ public class IndexDelimitedLocusShard extends LocusShard implements BAMFormatAwa
|
|||
return chunks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the bounds of the current shard. Current bounds
|
||||
* will be the unfiltered extents of the current shard, from
|
||||
* the start of the first interval to the end of the last interval.
|
||||
* @return The bounds of the shard.
|
||||
*/
|
||||
public GenomeLoc getBounds() {
|
||||
if(loci == null)
|
||||
return null;
|
||||
|
||||
String contig = null;
|
||||
long start = Long.MAX_VALUE, stop = 0;
|
||||
for(GenomeLoc locus: loci) {
|
||||
if(contig == null) contig = locus.getContig();
|
||||
start = Math.min(locus.getStart(),start);
|
||||
stop = Math.max(locus.getStop(),stop);
|
||||
}
|
||||
|
||||
return GenomeLocParser.createGenomeLoc(contig,start,stop);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the type of shard.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue