- All Implemented Interfaces:
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
Fields Modifier and Type Field Description
Constructors Constructor Description
SampleToBioSourceTransformer(boolean childrensThatPushOnly)Create a new sample to biosource transformer that only load parent biosources to sample that has a subtype with "push annotations" set.
Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformer
getSourceItemType, getTargetItemType, safeIdList
pushOnlyprivate boolean pushOnly
SampleToBioSourceTransformerpublic SampleToBioSourceTransformer(boolean childrensThatPushOnly)Create a new sample to biosource transformer that only load parent biosources to sample that has a subtype with "push annotations" set. This functionality should only be used in the first transformation step.
- See Also:
transformpublic Set<Integer> transform(TransformContext context, Set<Integer> source)Load the ID of all biosources that are immediate parents to the given set of samples.