MCPcopy Index your code
hub / github.com/openai/plugins / write_visuals

Function write_visuals

plugins/ngs-analysis/scripts/run_nfcore_pipeline.py:267–372  ·  view source on GitHub ↗
(
    run_dir: Path,
    status: str,
    validation: dict[str, Any],
    resource_plan: dict[str, Any] | None,
)

Source from the content-addressed store, hash-verified

265
266
267def write_visuals(
268 run_dir: Path,
269 status: str,
270 validation: dict[str, Any],
271 resource_plan: dict[str, Any] | None,
272) -> dict[str, str]:
273 entries = [
274 artifact_entry(
275 artifact_id="params",
276 title="Generated Params",
277 path="workflow/params.generated.json",
278 kind="json",
279 status="created",
280 description="Nextflow params generated by the plugin adapter.",
281 ),
282 artifact_entry(
283 artifact_id="command",
284 title="Nextflow Command",
285 path="workflow/nfcore_command.json",
286 kind="json",
287 status="created",
288 description="Exact command used or ready to run.",
289 ),
290 artifact_entry(
291 artifact_id="nextflow_report",
292 title="Nextflow Report",
293 path="workflow/nextflow_report.html",
294 kind="html",
295 status="created"
296 if (run_dir / "workflow" / "nextflow_report.html").exists()
297 else "not_available",
298 description="Nextflow execution report, emitted after a successful or partially successful run.",
299 ),
300 ]
301 if resource_plan is not None:
302 entries.extend(
303 [
304 artifact_entry(
305 artifact_id="resource_readiness",
306 title="Resource Readiness",
307 path="resources/resource_readiness.md",
308 kind="markdown",
309 status="created",
310 description="Human-readable reference/database readiness gate for this nf-core run.",
311 ),
312 artifact_entry(
313 artifact_id="resource_manifest",
314 title="Resource Manifest",
315 path="resources/resource_manifest.tsv",
316 kind="table",
317 status="created",
318 description="Pipeline resource bundles, roots, env vars, and missing-file counts.",
319 ),
320 artifact_entry(
321 artifact_id="resource_plan",
322 title="Resource Plan",
323 path="resources/resource_plan.json",
324 kind="json",

Callers 1

mainFunction · 0.70

Calls 6

artifact_entryFunction · 0.90
extendMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected