public GenomicContextMapper(int contextSize) { OneHotBaseFeatureMapper<BaseInformationRecords.BaseInformationOrBuilder>[] refContext = new OneHotBaseFeatureMapper[contextSize]; for (int i = 0; i < contextSize; i++) { refContext[i] = new OneHotBaseFeatureMapper<>(i, record -> trim(contextSize, record.getGenomicSequenceContext())); } delegate = new ConcatFeatureMapper<>(refContext); }