code: @Deprecated
    public static PCollection<Read> getReadsFromBAMFileSharded(
        Pipeline p,
        PipelineOptions pipelineOptions,
        OfflineAuth auth,
        List<Contig> contigs,
        ReaderOptions options,
        String BAMFile,
        ShardingPolicy shardingPolicy) throws IOException {
      ReadBAMTransform readBAMSTransform = new ReadBAMTransform(options);
      readBAMSTransform.setAuth(auth);
      final Storage.Objects storage = Transport
          .newStorageClient(pipelineOptions.as(GCSOptions.class)).build().objects();
      final List<BAMShard> shardsList = Sharder.shardBAMFile(storage, BAMFile, contigs,
          shardingPolicy);
      PCollection<BAMShard> shards = p.apply(Create
          .of(shardsList));
      return readBAMSTransform.expand(shards);
    }
docs: Get reads from a single BAM file by serially reading one shard at a time.
  
  This is useful when reads from a subset of genomic regions is desired.
  
  This method is marked as deprecated because getReadsFromBAMFilesSharded offers
  the same functionality but shard reading occurs in parallel.
  
  This method should be removed when https://github.com/googlegenomics/dataflow-java/issues/214
  is fixed.
  
  @param p
  @param pipelineOptions
  @param auth
  @param contigs
  @param options
  @param BAMFile
  @param shardingPolicy
  @return
  @throws IOException