def _item_needs_compute(lane_items): """Determine if any item needs computing resources to spin up a cluster. """ for item in lane_items: if needs_fastq_conversion(item, item["config"]): return True return False
def _item_needs_compute(lane_items): """Determine if any item needs computing resources to spin up a cluster. """ for item in lane_items: config = item["config"] split_size = config.get("distributed", {}).get("align_split_size", config["algorithm"].get("align_split_size", None)) if split_size is not None: return True if needs_fastq_conversion(item, item["config"]): return True return False
def _item_needs_compute(lane_items): """Determine if any item needs computing resources to spin up a cluster. """ for item in lane_items: config = item["config"] split_size = config.get("distributed", {}).get( "align_split_size", config["algorithm"].get("align_split_size", None)) if split_size is not None: return True if needs_fastq_conversion(item, item["config"]): return True return False
def _item_needs_compute(lanes): """Determine if any item needs computing resources to spin up a cluster. """ for lane_items, _, _, _, config in lanes: # check if multiplexed if len(lane_items) > 1 or lane_items[0]["barcode_id"] is not None: return True # check if we need to process the input by splitting or conversion item = lane_items[0] config = shared.update_config_w_custom(config, item) split_size = config.get("distributed", {}).get("align_split_size", config["algorithm"].get("align_split_size", None)) if split_size is not None: return True if needs_fastq_conversion(item, config): return True return False
def _item_needs_compute(lanes): """Determine if any item needs computing resources to spin up a cluster. """ for lane_items, _, _, _, config in lanes: # check if multiplexed if len(lane_items) > 1 or lane_items[0]["barcode_id"] is not None: return True # check if we need to process the input by splitting or conversion item = lane_items[0] config = shared.update_config_w_custom(config, item) split_size = config.get("distributed", {}).get( "align_split_size", config["algorithm"].get("align_split_size", None)) if split_size is not None: return True if needs_fastq_conversion(item, config): return True return False