コード例 #1
0
ファイル: lane.py プロジェクト: MCowperthwaite/bcbio-nextgen
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
コード例 #2
0
ファイル: lane.py プロジェクト: mazzottidr/bcbio-nextgen
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
コード例 #3
0
ファイル: lane.py プロジェクト: cometsong/bcbio-nextgen
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
コード例 #4
0
ファイル: lane.py プロジェクト: yangjl/bcbio-nextgen
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
コード例 #5
0
ファイル: lane.py プロジェクト: joshuashen/steady
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
コード例 #6
0
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