def detect_sv(data): """Detect structural variation for input sample. """ sv_todo = data["config"]["algorithm"].get("sv_detection", None) if sv_todo is not None and data.get("fastq2"): if sv_todo == "hydra": sv_calls = hydra.detect_sv(data["work_bam"], data["genome_build"], data["dirs"], data["config"]) else: raise ValueError("Unexpected structural variation method:{}".format(sv_todo)) return [[data]]