Package net.sf.basedb.util.listable
Class SampleToBioSourceTransformer
java.lang.Object
net.sf.basedb.util.listable.AbstractSourceItemTransformer
net.sf.basedb.util.listable.SampleToBioSourceTransformer
- All Implemented Interfaces:
SourceItemTransformer
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSampleToBioSourceTransformer
(boolean childrensThatPushOnly) Create a new sample to biosource transformer that only load parent biosources to sample that has a subtype with "push annotations" set. -
Method Summary
Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformer
getSourceItemType, getTargetItemType, safeIdList
-
Field Details
-
pushOnly
private boolean pushOnly
-
-
Constructor Details
-
SampleToBioSourceTransformer
public SampleToBioSourceTransformer() -
SampleToBioSourceTransformer
public 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.- Since:
- 3.16
- See Also:
-
-
Method Details
-
transform
Load the ID of all biosources that are immediate parents to the given set of samples.
-