Class SampleToBioSourceTransformer

  • All Implemented Interfaces:
    SourceItemTransformer

    public class SampleToBioSourceTransformer
    extends AbstractSourceItemTransformer
    Source item transformer that transform sample items to their parent biosources. This implementation will only transform to the sample:s immediate parent biosources. Grandparents are not included. To do this, combine this transformer with a SampleToParentSampleTransformer.
    Since:
    3.5
    Author:
    Nicklas
    • Constructor Detail

      • SampleToBioSourceTransformer

        public SampleToBioSourceTransformer()
    • Method Detail

      • transform

        public Set<Integer> transform​(TransformContext context,
                                      Set<Integer> source)
        Load the ID of all biosources that are immediate parents to the given set of samples.