Dna.has_info#
missionbio.mosaic.dna.Dna.has_info
- Dna.has_info(name: str, sample: Optional[str] = None, any_sample: bool = False, all_samples: bool = False) bool #
Check if the info exists in any of the samples
- Parameters:
name – The info key
sample – The sample to check the info in. If None, any_sample must be provided.
any_sample – If True, the presence of the info is checked across all sampels.
all_samples – If True, the presence of the info is checked in all samples.
- Returns:
True if the info exists in the requested samples
< Class Dna