public static ImmutableList < StreamReadsRequest > getReadRequests ( final StreamReadsRequest prototype , SexChromosomeFilter sexChromosomeFilter , long numberOfBasesPerShard , OfflineAuth auth ) throws IOException { Iterable < Contig > shards = getAllShardsInReadGroupSet ( prototype . getReadGroupSetId ( ) , sexChromosomeFilter , numberOfBasesPerShard , auth ) ; return FluentIterable . from ( shards ) . transform ( new Function < Contig , StreamReadsRequest > ( ) { @ Override public StreamReadsRequest apply ( Contig shard ) { return shard . getStreamReadsRequest ( prototype ) ; } } ) . toList ( ) ; }
Constructs sharded StreamReadsRequest for the all references in the readGroupSet .