Exemplo n.º 1
0
def _find_results(project: Project, dataset):
    edna_res_dir = Path(
        project.get_dataset_root_dir(dataset),
        "process",
        project.protein,
        f"{dataset.crystal.id}",
        f"xds_{dataset.name}_1",
        "EDNA_proc",
        "results",
    )

    if edna_res_dir.is_dir():
        mtz_file = next(edna_res_dir.glob("*.mtz"), None)
        return edna_res_dir, mtz_file

    return None, None
Exemplo n.º 2
0
def _get_summary_report(project: Project, dataset) -> Optional[Path]:
    autoproc_res_dir = Path(
        project.get_dataset_root_dir(dataset),
        "process",
        project.protein,
        f"{dataset.crystal.id}",
        f"xds_{dataset.name}_1",
        "autoPROC",
    )

    glob = autoproc_res_dir.glob(str(Path("cn*", "AutoPROCv1_0_anom", "summary.html")))

    summary_file = next(glob, None)
    if summary_file is not None and summary_file.is_file():
        return summary_file

    # no autoPROC summary report found
    return None