czty commited on
Commit
b74aef0
·
verified ·
1 Parent(s): b7e0118

BioOcto code and data release (snapshot 2026-11-27, resumed) (part 7)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/delly_short_read_sv_dev_server.py +92 -0
  2. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/sambamba_sort_and_index_dev_server.py +65 -0
  3. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/t_coffee_protein_msa_dev_server.py +102 -0
  4. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/usher_phylogenetic_placement_dev_server.py +152 -0
  5. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/crispresso2_amplicon_analysis_dev_server.py +40 -0
  6. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/delly_short_read_sv_dev_server.py +40 -0
  7. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/sambamba_sort_and_index_dev_server.py +57 -0
  8. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/t_coffee_protein_msa_dev_server.py +45 -0
  9. Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/usher_phylogenetic_placement_dev_server.py +50 -0
  10. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/compiled_ir/rseqc_read_distribution_dev.json +176 -0
  11. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/compiled_ir_workflow/rseqc_read_distribution_dev.json +190 -0
  12. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/batch_summary.json +25 -0
  13. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json +172 -0
  14. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json.raw.txt +172 -0
  15. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json.usage.json +25 -0
  16. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir_t0_t5.jsonl +1 -0
  17. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir_t0_t5.pre_interface_compile.jsonl +1 -0
  18. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir_t0_t5.workflow_regression.jsonl +1 -0
  19. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/batch_summary.json +25 -0
  20. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py +99 -0
  21. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py.raw.txt +101 -0
  22. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py.usage.json +25 -0
  23. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt_t0_t5.jsonl +1 -0
  24. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/generated/direct_prompt/rseqc_read_distribution_dev_server.py +99 -0
  25. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/generated/ir_template/rseqc_read_distribution_dev_server.py +44 -0
  26. Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/generated_workflow/ir_template/rseqc_read_distribution_dev_server.py +41 -0
  27. Biomanus-V2/Experiment1/runs/smoke/results.jsonl +1 -0
  28. Biomanus-V2/Experiment1/runs/test_103_native_curation/atlas_manual_v1/work/config.yaml +210 -0
  29. Biomanus-V2/Experiment1/runs/test_103_native_curation/atlas_manual_v1/work/samples.tsv +2 -0
  30. Biomanus-V2/Experiment1/runs/test_103_native_curation/batch4_probe_v1/tidyp/clean.html +11 -0
  31. Biomanus-V2/Experiment1/runs/test_103_native_curation/batch4_probe_v2/tidyp/clean.html +11 -0
  32. Biomanus-V2/Experiment1/runs/test_103_native_curation/comet_manual_v2/result.pep.xml +141 -0
  33. Biomanus-V2/Experiment1/runs/test_103_native_curation/comet_manual_v2/result.txt +3 -0
  34. Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v1/test_dropkick_counts_coef.png +3 -0
  35. Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v1/test_dropkick_counts_dropkick_scores.csv +81 -0
  36. Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v1/test_dropkick_counts_score.png +3 -0
  37. Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v2/test_dropkick_counts_coef.png +3 -0
  38. Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v2/test_dropkick_counts_dropkick_scores.csv +81 -0
  39. Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v2/test_dropkick_counts_score.png +3 -0
  40. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v1/ont-fast5-api/summary.json +1 -0
  41. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v1/pyranges/merged.tsv +3 -0
  42. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v1/results.json +55 -0
  43. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/ipython-cluster-helper/engine_commands.json +1 -0
  44. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/ont-fast5-api/summary.json +1 -0
  45. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/pyranges/merged.tsv +3 -0
  46. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/results.json +60 -0
  47. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/ipython-cluster-helper/resources.json +1 -0
  48. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/ont-fast5-api/summary.json +1 -0
  49. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/pyranges/merged.tsv +3 -0
  50. Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/results.json +61 -0
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/delly_short_read_sv_dev_server.py ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import os
3
+ import subprocess
4
+ from pathlib import Path
5
+ from mcp.server.fastmcp import FastMCP
6
+
7
+ mcp = FastMCP("delly")
8
+
9
+ @mcp.tool()
10
+ def short_read_sv(
11
+ reference_fasta: str,
12
+ input_bam: str,
13
+ output_bcf: str,
14
+ svtype: str = "ALL",
15
+ threads: int = 4
16
+ ) -> str:
17
+ """
18
+ Run Delly short-read structural variant calling (sr subcommand).
19
+
20
+ Args:
21
+ reference_fasta: Path to reference FASTA file
22
+ input_bam: Path to input BAM file
23
+ output_bcf: Path to output BCF file
24
+ svtype: SV type filter (default: ALL)
25
+ threads: Number of threads (default: 4)
26
+
27
+ Returns:
28
+ JSON-serializable metadata about the execution
29
+ """
30
+ # Validate required paths exist
31
+ ref_path = Path(reference_fasta)
32
+ bam_path = Path(input_bam)
33
+ if not ref_path.exists():
34
+ raise FileNotFoundError(f"Reference FASTA not found: {reference_fasta}")
35
+ if not bam_path.exists():
36
+ raise FileNotFoundError(f"Input BAM not found: {input_bam}")
37
+
38
+ # Create output parent directory
39
+ out_path = Path(output_bcf)
40
+ out_path.parent.mkdir(parents=True, exist_ok=True)
41
+
42
+ # Build command per execution plan
43
+ cmd = [
44
+ "delly",
45
+ "sr",
46
+ "-g",
47
+ reference_fasta,
48
+ "-o",
49
+ output_bcf,
50
+ input_bam
51
+ ]
52
+
53
+ # Run the command
54
+ try:
55
+ result = subprocess.run(
56
+ cmd,
57
+ capture_output=True,
58
+ text=True,
59
+ check=False,
60
+ shell=False
61
+ )
62
+ except Exception as e:
63
+ raise RuntimeError(f"Failed to execute delly: {e}")
64
+
65
+ # Check exit code
66
+ if result.returncode != 0:
67
+ error_msg = result.stderr.strip() if result.stderr else "Unknown error"
68
+ raise RuntimeError(f"Delly failed with exit code {result.returncode}: {error_msg}")
69
+
70
+ # Verify output was created
71
+ if not out_path.exists():
72
+ raise RuntimeError(f"Output file was not created: {output_bcf}")
73
+
74
+ # Return structured metadata
75
+ metadata = {
76
+ "endpoint": "short_read_sv",
77
+ "tool": "delly",
78
+ "version": "2.6.0",
79
+ "command": cmd,
80
+ "exit_code": result.returncode,
81
+ "output_bcf": str(out_path),
82
+ "output_size_bytes": out_path.stat().st_size if out_path.exists() else 0,
83
+ "svtype": svtype,
84
+ "threads": threads,
85
+ "stdout": result.stdout,
86
+ "stderr": result.stderr
87
+ }
88
+
89
+ return json.dumps(metadata, indent=2)
90
+
91
+ if __name__ == "__main__":
92
+ mcp.run()
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/sambamba_sort_and_index_dev_server.py ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from mcp.server.fastmcp import FastMCP
2
+ import subprocess
3
+ import os
4
+ import sys
5
+ import json
6
+ from pathlib import Path
7
+
8
+ mcp = FastMCP("sambamba-sort-and-index")
9
+
10
+ @mcp.tool()
11
+ def sort_and_index(input_bam: str, output_bam: str, summary: str) -> dict:
12
+ """
13
+ Sort a BAM file, index it, and generate flagstat summary.
14
+
15
+ Args:
16
+ input_bam: Path to input BAM file
17
+ output_bam: Path to output sorted BAM file
18
+ summary: Path where flagstat output will be written
19
+ """
20
+ # Create parent directories for output files
21
+ output_bam_path = Path(output_bam)
22
+ summary_path = Path(summary)
23
+ output_bam_path.parent.mkdir(parents=True, exist_ok=True)
24
+ summary_path.parent.mkdir(parents=True, exist_ok=True)
25
+
26
+ # Step 1: Sort
27
+ sort_cmd = ["sambamba", "sort", "-o", output_bam, input_bam]
28
+ sort_result = subprocess.run(sort_cmd, capture_output=True, text=True)
29
+ if sort_result.returncode != 0:
30
+ raise RuntimeError(f"sambamba sort failed: {sort_result.stderr}")
31
+
32
+ # Step 2: Index
33
+ index_cmd = ["sambamba", "index", output_bam]
34
+ index_result = subprocess.run(index_cmd, capture_output=True, text=True)
35
+ if index_result.returncode != 0:
36
+ raise RuntimeError(f"sambamba index failed: {index_result.stderr}")
37
+
38
+ # Step 3: Flagstat - capture stdout to summary file
39
+ flagstat_cmd = ["sambamba", "flagstat", output_bam]
40
+ flagstat_result = subprocess.run(flagstat_cmd, capture_output=True, text=True)
41
+ if flagstat_result.returncode != 0:
42
+ raise RuntimeError(f"sambamba flagstat failed: {flagstat_result.stderr}")
43
+
44
+ # Write flagstat stdout to summary file
45
+ with open(summary, "w") as f:
46
+ f.write(flagstat_result.stdout)
47
+
48
+ # Derive output_bai path from output_bam
49
+ output_bai = output_bam + ".bai"
50
+
51
+ return {
52
+ "input_bam": input_bam,
53
+ "output_bam": output_bam,
54
+ "output_bai": output_bai,
55
+ "summary": summary,
56
+ "sort_exit_code": sort_result.returncode,
57
+ "index_exit_code": index_result.returncode,
58
+ "flagstat_exit_code": flagstat_result.returncode,
59
+ "sort_stderr": sort_result.stderr,
60
+ "index_stderr": index_result.stderr,
61
+ "flagstat_stderr": flagstat_result.stderr
62
+ }
63
+
64
+ if __name__ == "__main__":
65
+ mcp.run()
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/t_coffee_protein_msa_dev_server.py ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from mcp.server.fastmcp import FastMCP
2
+ import subprocess
3
+ import os
4
+ import json
5
+ import sys
6
+
7
+ mcp = FastMCP("t_coffee")
8
+
9
+
10
+ @mcp.tool()
11
+ def protein_msa(
12
+ input_fasta: str,
13
+ output_fasta: str,
14
+ mode: str = "quickaln",
15
+ output_format: str = "fasta_aln",
16
+ ) -> dict:
17
+ """
18
+ Perform multiple sequence alignment of protein sequences using T-Coffee.
19
+
20
+ Args:
21
+ input_fasta: Path to the input FASTA file containing protein sequences.
22
+ output_fasta: Path where the alignment output will be written.
23
+ mode: T-Coffee alignment mode (default: "quickaln").
24
+ output_format: Output alignment format (default: "fasta_aln").
25
+ """
26
+ # Define the execution environment and command based on the execution plan
27
+ base_dir = "/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/bin"
28
+ plugins_dir = "/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/plugins/linux"
29
+ perl_dir = "/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/perl/lib/perl5"
30
+
31
+ # Create output parent directory if it doesn't exist
32
+ output_dir = os.path.dirname(os.path.abspath(output_fasta))
33
+ os.makedirs(output_dir, exist_ok=True)
34
+
35
+ # Build the command as specified in the execution plan
36
+ cmd = [
37
+ "./t_coffee",
38
+ input_fasta,
39
+ "-mode",
40
+ mode,
41
+ "-output",
42
+ output_format,
43
+ "-outfile",
44
+ output_fasta,
45
+ ]
46
+
47
+ # Set up environment variables
48
+ env = os.environ.copy()
49
+ env["PLUGINS_4_TCOFFEE"] = plugins_dir
50
+ env["MAFFT_BINARIES"] = plugins_dir
51
+ env["PERL5LIB"] = perl_dir
52
+ env["EMAIL_4_TCOFFEE"] = "username@example.org"
53
+
54
+ # Prepend the required paths to PATH
55
+ env["PATH"] = base_dir + os.pathsep + plugins_dir + os.pathsep + env.get("PATH", "")
56
+
57
+ # Run the command from the specified working directory
58
+ try:
59
+ result = subprocess.run(
60
+ cmd,
61
+ cwd=base_dir,
62
+ env=env,
63
+ capture_output=True,
64
+ text=True,
65
+ check=False,
66
+ )
67
+ except Exception as e:
68
+ return {
69
+ "success": False,
70
+ "error": f"Failed to execute t_coffee: {str(e)}",
71
+ "stdout": "",
72
+ "stderr": "",
73
+ }
74
+
75
+ # Check for non-zero exit code
76
+ if result.returncode != 0:
77
+ return {
78
+ "success": False,
79
+ "error": f"t_coffee exited with code {result.returncode}",
80
+ "stdout": result.stdout,
81
+ "stderr": result.stderr,
82
+ }
83
+
84
+ # Verify that the output file was created
85
+ if not os.path.exists(output_fasta):
86
+ return {
87
+ "success": False,
88
+ "error": f"Output file {output_fasta} was not created",
89
+ "stdout": result.stdout,
90
+ "stderr": result.stderr,
91
+ }
92
+
93
+ # Return structured metadata
94
+ return {
95
+ "success": True,
96
+ "output_fasta": output_fasta,
97
+ "mode": mode,
98
+ "output_format": output_format,
99
+ "stdout": result.stdout,
100
+ "stderr": result.stderr,
101
+ "exit_code": result.returncode,
102
+ }
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/direct_prompt/usher_phylogenetic_placement_dev_server.py ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from mcp.server.fastmcp import FastMCP
2
+ import subprocess
3
+ import os
4
+ import json
5
+ import sys
6
+ from pathlib import Path
7
+
8
+ mcp = FastMCP("usher")
9
+
10
+ @mcp.tool()
11
+ def phylogenetic_placement(
12
+ global_tree: str,
13
+ global_vcf: str,
14
+ new_samples_vcf: str,
15
+ build_dir: str,
16
+ place_dir: str,
17
+ global_pb: str,
18
+ placed_pb: str
19
+ ) -> dict:
20
+ """
21
+ Perform phylogenetic placement of new samples onto an existing tree using UShER.
22
+
23
+ This endpoint runs two UShER invocations:
24
+ 1. Build a mutation-annotated tree (MAT) from the global tree and VCF.
25
+ 2. Place new samples from the new_samples_vcf onto the global MAT.
26
+
27
+ Args:
28
+ global_tree: Path to the existing phylogenetic tree (Newick format).
29
+ global_vcf: Path to the VCF file containing variants for the global tree samples.
30
+ new_samples_vcf: Path to the VCF file containing variants for the new samples to place.
31
+ build_dir: Directory for intermediate files from the first UShER invocation.
32
+ place_dir: Directory for intermediate files from the second UShER invocation.
33
+ global_pb: Output path for the global mutation-annotated tree (protobuf format).
34
+ placed_pb: Output path for the placed mutation-annotated tree (protobuf format).
35
+
36
+ Returns:
37
+ A dictionary with metadata about the placement, including the paths of
38
+ the output files and the final tree location.
39
+ """
40
+ # Create output directories
41
+ build_dir_path = Path(build_dir)
42
+ place_dir_path = Path(place_dir)
43
+ build_dir_path.mkdir(parents=True, exist_ok=True)
44
+ place_dir_path.mkdir(parents=True, exist_ok=True)
45
+
46
+ # Ensure parent directories for output files exist
47
+ global_pb_path = Path(global_pb)
48
+ placed_pb_path = Path(placed_pb)
49
+ global_pb_path.parent.mkdir(parents=True, exist_ok=True)
50
+ placed_pb_path.parent.mkdir(parents=True, exist_ok=True)
51
+
52
+ # Step 1: Build the global mutation-annotated tree
53
+ cmd1 = [
54
+ "usher",
55
+ "-t", global_tree,
56
+ "-v", global_vcf,
57
+ "-o", global_pb,
58
+ "-d", build_dir
59
+ ]
60
+
61
+ try:
62
+ result1 = subprocess.run(
63
+ cmd1,
64
+ capture_output=True,
65
+ text=True,
66
+ check=False
67
+ )
68
+ except FileNotFoundError:
69
+ return {
70
+ "success": False,
71
+ "error": "usher executable not found in PATH",
72
+ "step": 1
73
+ }
74
+
75
+ if result1.returncode != 0:
76
+ return {
77
+ "success": False,
78
+ "error": f"UShER step 1 failed with exit code {result1.returncode}",
79
+ "stderr": result1.stderr,
80
+ "stdout": result1.stdout,
81
+ "step": 1
82
+ }
83
+
84
+ # Step 2: Place new samples onto the global tree
85
+ cmd2 = [
86
+ "usher",
87
+ "-i", global_pb,
88
+ "-v", new_samples_vcf,
89
+ "-o", placed_pb,
90
+ "-d", place_dir
91
+ ]
92
+
93
+ try:
94
+ result2 = subprocess.run(
95
+ cmd2,
96
+ capture_output=True,
97
+ text=True,
98
+ check=False
99
+ )
100
+ except FileNotFoundError:
101
+ return {
102
+ "success": False,
103
+ "error": "usher executable not found in PATH",
104
+ "step": 2
105
+ }
106
+
107
+ if result2.returncode != 0:
108
+ return {
109
+ "success": False,
110
+ "error": f"UShER step 2 failed with exit code {result2.returncode}",
111
+ "stderr": result2.stderr,
112
+ "stdout": result2.stdout,
113
+ "step": 2
114
+ }
115
+
116
+ # Determine the final tree path (derived inside place_dir)
117
+ # UShER typically writes the final tree as "final-tree.nwk" in the output directory
118
+ final_tree_candidates = [
119
+ place_dir_path / "final-tree.nwk",
120
+ place_dir_path / "final_tree.nwk",
121
+ place_dir_path / "final_tree.nh",
122
+ place_dir_path / "final-tree.nh"
123
+ ]
124
+ final_tree = None
125
+ for candidate in final_tree_candidates:
126
+ if candidate.exists():
127
+ final_tree = str(candidate)
128
+ break
129
+
130
+ if final_tree is None:
131
+ # If no standard name found, look for any .nwk or .nh file in place_dir
132
+ for ext in ["*.nwk", "*.nh", "*.newick"]:
133
+ matches = list(place_dir_path.glob(ext))
134
+ if matches:
135
+ final_tree = str(matches[0])
136
+ break
137
+
138
+ return {
139
+ "success": True,
140
+ "global_pb": global_pb,
141
+ "placed_pb": placed_pb,
142
+ "final_tree": final_tree,
143
+ "build_dir": build_dir,
144
+ "place_dir": place_dir,
145
+ "step1_stdout": result1.stdout,
146
+ "step1_stderr": result1.stderr,
147
+ "step2_stdout": result2.stdout,
148
+ "step2_stderr": result2.stderr
149
+ }
150
+
151
+ if __name__ == "__main__":
152
+ mcp.run()
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/crispresso2_amplicon_analysis_dev_server.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+ from mcp.server.fastmcp import FastMCP
8
+
9
+ mcp = FastMCP('amplicon_analysis')
10
+ CONTRACT_METADATA = {'arguments': [{'description': 'FASTQ file with forward reads', 'flag': '--fastq_r1', 'kind': 'option', 'name': 'fastq_r1', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'File containing amplicon sequence; contents are read and passed via --amplicon_seq', 'flag': None, 'kind': 'option', 'name': 'amplicon_file', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Sample name for output labeling', 'flag': '--name', 'kind': 'option', 'name': 'sample_name', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'string'}, {'description': 'Directory for output files', 'flag': '--output_folder', 'kind': 'option', 'name': 'output_root', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}], 'execution_plan': {'steps': [{'command': ['CRISPResso', '--fastq_r1', '{fastq_r1}', '--amplicon_seq', {'file_contents': 'amplicon_file', 'strip': True}, '--name', '{sample_name}', '--output_folder', '{output_root}', '--suppress_report', '--suppress_plots']}]}, 'outputs': [{'artifact_type': 'directory', 'assertions': [{'name': 'created', 'status': 'declared'}], 'binding': 'output_root', 'name': 'output_root'}]}
11
+
12
+ def _append_value(command: list[str], flag: str | None, value) -> None:
13
+ if value is None:
14
+ return
15
+ if isinstance(value, bool):
16
+ if value and flag:
17
+ command.append(flag)
18
+ return
19
+ values = value if isinstance(value, list) else [value]
20
+ for item in values:
21
+ if flag:
22
+ command.append(flag)
23
+ command.append(str(item))
24
+
25
+ @mcp.tool()
26
+ def amplicon_analysis(fastq_r1: str, amplicon_file: str, sample_name: str, output_root: str) -> dict:
27
+ """Analyze amplicon sequencing data with CRISPResso"""
28
+ if output_root:
29
+ Path(output_root).mkdir(parents=True, exist_ok=True)
30
+ step_results = []
31
+ command_0 = ['CRISPResso', '--fastq_r1', str(fastq_r1), '--amplicon_seq', Path(amplicon_file).read_text(encoding='utf-8').strip(), '--name', str(sample_name), '--output_folder', str(output_root), '--suppress_report', '--suppress_plots']
32
+ env_0 = os.environ.copy()
33
+ completed_0 = subprocess.run(command_0, cwd=None, env=env_0, text=True, capture_output=True)
34
+ if completed_0.returncode != 0:
35
+ raise RuntimeError(f'command failed ({completed_0.returncode}): {completed_0.stderr[-4000:]}')
36
+ step_results.append({'command': command_0, 'returncode': completed_0.returncode, 'stdout': completed_0.stdout[-4000:], 'stderr': completed_0.stderr[-4000:]})
37
+ return {'steps': step_results, 'returncode': 0}
38
+
39
+ if __name__ == '__main__':
40
+ mcp.run(transport='stdio')
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/delly_short_read_sv_dev_server.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+ from mcp.server.fastmcp import FastMCP
8
+
9
+ mcp = FastMCP('short_read_sv')
10
+ CONTRACT_METADATA = {'arguments': [{'description': 'Reference genome FASTA file.', 'flag': '-g', 'kind': 'option', 'name': 'reference_fasta', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Input BAM file.', 'flag': None, 'kind': 'positional', 'name': 'input_bam', 'pass_to_cli': True, 'position': 0, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Output BCF file.', 'flag': '-o', 'kind': 'option', 'name': 'output_bcf', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'default': 'ALL', 'description': 'Structural variant type (evaluation metadata).', 'flag': None, 'kind': 'option', 'name': 'svtype', 'position': None, 'repeat': False, 'required': False, 'value_type': 'string'}, {'default': 4, 'description': 'Number of threads (evaluation metadata).', 'flag': None, 'kind': 'option', 'name': 'threads', 'position': None, 'repeat': False, 'required': False, 'value_type': 'integer'}], 'execution_plan': {'steps': [{'command': ['delly', 'sr', '-g', '{reference_fasta}', '-o', '{output_bcf}', '{input_bam}']}]}, 'outputs': [{'artifact_type': 'file', 'assertions': [{'description': 'Output BCF file is created.', 'name': 'created', 'status': 'declared'}], 'binding': 'output_bcf', 'name': 'output_bcf'}]}
11
+
12
+ def _append_value(command: list[str], flag: str | None, value) -> None:
13
+ if value is None:
14
+ return
15
+ if isinstance(value, bool):
16
+ if value and flag:
17
+ command.append(flag)
18
+ return
19
+ values = value if isinstance(value, list) else [value]
20
+ for item in values:
21
+ if flag:
22
+ command.append(flag)
23
+ command.append(str(item))
24
+
25
+ @mcp.tool()
26
+ def short_read_sv(reference_fasta: str, input_bam: str, output_bcf: str, svtype: str = 'ALL', threads: int = 4) -> dict:
27
+ """Call short-read structural variants using Delly's sr subcommand."""
28
+ if output_bcf:
29
+ Path(output_bcf).parent.mkdir(parents=True, exist_ok=True)
30
+ step_results = []
31
+ command_0 = ['delly', 'sr', '-g', str(reference_fasta), '-o', str(output_bcf), str(input_bam)]
32
+ env_0 = os.environ.copy()
33
+ completed_0 = subprocess.run(command_0, cwd=None, env=env_0, text=True, capture_output=True)
34
+ if completed_0.returncode != 0:
35
+ raise RuntimeError(f'command failed ({completed_0.returncode}): {completed_0.stderr[-4000:]}')
36
+ step_results.append({'command': command_0, 'returncode': completed_0.returncode, 'stdout': completed_0.stdout[-4000:], 'stderr': completed_0.stderr[-4000:]})
37
+ return {'steps': step_results, 'returncode': 0}
38
+
39
+ if __name__ == '__main__':
40
+ mcp.run(transport='stdio')
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/sambamba_sort_and_index_dev_server.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+ from mcp.server.fastmcp import FastMCP
8
+
9
+ mcp = FastMCP('sort_and_index')
10
+ CONTRACT_METADATA = {'arguments': [{'description': 'Input BAM file to sort.', 'flag': None, 'kind': 'positional', 'name': 'input_bam', 'pass_to_cli': True, 'position': 0, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Output sorted BAM file.', 'flag': '-o', 'kind': 'option', 'name': 'output_bam', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Path to write flagstat summary; captured from stdout of flagstat command.', 'flag': None, 'kind': 'option', 'name': 'summary', 'pass_to_cli': False, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}], 'execution_plan': {'steps': [{'command': ['sambamba', 'sort', '-o', '{output_bam}', '{input_bam}']}, {'command': ['sambamba', 'index', '{output_bam}']}, {'capture_stdout_to': 'summary', 'command': ['sambamba', 'flagstat', '{output_bam}']}]}, 'outputs': [{'artifact_type': 'bam', 'assertions': [], 'binding': 'output_bam', 'name': 'output_bam'}, {'artifact_type': 'bai', 'assertions': [], 'binding': 'output_bam', 'name': 'output_bai'}, {'artifact_type': 'text', 'assertions': [], 'binding': 'summary', 'name': 'summary'}]}
11
+
12
+ def _append_value(command: list[str], flag: str | None, value) -> None:
13
+ if value is None:
14
+ return
15
+ if isinstance(value, bool):
16
+ if value and flag:
17
+ command.append(flag)
18
+ return
19
+ values = value if isinstance(value, list) else [value]
20
+ for item in values:
21
+ if flag:
22
+ command.append(flag)
23
+ command.append(str(item))
24
+
25
+ @mcp.tool()
26
+ def sort_and_index(input_bam: str, output_bam: str, summary: str) -> dict:
27
+ """Sort BAM file, then index it, and compute flagstat summary."""
28
+ if output_bam:
29
+ Path(output_bam).parent.mkdir(parents=True, exist_ok=True)
30
+ if output_bam:
31
+ Path(output_bam).parent.mkdir(parents=True, exist_ok=True)
32
+ if summary:
33
+ Path(summary).parent.mkdir(parents=True, exist_ok=True)
34
+ step_results = []
35
+ command_0 = ['sambamba', 'sort', '-o', str(output_bam), str(input_bam)]
36
+ env_0 = os.environ.copy()
37
+ completed_0 = subprocess.run(command_0, cwd=None, env=env_0, text=True, capture_output=True)
38
+ if completed_0.returncode != 0:
39
+ raise RuntimeError(f'command failed ({completed_0.returncode}): {completed_0.stderr[-4000:]}')
40
+ step_results.append({'command': command_0, 'returncode': completed_0.returncode, 'stdout': completed_0.stdout[-4000:], 'stderr': completed_0.stderr[-4000:]})
41
+ command_1 = ['sambamba', 'index', str(output_bam)]
42
+ env_1 = os.environ.copy()
43
+ completed_1 = subprocess.run(command_1, cwd=None, env=env_1, text=True, capture_output=True)
44
+ if completed_1.returncode != 0:
45
+ raise RuntimeError(f'command failed ({completed_1.returncode}): {completed_1.stderr[-4000:]}')
46
+ step_results.append({'command': command_1, 'returncode': completed_1.returncode, 'stdout': completed_1.stdout[-4000:], 'stderr': completed_1.stderr[-4000:]})
47
+ command_2 = ['sambamba', 'flagstat', str(output_bam)]
48
+ env_2 = os.environ.copy()
49
+ completed_2 = subprocess.run(command_2, cwd=None, env=env_2, text=True, capture_output=True)
50
+ if completed_2.returncode != 0:
51
+ raise RuntimeError(f'command failed ({completed_2.returncode}): {completed_2.stderr[-4000:]}')
52
+ Path(summary).write_text(completed_2.stdout, encoding='utf-8')
53
+ step_results.append({'command': command_2, 'returncode': completed_2.returncode, 'stdout': completed_2.stdout[-4000:], 'stderr': completed_2.stderr[-4000:]})
54
+ return {'steps': step_results, 'returncode': 0}
55
+
56
+ if __name__ == '__main__':
57
+ mcp.run(transport='stdio')
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/t_coffee_protein_msa_dev_server.py ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+ from mcp.server.fastmcp import FastMCP
8
+
9
+ mcp = FastMCP('protein_msa')
10
+ CONTRACT_METADATA = {'arguments': [{'description': 'Input FASTA file containing protein sequences.', 'flag': None, 'kind': 'positional', 'name': 'input_fasta', 'pass_to_cli': True, 'position': 0, 'repeat': False, 'required': True, 'value_type': 'path'}, {'default': 'quickaln', 'description': 'Alignment mode (e.g., quickaln).', 'flag': '-mode', 'kind': 'option', 'name': 'mode', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': False, 'value_type': 'string'}, {'default': 'fasta_aln', 'description': 'Output alignment format (e.g., fasta_aln).', 'flag': '-output', 'kind': 'option', 'name': 'output_format', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': False, 'value_type': 'string'}, {'description': 'Path to write the output alignment.', 'flag': '-outfile', 'kind': 'option', 'name': 'output_fasta', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}], 'execution_plan': {'steps': [{'command': ['./t_coffee', '{input_fasta}', '-mode', '{mode}', '-output', '{output_format}', '-outfile', '{output_fasta}'], 'cwd': '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/bin', 'environment': {'EMAIL_4_TCOFFEE': 'username@example.org', 'MAFFT_BINARIES': '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/plugins/linux', 'PERL5LIB': '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/perl/lib/perl5', 'PLUGINS_4_TCOFFEE': '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/plugins/linux'}, 'prepend_path': ['/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/bin', '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/plugins/linux']}]}, 'outputs': [{'artifact_type': 'fasta', 'assertions': [{'description': 'Output file should be created.', 'name': 'exists', 'status': 'inferred'}, {'description': 'Output file should not be empty.', 'name': 'non_empty', 'status': 'inferred'}], 'binding': 'output_fasta', 'name': 'output_fasta'}]}
11
+
12
+ def _append_value(command: list[str], flag: str | None, value) -> None:
13
+ if value is None:
14
+ return
15
+ if isinstance(value, bool):
16
+ if value and flag:
17
+ command.append(flag)
18
+ return
19
+ values = value if isinstance(value, list) else [value]
20
+ for item in values:
21
+ if flag:
22
+ command.append(flag)
23
+ command.append(str(item))
24
+
25
+ @mcp.tool()
26
+ def protein_msa(input_fasta: str, output_fasta: str, mode: str = 'quickaln', output_format: str = 'fasta_aln') -> dict:
27
+ """Multiple sequence alignment of protein sequences using T-Coffee."""
28
+ if output_fasta:
29
+ Path(output_fasta).parent.mkdir(parents=True, exist_ok=True)
30
+ step_results = []
31
+ command_0 = ['./t_coffee', str(input_fasta), '-mode', str(mode), '-output', str(output_format), '-outfile', str(output_fasta)]
32
+ env_0 = os.environ.copy()
33
+ env_0['PATH'] = '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/bin:/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/plugins/linux:' + env_0.get('PATH', '')
34
+ env_0['PLUGINS_4_TCOFFEE'] = '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/plugins/linux'
35
+ env_0['MAFFT_BINARIES'] = '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/plugins/linux'
36
+ env_0['PERL5LIB'] = '/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/perl/lib/perl5'
37
+ env_0['EMAIL_4_TCOFFEE'] = 'username@example.org'
38
+ completed_0 = subprocess.run(command_0, cwd='/225040511/miniconda3/envs/experiment1_pinned/t_coffee-11.0.8-py36hea885bf_8/lib/t_coffee-11.0.8/bin', env=env_0, text=True, capture_output=True)
39
+ if completed_0.returncode != 0:
40
+ raise RuntimeError(f'command failed ({completed_0.returncode}): {completed_0.stderr[-4000:]}')
41
+ step_results.append({'command': command_0, 'returncode': completed_0.returncode, 'stdout': completed_0.stdout[-4000:], 'stderr': completed_0.stderr[-4000:]})
42
+ return {'steps': step_results, 'returncode': 0}
43
+
44
+ if __name__ == '__main__':
45
+ mcp.run(transport='stdio')
Biomanus-V2/Experiment1/runs/remaining_five_v4_flash_20260824/generated/ir_template/usher_phylogenetic_placement_dev_server.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+ from mcp.server.fastmcp import FastMCP
8
+
9
+ mcp = FastMCP('phylogenetic_placement')
10
+ CONTRACT_METADATA = {'arguments': [{'description': 'Input global tree in Newick format.', 'flag': '-t', 'kind': 'option', 'name': 'global_tree', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Input VCF file for the global samples.', 'flag': '-v', 'kind': 'option', 'name': 'global_vcf', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Input VCF file for the new samples to be placed.', 'flag': '-v', 'kind': 'option', 'name': 'new_samples_vcf', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Directory for intermediate files from the first UShER invocation.', 'flag': '-d', 'kind': 'option', 'name': 'build_dir', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Directory for output files from the second UShER invocation.', 'flag': '-d', 'kind': 'option', 'name': 'place_dir', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Output protobuf file from the first UShER invocation (also input to the second).', 'flag': '-o', 'kind': 'option', 'name': 'global_pb', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Output protobuf file from the second UShER invocation.', 'flag': '-o', 'kind': 'option', 'name': 'placed_pb', 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}], 'execution_plan': {'steps': [{'command': ['usher', '-t', '{global_tree}', '-v', '{global_vcf}', '-o', '{global_pb}', '-d', '{build_dir}'], 'make_directories': ['build_dir', 'place_dir']}, {'command': ['usher', '-i', '{global_pb}', '-v', '{new_samples_vcf}', '-o', '{placed_pb}', '-d', '{place_dir}']}]}, 'outputs': [{'artifact_type': 'protobuf', 'assertions': [{'name': 'exists', 'status': 'declared'}, {'name': 'writable', 'status': 'declared'}], 'binding': 'global_pb', 'name': 'global_pb'}, {'artifact_type': 'protobuf', 'assertions': [{'name': 'exists', 'status': 'declared'}, {'name': 'writable', 'status': 'declared'}], 'binding': 'placed_pb', 'name': 'placed_pb'}]}
11
+
12
+ def _append_value(command: list[str], flag: str | None, value) -> None:
13
+ if value is None:
14
+ return
15
+ if isinstance(value, bool):
16
+ if value and flag:
17
+ command.append(flag)
18
+ return
19
+ values = value if isinstance(value, list) else [value]
20
+ for item in values:
21
+ if flag:
22
+ command.append(flag)
23
+ command.append(str(item))
24
+
25
+ @mcp.tool()
26
+ def phylogenetic_placement(global_tree: str, global_vcf: str, new_samples_vcf: str, build_dir: str, place_dir: str, global_pb: str, placed_pb: str) -> dict:
27
+ """Place new samples onto an existing phylogeny using UShER in two stages."""
28
+ if global_pb:
29
+ Path(global_pb).parent.mkdir(parents=True, exist_ok=True)
30
+ if placed_pb:
31
+ Path(placed_pb).parent.mkdir(parents=True, exist_ok=True)
32
+ step_results = []
33
+ Path(build_dir).mkdir(parents=True, exist_ok=True)
34
+ Path(place_dir).mkdir(parents=True, exist_ok=True)
35
+ command_0 = ['usher', '-t', str(global_tree), '-v', str(global_vcf), '-o', str(global_pb), '-d', str(build_dir)]
36
+ env_0 = os.environ.copy()
37
+ completed_0 = subprocess.run(command_0, cwd=None, env=env_0, text=True, capture_output=True)
38
+ if completed_0.returncode != 0:
39
+ raise RuntimeError(f'command failed ({completed_0.returncode}): {completed_0.stderr[-4000:]}')
40
+ step_results.append({'command': command_0, 'returncode': completed_0.returncode, 'stdout': completed_0.stdout[-4000:], 'stderr': completed_0.stderr[-4000:]})
41
+ command_1 = ['usher', '-i', str(global_pb), '-v', str(new_samples_vcf), '-o', str(placed_pb), '-d', str(place_dir)]
42
+ env_1 = os.environ.copy()
43
+ completed_1 = subprocess.run(command_1, cwd=None, env=env_1, text=True, capture_output=True)
44
+ if completed_1.returncode != 0:
45
+ raise RuntimeError(f'command failed ({completed_1.returncode}): {completed_1.stderr[-4000:]}')
46
+ step_results.append({'command': command_1, 'returncode': completed_1.returncode, 'stdout': completed_1.stdout[-4000:], 'stderr': completed_1.stderr[-4000:]})
47
+ return {'steps': step_results, 'returncode': 0}
48
+
49
+ if __name__ == '__main__':
50
+ mcp.run(transport='stdio')
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/compiled_ir/rseqc_read_distribution_dev.json ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ir_version": "0.1",
3
+ "tool": {
4
+ "package": "rseqc",
5
+ "version": "5.0.3",
6
+ "build": "py310h7c593f9_3",
7
+ "executable": "read_distribution.py",
8
+ "subcommand": null,
9
+ "environment": "R"
10
+ },
11
+ "endpoint": {
12
+ "name": "read_distribution",
13
+ "description": "Calculates the distribution of reads over gene features (e.g., CDS, 5'UTR, 3'UTR, introns, intergenic regions) from a BAM file and a reference gene model in BED format."
14
+ },
15
+ "arguments": [
16
+ {
17
+ "name": "input_bam",
18
+ "flag": "-i",
19
+ "kind": "option",
20
+ "value_type": "path",
21
+ "required": true,
22
+ "position": null,
23
+ "repeat": false,
24
+ "description": "Input BAM file (sorted and indexed).",
25
+ "pass_to_cli": true
26
+ },
27
+ {
28
+ "name": "gene_model",
29
+ "flag": "-r",
30
+ "kind": "option",
31
+ "value_type": "path",
32
+ "required": true,
33
+ "position": null,
34
+ "repeat": false,
35
+ "description": "Reference gene model in BED format.",
36
+ "pass_to_cli": true
37
+ },
38
+ {
39
+ "name": "output_table",
40
+ "flag": null,
41
+ "kind": "option",
42
+ "value_type": "path",
43
+ "required": true,
44
+ "position": null,
45
+ "repeat": false,
46
+ "description": "Output table (written to stdout).",
47
+ "pass_to_cli": false
48
+ }
49
+ ],
50
+ "inputs": [
51
+ {
52
+ "name": "input_bam",
53
+ "artifact_type": "bam",
54
+ "binding": "input_bam",
55
+ "assertions": [
56
+ {
57
+ "name": "sorted",
58
+ "status": "inferred",
59
+ "description": "BAM file must be sorted and indexed."
60
+ },
61
+ {
62
+ "name": "indexed",
63
+ "status": "inferred",
64
+ "description": "BAM file must be indexed; .bai file must be present."
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "name": "gene_model",
70
+ "artifact_type": "bed",
71
+ "binding": "gene_model",
72
+ "assertions": [
73
+ {
74
+ "name": "format",
75
+ "status": "inferred",
76
+ "description": "Reference gene model in BED format."
77
+ }
78
+ ]
79
+ }
80
+ ],
81
+ "outputs": [
82
+ {
83
+ "name": "output_table",
84
+ "artifact_type": "text",
85
+ "binding": "output_table",
86
+ "assertions": [
87
+ {
88
+ "name": "content",
89
+ "status": "inferred",
90
+ "description": "Read distribution table."
91
+ }
92
+ ],
93
+ "capture": "stdout"
94
+ }
95
+ ],
96
+ "validators": [
97
+ {
98
+ "name": "bam_index_exists",
99
+ "artifact_type": "bam",
100
+ "binding": "input_bam",
101
+ "assertions": [
102
+ {
103
+ "name": "index_present",
104
+ "status": "inferred",
105
+ "description": "The .bai file must exist alongside the BAM file."
106
+ }
107
+ ]
108
+ }
109
+ ],
110
+ "evidence": [
111
+ {
112
+ "id": "ev1",
113
+ "field": "endpoint.name",
114
+ "source_type": "method-neutral target interface",
115
+ "locator": "target interface",
116
+ "excerpt": "read_distribution",
117
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
118
+ },
119
+ {
120
+ "id": "ev2",
121
+ "field": "arguments[0].name",
122
+ "source_type": "method-neutral target interface",
123
+ "locator": "target interface",
124
+ "excerpt": "input_bam",
125
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
126
+ },
127
+ {
128
+ "id": "ev3",
129
+ "field": "arguments[0].flag",
130
+ "source_type": "method-neutral target interface",
131
+ "locator": "target interface",
132
+ "excerpt": "-i",
133
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
134
+ },
135
+ {
136
+ "id": "ev4",
137
+ "field": "arguments[1].name",
138
+ "source_type": "method-neutral target interface",
139
+ "locator": "target interface",
140
+ "excerpt": "gene_model",
141
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
142
+ },
143
+ {
144
+ "id": "ev5",
145
+ "field": "arguments[1].flag",
146
+ "source_type": "method-neutral target interface",
147
+ "locator": "target interface",
148
+ "excerpt": "-r",
149
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
150
+ },
151
+ {
152
+ "id": "ev6",
153
+ "field": "arguments[2].name",
154
+ "source_type": "method-neutral target interface",
155
+ "locator": "target interface",
156
+ "excerpt": "output_table",
157
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
158
+ },
159
+ {
160
+ "id": "ev7",
161
+ "field": "arguments[2].native_binding",
162
+ "source_type": "method-neutral target interface",
163
+ "locator": "target interface",
164
+ "excerpt": "stdout",
165
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
166
+ },
167
+ {
168
+ "id": "ev8",
169
+ "field": "notes",
170
+ "source_type": "method-neutral target interface",
171
+ "locator": "target interface",
172
+ "excerpt": "input_bai is a copied sidecar, not an endpoint argument.",
173
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
174
+ }
175
+ ]
176
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/compiled_ir_workflow/rseqc_read_distribution_dev.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ir_version": "0.1",
3
+ "tool": {
4
+ "package": "rseqc",
5
+ "version": "5.0.3",
6
+ "build": "py310h7c593f9_3",
7
+ "executable": "read_distribution.py",
8
+ "subcommand": null,
9
+ "environment": "R"
10
+ },
11
+ "endpoint": {
12
+ "name": "read_distribution",
13
+ "description": "Calculates the distribution of reads over gene features (e.g., CDS, 5'UTR, 3'UTR, introns, intergenic regions) from a BAM file and a reference gene model in BED format."
14
+ },
15
+ "arguments": [
16
+ {
17
+ "name": "input_bam",
18
+ "flag": "-i",
19
+ "kind": "option",
20
+ "value_type": "path",
21
+ "required": true,
22
+ "position": null,
23
+ "repeat": false,
24
+ "description": "Input BAM file (sorted and indexed).",
25
+ "pass_to_cli": true
26
+ },
27
+ {
28
+ "name": "gene_model",
29
+ "flag": "-r",
30
+ "kind": "option",
31
+ "value_type": "path",
32
+ "required": true,
33
+ "position": null,
34
+ "repeat": false,
35
+ "description": "Reference gene model in BED format.",
36
+ "pass_to_cli": true
37
+ },
38
+ {
39
+ "name": "output_table",
40
+ "flag": null,
41
+ "kind": "option",
42
+ "value_type": "path",
43
+ "required": true,
44
+ "position": null,
45
+ "repeat": false,
46
+ "description": "Output table (written to stdout).",
47
+ "pass_to_cli": false
48
+ }
49
+ ],
50
+ "inputs": [
51
+ {
52
+ "name": "input_bam",
53
+ "artifact_type": "bam",
54
+ "binding": "input_bam",
55
+ "assertions": [
56
+ {
57
+ "name": "sorted",
58
+ "status": "inferred",
59
+ "description": "BAM file must be sorted and indexed."
60
+ },
61
+ {
62
+ "name": "indexed",
63
+ "status": "inferred",
64
+ "description": "BAM file must be indexed; .bai file must be present."
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "name": "gene_model",
70
+ "artifact_type": "bed",
71
+ "binding": "gene_model",
72
+ "assertions": [
73
+ {
74
+ "name": "format",
75
+ "status": "inferred",
76
+ "description": "Reference gene model in BED format."
77
+ }
78
+ ]
79
+ }
80
+ ],
81
+ "outputs": [
82
+ {
83
+ "name": "output_table",
84
+ "artifact_type": "text",
85
+ "binding": "output_table",
86
+ "assertions": [
87
+ {
88
+ "name": "content",
89
+ "status": "inferred",
90
+ "description": "Read distribution table."
91
+ }
92
+ ],
93
+ "capture": "stdout"
94
+ }
95
+ ],
96
+ "validators": [
97
+ {
98
+ "name": "bam_index_exists",
99
+ "artifact_type": "bam",
100
+ "binding": "input_bam",
101
+ "assertions": [
102
+ {
103
+ "name": "index_present",
104
+ "status": "inferred",
105
+ "description": "The .bai file must exist alongside the BAM file."
106
+ }
107
+ ]
108
+ }
109
+ ],
110
+ "evidence": [
111
+ {
112
+ "id": "ev1",
113
+ "field": "endpoint.name",
114
+ "source_type": "method-neutral target interface",
115
+ "locator": "target interface",
116
+ "excerpt": "read_distribution",
117
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
118
+ },
119
+ {
120
+ "id": "ev2",
121
+ "field": "arguments[0].name",
122
+ "source_type": "method-neutral target interface",
123
+ "locator": "target interface",
124
+ "excerpt": "input_bam",
125
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
126
+ },
127
+ {
128
+ "id": "ev3",
129
+ "field": "arguments[0].flag",
130
+ "source_type": "method-neutral target interface",
131
+ "locator": "target interface",
132
+ "excerpt": "-i",
133
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
134
+ },
135
+ {
136
+ "id": "ev4",
137
+ "field": "arguments[1].name",
138
+ "source_type": "method-neutral target interface",
139
+ "locator": "target interface",
140
+ "excerpt": "gene_model",
141
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
142
+ },
143
+ {
144
+ "id": "ev5",
145
+ "field": "arguments[1].flag",
146
+ "source_type": "method-neutral target interface",
147
+ "locator": "target interface",
148
+ "excerpt": "-r",
149
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
150
+ },
151
+ {
152
+ "id": "ev6",
153
+ "field": "arguments[2].name",
154
+ "source_type": "method-neutral target interface",
155
+ "locator": "target interface",
156
+ "excerpt": "output_table",
157
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
158
+ },
159
+ {
160
+ "id": "ev7",
161
+ "field": "arguments[2].native_binding",
162
+ "source_type": "method-neutral target interface",
163
+ "locator": "target interface",
164
+ "excerpt": "stdout",
165
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
166
+ },
167
+ {
168
+ "id": "ev8",
169
+ "field": "notes",
170
+ "source_type": "method-neutral target interface",
171
+ "locator": "target interface",
172
+ "excerpt": "input_bai is a copied sidecar, not an endpoint argument.",
173
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
174
+ }
175
+ ],
176
+ "execution_plan": {
177
+ "steps": [
178
+ {
179
+ "command": [
180
+ "read_distribution.py",
181
+ "-i",
182
+ "{input_bam}",
183
+ "-r",
184
+ "{gene_model}"
185
+ ],
186
+ "capture_stdout_to": "output_table"
187
+ }
188
+ ]
189
+ }
190
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/batch_summary.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "contract_ir",
3
+ "backend": {
4
+ "provider": "deepseek",
5
+ "model": "deepseek-v4-flash",
6
+ "base_url": "https://api.deepseek.com/v1",
7
+ "api_key_env": "DEEPSEEK_API_KEY",
8
+ "thinking": "disabled",
9
+ "temperature": 0.1,
10
+ "max_output_tokens": 16384
11
+ },
12
+ "total": 1,
13
+ "ok": 1,
14
+ "failed": 0,
15
+ "rows": [
16
+ {
17
+ "item": "data/items/development_approved/rseqc.json",
18
+ "output": "runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json",
19
+ "status": "ok",
20
+ "returncode": 0,
21
+ "stdout": "{\"output\": \"runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json\", \"model\": \"deepseek-v4-flash\", \"parse_errors\": [], \"usage\": {\"prompt_tokens\": 25614, \"completion_tokens\": 1388, \"total_tokens\": 27002, \"prompt_tokens_details\": {\"cached_tokens\": 0}, \"prompt_cache_hit_tokens\": 0, \"prompt_cache_miss_tokens\": 25614}}\n",
22
+ "stderr": ""
23
+ }
24
+ ]
25
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ir_version": "0.1",
3
+ "tool": {
4
+ "package": "rseqc",
5
+ "version": "5.0.3",
6
+ "build": "py310h7c593f9_3",
7
+ "executable": "read_distribution.py",
8
+ "subcommand": null,
9
+ "environment": "R"
10
+ },
11
+ "endpoint": {
12
+ "name": "read_distribution",
13
+ "description": "Calculates the distribution of reads over gene features (e.g., CDS, 5'UTR, 3'UTR, introns, intergenic regions) from a BAM file and a reference gene model in BED format."
14
+ },
15
+ "arguments": [
16
+ {
17
+ "name": "input_bam",
18
+ "flag": "-i",
19
+ "kind": "option",
20
+ "value_type": "path",
21
+ "required": true,
22
+ "position": null,
23
+ "repeat": false,
24
+ "description": "Input BAM file (sorted and indexed)."
25
+ },
26
+ {
27
+ "name": "gene_model",
28
+ "flag": "-r",
29
+ "kind": "option",
30
+ "value_type": "path",
31
+ "required": true,
32
+ "position": null,
33
+ "repeat": false,
34
+ "description": "Reference gene model in BED format."
35
+ },
36
+ {
37
+ "name": "output_table",
38
+ "flag": null,
39
+ "kind": "positional",
40
+ "value_type": "path",
41
+ "required": true,
42
+ "position": 0,
43
+ "repeat": false,
44
+ "description": "Output table (written to stdout)."
45
+ }
46
+ ],
47
+ "inputs": [
48
+ {
49
+ "name": "input_bam",
50
+ "artifact_type": "bam",
51
+ "binding": "input_bam",
52
+ "assertions": [
53
+ {
54
+ "name": "sorted",
55
+ "status": "inferred",
56
+ "description": "BAM file must be sorted and indexed."
57
+ },
58
+ {
59
+ "name": "indexed",
60
+ "status": "inferred",
61
+ "description": "BAM file must be indexed; .bai file must be present."
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "gene_model",
67
+ "artifact_type": "bed",
68
+ "binding": "gene_model",
69
+ "assertions": [
70
+ {
71
+ "name": "format",
72
+ "status": "inferred",
73
+ "description": "Reference gene model in BED format."
74
+ }
75
+ ]
76
+ }
77
+ ],
78
+ "outputs": [
79
+ {
80
+ "name": "output_table",
81
+ "artifact_type": "text",
82
+ "binding": "output_table",
83
+ "assertions": [
84
+ {
85
+ "name": "content",
86
+ "status": "inferred",
87
+ "description": "Read distribution table."
88
+ }
89
+ ]
90
+ }
91
+ ],
92
+ "validators": [
93
+ {
94
+ "name": "bam_index_exists",
95
+ "artifact_type": "bam",
96
+ "binding": "input_bam",
97
+ "assertions": [
98
+ {
99
+ "name": "index_present",
100
+ "status": "inferred",
101
+ "description": "The .bai file must exist alongside the BAM file."
102
+ }
103
+ ]
104
+ }
105
+ ],
106
+ "evidence": [
107
+ {
108
+ "id": "ev1",
109
+ "field": "endpoint.name",
110
+ "source_type": "method-neutral target interface",
111
+ "locator": "target interface",
112
+ "excerpt": "read_distribution",
113
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
114
+ },
115
+ {
116
+ "id": "ev2",
117
+ "field": "arguments[0].name",
118
+ "source_type": "method-neutral target interface",
119
+ "locator": "target interface",
120
+ "excerpt": "input_bam",
121
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
122
+ },
123
+ {
124
+ "id": "ev3",
125
+ "field": "arguments[0].flag",
126
+ "source_type": "method-neutral target interface",
127
+ "locator": "target interface",
128
+ "excerpt": "-i",
129
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
130
+ },
131
+ {
132
+ "id": "ev4",
133
+ "field": "arguments[1].name",
134
+ "source_type": "method-neutral target interface",
135
+ "locator": "target interface",
136
+ "excerpt": "gene_model",
137
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
138
+ },
139
+ {
140
+ "id": "ev5",
141
+ "field": "arguments[1].flag",
142
+ "source_type": "method-neutral target interface",
143
+ "locator": "target interface",
144
+ "excerpt": "-r",
145
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
146
+ },
147
+ {
148
+ "id": "ev6",
149
+ "field": "arguments[2].name",
150
+ "source_type": "method-neutral target interface",
151
+ "locator": "target interface",
152
+ "excerpt": "output_table",
153
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
154
+ },
155
+ {
156
+ "id": "ev7",
157
+ "field": "arguments[2].native_binding",
158
+ "source_type": "method-neutral target interface",
159
+ "locator": "target interface",
160
+ "excerpt": "stdout",
161
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
162
+ },
163
+ {
164
+ "id": "ev8",
165
+ "field": "notes",
166
+ "source_type": "method-neutral target interface",
167
+ "locator": "target interface",
168
+ "excerpt": "input_bai is a copied sidecar, not an endpoint argument.",
169
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
170
+ }
171
+ ]
172
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json.raw.txt ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ir_version": "0.1",
3
+ "tool": {
4
+ "package": "rseqc",
5
+ "version": "5.0.3",
6
+ "build": "py310h7c593f9_3",
7
+ "executable": "read_distribution.py",
8
+ "subcommand": null,
9
+ "environment": "R"
10
+ },
11
+ "endpoint": {
12
+ "name": "read_distribution",
13
+ "description": "Calculates the distribution of reads over gene features (e.g., CDS, 5'UTR, 3'UTR, introns, intergenic regions) from a BAM file and a reference gene model in BED format."
14
+ },
15
+ "arguments": [
16
+ {
17
+ "name": "input_bam",
18
+ "flag": "-i",
19
+ "kind": "option",
20
+ "value_type": "path",
21
+ "required": true,
22
+ "position": null,
23
+ "repeat": false,
24
+ "description": "Input BAM file (sorted and indexed)."
25
+ },
26
+ {
27
+ "name": "gene_model",
28
+ "flag": "-r",
29
+ "kind": "option",
30
+ "value_type": "path",
31
+ "required": true,
32
+ "position": null,
33
+ "repeat": false,
34
+ "description": "Reference gene model in BED format."
35
+ },
36
+ {
37
+ "name": "output_table",
38
+ "flag": null,
39
+ "kind": "positional",
40
+ "value_type": "path",
41
+ "required": true,
42
+ "position": 0,
43
+ "repeat": false,
44
+ "description": "Output table (written to stdout)."
45
+ }
46
+ ],
47
+ "inputs": [
48
+ {
49
+ "name": "input_bam",
50
+ "artifact_type": "bam",
51
+ "binding": "input_bam",
52
+ "assertions": [
53
+ {
54
+ "name": "sorted",
55
+ "status": "inferred",
56
+ "description": "BAM file must be sorted and indexed."
57
+ },
58
+ {
59
+ "name": "indexed",
60
+ "status": "inferred",
61
+ "description": "BAM file must be indexed; .bai file must be present."
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "gene_model",
67
+ "artifact_type": "bed",
68
+ "binding": "gene_model",
69
+ "assertions": [
70
+ {
71
+ "name": "format",
72
+ "status": "inferred",
73
+ "description": "Reference gene model in BED format."
74
+ }
75
+ ]
76
+ }
77
+ ],
78
+ "outputs": [
79
+ {
80
+ "name": "output_table",
81
+ "artifact_type": "text",
82
+ "binding": "output_table",
83
+ "assertions": [
84
+ {
85
+ "name": "content",
86
+ "status": "inferred",
87
+ "description": "Read distribution table."
88
+ }
89
+ ]
90
+ }
91
+ ],
92
+ "validators": [
93
+ {
94
+ "name": "bam_index_exists",
95
+ "artifact_type": "bam",
96
+ "binding": "input_bam",
97
+ "assertions": [
98
+ {
99
+ "name": "index_present",
100
+ "status": "inferred",
101
+ "description": "The .bai file must exist alongside the BAM file."
102
+ }
103
+ ]
104
+ }
105
+ ],
106
+ "evidence": [
107
+ {
108
+ "id": "ev1",
109
+ "field": "endpoint.name",
110
+ "source_type": "method-neutral target interface",
111
+ "locator": "target interface",
112
+ "excerpt": "read_distribution",
113
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
114
+ },
115
+ {
116
+ "id": "ev2",
117
+ "field": "arguments[0].name",
118
+ "source_type": "method-neutral target interface",
119
+ "locator": "target interface",
120
+ "excerpt": "input_bam",
121
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
122
+ },
123
+ {
124
+ "id": "ev3",
125
+ "field": "arguments[0].flag",
126
+ "source_type": "method-neutral target interface",
127
+ "locator": "target interface",
128
+ "excerpt": "-i",
129
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
130
+ },
131
+ {
132
+ "id": "ev4",
133
+ "field": "arguments[1].name",
134
+ "source_type": "method-neutral target interface",
135
+ "locator": "target interface",
136
+ "excerpt": "gene_model",
137
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
138
+ },
139
+ {
140
+ "id": "ev5",
141
+ "field": "arguments[1].flag",
142
+ "source_type": "method-neutral target interface",
143
+ "locator": "target interface",
144
+ "excerpt": "-r",
145
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
146
+ },
147
+ {
148
+ "id": "ev6",
149
+ "field": "arguments[2].name",
150
+ "source_type": "method-neutral target interface",
151
+ "locator": "target interface",
152
+ "excerpt": "output_table",
153
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
154
+ },
155
+ {
156
+ "id": "ev7",
157
+ "field": "arguments[2].native_binding",
158
+ "source_type": "method-neutral target interface",
159
+ "locator": "target interface",
160
+ "excerpt": "stdout",
161
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
162
+ },
163
+ {
164
+ "id": "ev8",
165
+ "field": "notes",
166
+ "source_type": "method-neutral target interface",
167
+ "locator": "target interface",
168
+ "excerpt": "input_bai is a copied sidecar, not an endpoint argument.",
169
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
170
+ }
171
+ ]
172
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json.usage.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "contract_ir",
3
+ "provider": "deepseek",
4
+ "model": "deepseek-v4-flash",
5
+ "base_url": "https://api.deepseek.com/v1",
6
+ "temperature": 0.1,
7
+ "max_output_tokens": 16384,
8
+ "thinking": "disabled",
9
+ "backend_config_sha256": "b1441f3e96893718c3b4a98090b10b8bffb0cbd24041fd433cd5352e7f65008b",
10
+ "prompt_sha256": "aeaa1f9d1af0fac8ddfd19e278a73442a6289ae25a905616b243e0e393f89d24",
11
+ "help_sha256": "106b34479479d8ad6c3feee59a0972b1801b182c3ea7ffccef2ec871e84308d4",
12
+ "elapsed_seconds": 7.030975341796875,
13
+ "usage": {
14
+ "prompt_tokens": 25614,
15
+ "completion_tokens": 1388,
16
+ "total_tokens": 27002,
17
+ "prompt_tokens_details": {
18
+ "cached_tokens": 0
19
+ },
20
+ "prompt_cache_hit_tokens": 0,
21
+ "prompt_cache_miss_tokens": 25614
22
+ },
23
+ "parse_errors": [],
24
+ "response_id": "1161cfc4-f8c3-423b-9c5e-776160641efa"
25
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir_t0_t5.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"T0": {"detail": "valid Contract IR produced", "ir_path": "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/compiled_ir/rseqc_read_distribution_dev.json", "ok": true}, "T1": {"detail": "python compilation passed", "ok": true}, "T2": {"ok": true, "probe": {"call_ok": null, "content": [], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 1.380657434463501, "ok": true, "returncode": 0, "stderr": "[08/23/26 06:25:10] INFO Processing request of type server.py:733\n ListToolsRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": null, \"content\": []}\n", "timed_out": false}}, "T3": {"ok": true, "probe": {"call_ok": true, "content": ["{\n \"command\": [\n \"read_distribution.py\",\n \"-i\",\n \"/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_alignments.bam\",\n \"-r\",\n \"/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_gene_model.bed12\"\n ],\n \"returncode\": 0,\n \"stdout\": \"Total Reads 24\\nTotal Tags 24\\nTotal Assigned Tags 24\\n=====================================================================\\nGroup Total_bases Tag_count Tags/Kb \\nCDS_Exons 200 24 119.40 \\n5'UTR_Exons 0 0 0.00 \\n3'UTR_Exons 0 0 0.00 \\nIntrons 0 0 0.00 \\nTSS_up_1kb 0 0 0.00 \\nTSS_up_5kb 0 0 0.00 \\nTSS_up_10kb 0 0 0.00 \\nTES_down_1kb 1000 0 0.00 \\nTES_down_5kb 5000 0 0.00 \\nTES_down_10kb 10000 0 0.00 \\n=====================================================================\\n\",\n \"stderr\": \"processing /tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_gene_model.bed12 ... Done\\nprocessing /tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_alignments.bam ... Finished\\n\\n\"\n}"], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 1.6410987377166748, "ok": true, "returncode": 0, "stderr": "[08/23/26 06:25:12] INFO Processing request of type server.py:733\n ListToolsRequest \n INFO Processing request of type server.py:733\n CallToolRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": true, \"content\": [\"{\\n \\\"command\\\": [\\n \\\"read_distribution.py\\\",\\n \\\"-i\\\",\\n \\\"/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_alignments.bam\\\",\\n \\\"-r\\\",\\n \\\"/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_gene_model.bed12\\\"\\n ],\\n \\\"returncode\\\": 0,\\n \\\"stdout\\\": \\\"Total Reads 24\\\\nTotal Tags 24\\\\nTotal Assigned Tags 24\\\\n=====================================================================\\\\nGroup Total_bases Tag_count Tags/Kb \\\\nCDS_Exons 200 24 119.40 \\\\n5'UTR_Exons 0 0 0.00 \\\\n3'UTR_Exons 0 0 0.00 \\\\nIntrons 0 0 0.00 \\\\nTSS_up_1kb 0 0 0.00 \\\\nTSS_up_5kb 0 0 0.00 \\\\nTSS_up_10kb 0 0 0.00 \\\\nTES_down_1kb 1000 0 0.00 \\\\nTES_down_5kb 5000 0 0.00 \\\\nTES_down_10kb 10000 0 0.00 \\\\n=====================================================================\\\\n\\\",\\n \\\"stderr\\\": \\\"processing /tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_gene_model.bed12 ... Done\\\\nprocessing /tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/second_batch_alignments.bam ... Finished\\\\n\\\\n\\\"\\n}\"]}\n", "timed_out": false}}, "T4": {"ok": true, "validators": [{"detail": "/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/rseqc/read_distribution.txt", "kind": "exists", "name": "exists", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/rseqc/read_distribution.txt", "kind": "nonempty", "name": "nonempty", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/rseqc/read_distribution.txt", "kind": "regex", "name": "assigned_tags", "ok": true, "target": "output_table"}]}, "T5": {"native_process": {"elapsed_seconds": 0.30866575241088867, "ok": true, "returncode": 0, "stderr": "processing /tmp/exp1_rseqc_read_distribution_dev_seog4foi/native/second_batch_gene_model.bed12 ... Done\nprocessing /tmp/exp1_rseqc_read_distribution_dev_seog4foi/native/second_batch_alignments.bam ... Finished\n\n", "stdout": "", "timed_out": false}, "native_validators": [{"detail": "/tmp/exp1_rseqc_read_distribution_dev_seog4foi/native/rseqc/read_distribution.txt", "kind": "exists", "name": "exists", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_seog4foi/native/rseqc/read_distribution.txt", "kind": "nonempty", "name": "nonempty", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_seog4foi/native/rseqc/read_distribution.txt", "kind": "regex", "name": "assigned_tags", "ok": true, "target": "output_table"}], "ok": true, "semantic_oracle": {"detail": "native=/tmp/exp1_rseqc_read_distribution_dev_seog4foi/native/rseqc/read_distribution.txt; mcp=/tmp/exp1_rseqc_read_distribution_dev_seog4foi/mcp/rseqc/read_distribution.txt", "kind": "normalized_text_equal", "ok": true, "target": "output_table"}}, "case_environment": "/225040511/miniconda3/envs/experiment1_pinned/rseqc-5.0.3-py310h7c593f9_3", "case_id": "rseqc_read_distribution_dev", "failure_stage": null, "method": "ir_template", "package": "rseqc", "split": "development", "version": "5.0.3"}
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir_t0_t5.pre_interface_compile.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"T0": {"detail": "valid Contract IR produced", "ir_path": "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir/rseqc_read_distribution_dev.json", "ok": true}, "T1": {"detail": "python compilation passed", "ok": true}, "T2": {"ok": true, "probe": {"call_ok": null, "content": [], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 1.3626172542572021, "ok": true, "returncode": 0, "stderr": "[08/23/26 06:22:08] INFO Processing request of type server.py:733\n ListToolsRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": null, \"content\": []}\n", "timed_out": false}}, "T3": {"ok": true, "probe": {"call_ok": true, "content": ["{\n \"command\": [\n \"read_distribution.py\",\n \"-i\",\n \"/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_alignments.bam\",\n \"-r\",\n \"/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_gene_model.bed12\",\n \"/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/rseqc/read_distribution.txt\"\n ],\n \"returncode\": 0,\n \"stdout\": \"Total Reads 24\\nTotal Tags 24\\nTotal Assigned Tags 24\\n=====================================================================\\nGroup Total_bases Tag_count Tags/Kb \\nCDS_Exons 200 24 119.40 \\n5'UTR_Exons 0 0 0.00 \\n3'UTR_Exons 0 0 0.00 \\nIntrons 0 0 0.00 \\nTSS_up_1kb 0 0 0.00 \\nTSS_up_5kb 0 0 0.00 \\nTSS_up_10kb 0 0 0.00 \\nTES_down_1kb 1000 0 0.00 \\nTES_down_5kb 5000 0 0.00 \\nTES_down_10kb 10000 0 0.00 \\n=====================================================================\\n\",\n \"stderr\": \"processing /tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_gene_model.bed12 ... Done\\nprocessing /tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_alignments.bam ... Finished\\n\\n\"\n}"], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 1.6693217754364014, "ok": true, "returncode": 0, "stderr": "[08/23/26 06:22:10] INFO Processing request of type server.py:733\n ListToolsRequest \n INFO Processing request of type server.py:733\n CallToolRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": true, \"content\": [\"{\\n \\\"command\\\": [\\n \\\"read_distribution.py\\\",\\n \\\"-i\\\",\\n \\\"/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_alignments.bam\\\",\\n \\\"-r\\\",\\n \\\"/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_gene_model.bed12\\\",\\n \\\"/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/rseqc/read_distribution.txt\\\"\\n ],\\n \\\"returncode\\\": 0,\\n \\\"stdout\\\": \\\"Total Reads 24\\\\nTotal Tags 24\\\\nTotal Assigned Tags 24\\\\n=====================================================================\\\\nGroup Total_bases Tag_count Tags/Kb \\\\nCDS_Exons 200 24 119.40 \\\\n5'UTR_Exons 0 0 0.00 \\\\n3'UTR_Exons 0 0 0.00 \\\\nIntrons 0 0 0.00 \\\\nTSS_up_1kb 0 0 0.00 \\\\nTSS_up_5kb 0 0 0.00 \\\\nTSS_up_10kb 0 0 0.00 \\\\nTES_down_1kb 1000 0 0.00 \\\\nTES_down_5kb 5000 0 0.00 \\\\nTES_down_10kb 10000 0 0.00 \\\\n=====================================================================\\\\n\\\",\\n \\\"stderr\\\": \\\"processing /tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_gene_model.bed12 ... Done\\\\nprocessing /tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/second_batch_alignments.bam ... Finished\\\\n\\\\n\\\"\\n}\"]}\n", "timed_out": false}}, "T4": {"ok": false, "validators": [{"detail": "/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/rseqc/read_distribution.txt", "kind": "exists", "name": "exists", "ok": false, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/rseqc/read_distribution.txt", "kind": "nonempty", "name": "nonempty", "ok": false, "target": "output_table"}, {"detail": "FileNotFoundError: [Errno 2] No such file or directory: '/tmp/exp1_rseqc_read_distribution_dev_y9dbw1io/mcp/rseqc/read_distribution.txt'", "kind": "regex", "name": "assigned_tags", "ok": false, "target": "output_table"}]}, "T5": {"ok": null}, "case_environment": "/225040511/miniconda3/envs/experiment1_pinned/rseqc-5.0.3-py310h7c593f9_3", "case_id": "rseqc_read_distribution_dev", "failure_stage": "T4", "method": "ir_template", "package": "rseqc", "split": "development", "version": "5.0.3"}
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/contract_ir_t0_t5.workflow_regression.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"T0": {"detail": "valid Contract IR produced", "ir_path": "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/compiled_ir_workflow/rseqc_read_distribution_dev.json", "ok": true}, "T1": {"detail": "python compilation passed", "ok": true}, "T2": {"ok": true, "probe": {"call_ok": null, "content": [], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 1.5387909412384033, "ok": true, "returncode": 0, "stderr": "[08/24/26 09:51:30] INFO Processing request of type server.py:733\n ListToolsRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": null, \"content\": []}\n", "timed_out": false}}, "T3": {"ok": true, "probe": {"call_ok": true, "content": ["{\n \"steps\": [\n {\n \"command\": [\n \"read_distribution.py\",\n \"-i\",\n \"/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_alignments.bam\",\n \"-r\",\n \"/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_gene_model.bed12\"\n ],\n \"returncode\": 0,\n \"stdout\": \"Total Reads 24\\nTotal Tags 24\\nTotal Assigned Tags 24\\n=====================================================================\\nGroup Total_bases Tag_count Tags/Kb \\nCDS_Exons 200 24 119.40 \\n5'UTR_Exons 0 0 0.00 \\n3'UTR_Exons 0 0 0.00 \\nIntrons 0 0 0.00 \\nTSS_up_1kb 0 0 0.00 \\nTSS_up_5kb 0 0 0.00 \\nTSS_up_10kb 0 0 0.00 \\nTES_down_1kb 1000 0 0.00 \\nTES_down_5kb 5000 0 0.00 \\nTES_down_10kb 10000 0 0.00 \\n=====================================================================\\n\",\n \"stderr\": \"processing /tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_gene_model.bed12 ... Done\\nprocessing /tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_alignments.bam ... Finished\\n\\n\"\n }\n ],\n \"returncode\": 0\n}"], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 3.137291669845581, "ok": true, "returncode": 0, "stderr": "[08/24/26 09:51:31] INFO Processing request of type server.py:733\n ListToolsRequest \n INFO Processing request of type server.py:733\n CallToolRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": true, \"content\": [\"{\\n \\\"steps\\\": [\\n {\\n \\\"command\\\": [\\n \\\"read_distribution.py\\\",\\n \\\"-i\\\",\\n \\\"/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_alignments.bam\\\",\\n \\\"-r\\\",\\n \\\"/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_gene_model.bed12\\\"\\n ],\\n \\\"returncode\\\": 0,\\n \\\"stdout\\\": \\\"Total Reads 24\\\\nTotal Tags 24\\\\nTotal Assigned Tags 24\\\\n=====================================================================\\\\nGroup Total_bases Tag_count Tags/Kb \\\\nCDS_Exons 200 24 119.40 \\\\n5'UTR_Exons 0 0 0.00 \\\\n3'UTR_Exons 0 0 0.00 \\\\nIntrons 0 0 0.00 \\\\nTSS_up_1kb 0 0 0.00 \\\\nTSS_up_5kb 0 0 0.00 \\\\nTSS_up_10kb 0 0 0.00 \\\\nTES_down_1kb 1000 0 0.00 \\\\nTES_down_5kb 5000 0 0.00 \\\\nTES_down_10kb 10000 0 0.00 \\\\n=====================================================================\\\\n\\\",\\n \\\"stderr\\\": \\\"processing /tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_gene_model.bed12 ... Done\\\\nprocessing /tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/second_batch_alignments.bam ... Finished\\\\n\\\\n\\\"\\n }\\n ],\\n \\\"returncode\\\": 0\\n}\"]}\n", "timed_out": false}}, "T4": {"ok": true, "validators": [{"detail": "/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/rseqc/read_distribution.txt", "kind": "exists", "name": "exists", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/rseqc/read_distribution.txt", "kind": "nonempty", "name": "nonempty", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/rseqc/read_distribution.txt", "kind": "regex", "name": "assigned_tags", "ok": true, "target": "output_table"}]}, "T5": {"native_process": {"elapsed_seconds": 0.1659235954284668, "ok": true, "returncode": 0, "stderr": "processing /tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/native/second_batch_gene_model.bed12 ... Done\nprocessing /tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/native/second_batch_alignments.bam ... Finished\n\n", "stdout": "", "timed_out": false}, "native_validators": [{"detail": "/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/native/rseqc/read_distribution.txt", "kind": "exists", "name": "exists", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/native/rseqc/read_distribution.txt", "kind": "nonempty", "name": "nonempty", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/native/rseqc/read_distribution.txt", "kind": "regex", "name": "assigned_tags", "ok": true, "target": "output_table"}], "ok": true, "semantic_oracle": {"detail": "native=/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/native/rseqc/read_distribution.txt; mcp=/tmp/exp1_rseqc_read_distribution_dev_neiu4y5s/mcp/rseqc/read_distribution.txt", "kind": "normalized_text_equal", "ok": true, "target": "output_table"}}, "case_environment": "/225040511/miniconda3/envs/experiment1_pinned/rseqc-5.0.3-py310h7c593f9_3", "case_id": "rseqc_read_distribution_dev", "failure_stage": null, "method": "ir_template", "package": "rseqc", "split": "development", "version": "5.0.3"}
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/batch_summary.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "direct_prompt",
3
+ "backend": {
4
+ "provider": "deepseek",
5
+ "model": "deepseek-v4-flash",
6
+ "base_url": "https://api.deepseek.com/v1",
7
+ "api_key_env": "DEEPSEEK_API_KEY",
8
+ "thinking": "disabled",
9
+ "temperature": 0.1,
10
+ "max_output_tokens": 16384
11
+ },
12
+ "total": 1,
13
+ "ok": 1,
14
+ "failed": 0,
15
+ "rows": [
16
+ {
17
+ "item": "data/items/development_approved/rseqc.json",
18
+ "output": "runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py",
19
+ "status": "ok",
20
+ "returncode": 0,
21
+ "stdout": "{\"output\": \"runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py\", \"model\": \"deepseek-v4-flash\", \"parse_errors\": [], \"usage\": {\"prompt_tokens\": 25310, \"completion_tokens\": 758, \"total_tokens\": 26068, \"prompt_tokens_details\": {\"cached_tokens\": 0}, \"prompt_cache_hit_tokens\": 0, \"prompt_cache_miss_tokens\": 25310}}\n",
22
+ "stderr": ""
23
+ }
24
+ ]
25
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import os
3
+ import subprocess
4
+ import sys
5
+ from pathlib import Path
6
+ from typing import Any
7
+
8
+ from mcp.server.fastmcp import FastMCP
9
+
10
+ mcp = FastMCP("rseqc")
11
+
12
+
13
+ @mcp.tool()
14
+ def read_distribution(
15
+ input_bam: str,
16
+ gene_model: str,
17
+ output_table: str,
18
+ ) -> dict[str, Any]:
19
+ """
20
+ Calculate the distribution of reads over gene features (CDS, 5'UTR, 3'UTR, introns, intergenic).
21
+
22
+ Args:
23
+ input_bam: Input BAM file (must be sorted and indexed; .bai sidecar is expected next to it).
24
+ gene_model: Reference gene model in BED format.
25
+ output_table: Path to write the output table (captured from stdout).
26
+ """
27
+ # Validate required inputs
28
+ if not input_bam:
29
+ raise ValueError("input_bam is required")
30
+ if not gene_model:
31
+ raise ValueError("gene_model is required")
32
+ if not output_table:
33
+ raise ValueError("output_table is required")
34
+
35
+ # Resolve paths
36
+ input_bam_path = Path(input_bam)
37
+ gene_model_path = Path(gene_model)
38
+ output_table_path = Path(output_table)
39
+
40
+ # Check input files exist
41
+ if not input_bam_path.is_file():
42
+ raise FileNotFoundError(f"Input BAM file not found: {input_bam_path}")
43
+ if not gene_model_path.is_file():
44
+ raise FileNotFoundError(f"Gene model file not found: {gene_model_path}")
45
+
46
+ # Create output parent directory if needed
47
+ output_table_path.parent.mkdir(parents=True, exist_ok=True)
48
+
49
+ # Build command - output_table is stdout, so not passed as an argument
50
+ cmd = [
51
+ "read_distribution.py",
52
+ "-i",
53
+ str(input_bam_path),
54
+ "-r",
55
+ str(gene_model_path),
56
+ ]
57
+
58
+ # Run the native executable
59
+ try:
60
+ result = subprocess.run(
61
+ cmd,
62
+ capture_output=True,
63
+ text=True,
64
+ check=False,
65
+ )
66
+ except FileNotFoundError as e:
67
+ raise RuntimeError(f"read_distribution.py executable not found: {e}") from e
68
+ except Exception as e:
69
+ raise RuntimeError(f"Failed to execute read_distribution.py: {e}") from e
70
+
71
+ # Check for non-zero exit
72
+ if result.returncode != 0:
73
+ error_msg = result.stderr.strip() if result.stderr.strip() else "Unknown error"
74
+ raise RuntimeError(
75
+ f"read_distribution.py failed with exit code {result.returncode}: {error_msg}"
76
+ )
77
+
78
+ # Write stdout to output_table
79
+ try:
80
+ with open(output_table_path, "w", encoding="utf-8") as f:
81
+ f.write(result.stdout)
82
+ except OSError as e:
83
+ raise RuntimeError(f"Failed to write output table to {output_table_path}: {e}") from e
84
+
85
+ # Return structured metadata
86
+ return {
87
+ "endpoint": "read_distribution",
88
+ "input_bam": str(input_bam_path),
89
+ "gene_model": str(gene_model_path),
90
+ "output_table": str(output_table_path),
91
+ "exit_code": result.returncode,
92
+ "stdout_size": len(result.stdout),
93
+ "stderr_size": len(result.stderr),
94
+ "output_table_size": output_table_path.stat().st_size if output_table_path.exists() else 0,
95
+ }
96
+
97
+
98
+ if __name__ == "__main__":
99
+ mcp.run()
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py.raw.txt ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```python
2
+ import json
3
+ import os
4
+ import subprocess
5
+ import sys
6
+ from pathlib import Path
7
+ from typing import Any
8
+
9
+ from mcp.server.fastmcp import FastMCP
10
+
11
+ mcp = FastMCP("rseqc")
12
+
13
+
14
+ @mcp.tool()
15
+ def read_distribution(
16
+ input_bam: str,
17
+ gene_model: str,
18
+ output_table: str,
19
+ ) -> dict[str, Any]:
20
+ """
21
+ Calculate the distribution of reads over gene features (CDS, 5'UTR, 3'UTR, introns, intergenic).
22
+
23
+ Args:
24
+ input_bam: Input BAM file (must be sorted and indexed; .bai sidecar is expected next to it).
25
+ gene_model: Reference gene model in BED format.
26
+ output_table: Path to write the output table (captured from stdout).
27
+ """
28
+ # Validate required inputs
29
+ if not input_bam:
30
+ raise ValueError("input_bam is required")
31
+ if not gene_model:
32
+ raise ValueError("gene_model is required")
33
+ if not output_table:
34
+ raise ValueError("output_table is required")
35
+
36
+ # Resolve paths
37
+ input_bam_path = Path(input_bam)
38
+ gene_model_path = Path(gene_model)
39
+ output_table_path = Path(output_table)
40
+
41
+ # Check input files exist
42
+ if not input_bam_path.is_file():
43
+ raise FileNotFoundError(f"Input BAM file not found: {input_bam_path}")
44
+ if not gene_model_path.is_file():
45
+ raise FileNotFoundError(f"Gene model file not found: {gene_model_path}")
46
+
47
+ # Create output parent directory if needed
48
+ output_table_path.parent.mkdir(parents=True, exist_ok=True)
49
+
50
+ # Build command - output_table is stdout, so not passed as an argument
51
+ cmd = [
52
+ "read_distribution.py",
53
+ "-i",
54
+ str(input_bam_path),
55
+ "-r",
56
+ str(gene_model_path),
57
+ ]
58
+
59
+ # Run the native executable
60
+ try:
61
+ result = subprocess.run(
62
+ cmd,
63
+ capture_output=True,
64
+ text=True,
65
+ check=False,
66
+ )
67
+ except FileNotFoundError as e:
68
+ raise RuntimeError(f"read_distribution.py executable not found: {e}") from e
69
+ except Exception as e:
70
+ raise RuntimeError(f"Failed to execute read_distribution.py: {e}") from e
71
+
72
+ # Check for non-zero exit
73
+ if result.returncode != 0:
74
+ error_msg = result.stderr.strip() if result.stderr.strip() else "Unknown error"
75
+ raise RuntimeError(
76
+ f"read_distribution.py failed with exit code {result.returncode}: {error_msg}"
77
+ )
78
+
79
+ # Write stdout to output_table
80
+ try:
81
+ with open(output_table_path, "w", encoding="utf-8") as f:
82
+ f.write(result.stdout)
83
+ except OSError as e:
84
+ raise RuntimeError(f"Failed to write output table to {output_table_path}: {e}") from e
85
+
86
+ # Return structured metadata
87
+ return {
88
+ "endpoint": "read_distribution",
89
+ "input_bam": str(input_bam_path),
90
+ "gene_model": str(gene_model_path),
91
+ "output_table": str(output_table_path),
92
+ "exit_code": result.returncode,
93
+ "stdout_size": len(result.stdout),
94
+ "stderr_size": len(result.stderr),
95
+ "output_table_size": output_table_path.stat().st_size if output_table_path.exists() else 0,
96
+ }
97
+
98
+
99
+ if __name__ == "__main__":
100
+ mcp.run()
101
+ ```
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt/rseqc_read_distribution_dev.py.usage.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "direct_prompt",
3
+ "provider": "deepseek",
4
+ "model": "deepseek-v4-flash",
5
+ "base_url": "https://api.deepseek.com/v1",
6
+ "temperature": 0.1,
7
+ "max_output_tokens": 16384,
8
+ "thinking": "disabled",
9
+ "backend_config_sha256": "b1441f3e96893718c3b4a98090b10b8bffb0cbd24041fd433cd5352e7f65008b",
10
+ "prompt_sha256": "18998b3525de29f63ac27ebf04e7c4cc6e6840d688dce83a5080134ca6f7fd73",
11
+ "help_sha256": "106b34479479d8ad6c3feee59a0972b1801b182c3ea7ffccef2ec871e84308d4",
12
+ "elapsed_seconds": 5.307079553604126,
13
+ "usage": {
14
+ "prompt_tokens": 25310,
15
+ "completion_tokens": 758,
16
+ "total_tokens": 26068,
17
+ "prompt_tokens_details": {
18
+ "cached_tokens": 0
19
+ },
20
+ "prompt_cache_hit_tokens": 0,
21
+ "prompt_cache_miss_tokens": 25310
22
+ },
23
+ "parse_errors": [],
24
+ "response_id": "2cbd3d67-2aed-43b3-a75f-275bb1ad6daf"
25
+ }
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/direct_prompt_t0_t5.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"T0": {"detail": "conversion artifact produced", "ok": true}, "T1": {"detail": "python compilation passed", "ok": true}, "T2": {"ok": true, "probe": {"call_ok": null, "content": [], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 4.361855983734131, "ok": true, "returncode": 0, "stderr": "[08/23/26 06:21:43] INFO Processing request of type server.py:733\n ListToolsRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": null, \"content\": []}\n", "timed_out": false}}, "T3": {"ok": true, "probe": {"call_ok": true, "content": ["{\n \"endpoint\": \"read_distribution\",\n \"input_bam\": \"/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/second_batch_alignments.bam\",\n \"gene_model\": \"/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/second_batch_gene_model.bed12\",\n \"output_table\": \"/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/rseqc/read_distribution.txt\",\n \"exit_code\": 0,\n \"stdout_size\": 1110,\n \"stderr_size\": 205,\n \"output_table_size\": 1110\n}"], "endpoint_found": true, "listed_tools": ["read_distribution"]}, "process": {"elapsed_seconds": 1.739072322845459, "ok": true, "returncode": 0, "stderr": "[08/23/26 06:21:44] INFO Processing request of type server.py:733\n ListToolsRequest \n INFO Processing request of type server.py:733\n CallToolRequest \n", "stdout": "{\"listed_tools\": [\"read_distribution\"], \"endpoint_found\": true, \"call_ok\": true, \"content\": [\"{\\n \\\"endpoint\\\": \\\"read_distribution\\\",\\n \\\"input_bam\\\": \\\"/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/second_batch_alignments.bam\\\",\\n \\\"gene_model\\\": \\\"/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/second_batch_gene_model.bed12\\\",\\n \\\"output_table\\\": \\\"/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/rseqc/read_distribution.txt\\\",\\n \\\"exit_code\\\": 0,\\n \\\"stdout_size\\\": 1110,\\n \\\"stderr_size\\\": 205,\\n \\\"output_table_size\\\": 1110\\n}\"]}\n", "timed_out": false}}, "T4": {"ok": true, "validators": [{"detail": "/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/rseqc/read_distribution.txt", "kind": "exists", "name": "exists", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/rseqc/read_distribution.txt", "kind": "nonempty", "name": "nonempty", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/rseqc/read_distribution.txt", "kind": "regex", "name": "assigned_tags", "ok": true, "target": "output_table"}]}, "T5": {"native_process": {"elapsed_seconds": 0.3010425567626953, "ok": true, "returncode": 0, "stderr": "processing /tmp/exp1_rseqc_read_distribution_dev_908t_1da/native/second_batch_gene_model.bed12 ... Done\nprocessing /tmp/exp1_rseqc_read_distribution_dev_908t_1da/native/second_batch_alignments.bam ... Finished\n\n", "stdout": "", "timed_out": false}, "native_validators": [{"detail": "/tmp/exp1_rseqc_read_distribution_dev_908t_1da/native/rseqc/read_distribution.txt", "kind": "exists", "name": "exists", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_908t_1da/native/rseqc/read_distribution.txt", "kind": "nonempty", "name": "nonempty", "ok": true, "target": "output_table"}, {"detail": "/tmp/exp1_rseqc_read_distribution_dev_908t_1da/native/rseqc/read_distribution.txt", "kind": "regex", "name": "assigned_tags", "ok": true, "target": "output_table"}], "ok": true, "semantic_oracle": {"detail": "native=/tmp/exp1_rseqc_read_distribution_dev_908t_1da/native/rseqc/read_distribution.txt; mcp=/tmp/exp1_rseqc_read_distribution_dev_908t_1da/mcp/rseqc/read_distribution.txt", "kind": "normalized_text_equal", "ok": true, "target": "output_table"}}, "case_environment": "/225040511/miniconda3/envs/experiment1_pinned/rseqc-5.0.3-py310h7c593f9_3", "case_id": "rseqc_read_distribution_dev", "failure_stage": null, "method": "direct_prompt", "package": "rseqc", "split": "development", "version": "5.0.3"}
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/generated/direct_prompt/rseqc_read_distribution_dev_server.py ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import os
3
+ import subprocess
4
+ import sys
5
+ from pathlib import Path
6
+ from typing import Any
7
+
8
+ from mcp.server.fastmcp import FastMCP
9
+
10
+ mcp = FastMCP("rseqc")
11
+
12
+
13
+ @mcp.tool()
14
+ def read_distribution(
15
+ input_bam: str,
16
+ gene_model: str,
17
+ output_table: str,
18
+ ) -> dict[str, Any]:
19
+ """
20
+ Calculate the distribution of reads over gene features (CDS, 5'UTR, 3'UTR, introns, intergenic).
21
+
22
+ Args:
23
+ input_bam: Input BAM file (must be sorted and indexed; .bai sidecar is expected next to it).
24
+ gene_model: Reference gene model in BED format.
25
+ output_table: Path to write the output table (captured from stdout).
26
+ """
27
+ # Validate required inputs
28
+ if not input_bam:
29
+ raise ValueError("input_bam is required")
30
+ if not gene_model:
31
+ raise ValueError("gene_model is required")
32
+ if not output_table:
33
+ raise ValueError("output_table is required")
34
+
35
+ # Resolve paths
36
+ input_bam_path = Path(input_bam)
37
+ gene_model_path = Path(gene_model)
38
+ output_table_path = Path(output_table)
39
+
40
+ # Check input files exist
41
+ if not input_bam_path.is_file():
42
+ raise FileNotFoundError(f"Input BAM file not found: {input_bam_path}")
43
+ if not gene_model_path.is_file():
44
+ raise FileNotFoundError(f"Gene model file not found: {gene_model_path}")
45
+
46
+ # Create output parent directory if needed
47
+ output_table_path.parent.mkdir(parents=True, exist_ok=True)
48
+
49
+ # Build command - output_table is stdout, so not passed as an argument
50
+ cmd = [
51
+ "read_distribution.py",
52
+ "-i",
53
+ str(input_bam_path),
54
+ "-r",
55
+ str(gene_model_path),
56
+ ]
57
+
58
+ # Run the native executable
59
+ try:
60
+ result = subprocess.run(
61
+ cmd,
62
+ capture_output=True,
63
+ text=True,
64
+ check=False,
65
+ )
66
+ except FileNotFoundError as e:
67
+ raise RuntimeError(f"read_distribution.py executable not found: {e}") from e
68
+ except Exception as e:
69
+ raise RuntimeError(f"Failed to execute read_distribution.py: {e}") from e
70
+
71
+ # Check for non-zero exit
72
+ if result.returncode != 0:
73
+ error_msg = result.stderr.strip() if result.stderr.strip() else "Unknown error"
74
+ raise RuntimeError(
75
+ f"read_distribution.py failed with exit code {result.returncode}: {error_msg}"
76
+ )
77
+
78
+ # Write stdout to output_table
79
+ try:
80
+ with open(output_table_path, "w", encoding="utf-8") as f:
81
+ f.write(result.stdout)
82
+ except OSError as e:
83
+ raise RuntimeError(f"Failed to write output table to {output_table_path}: {e}") from e
84
+
85
+ # Return structured metadata
86
+ return {
87
+ "endpoint": "read_distribution",
88
+ "input_bam": str(input_bam_path),
89
+ "gene_model": str(gene_model_path),
90
+ "output_table": str(output_table_path),
91
+ "exit_code": result.returncode,
92
+ "stdout_size": len(result.stdout),
93
+ "stderr_size": len(result.stderr),
94
+ "output_table_size": output_table_path.stat().st_size if output_table_path.exists() else 0,
95
+ }
96
+
97
+
98
+ if __name__ == "__main__":
99
+ mcp.run()
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/generated/ir_template/rseqc_read_distribution_dev_server.py ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import subprocess
5
+ from pathlib import Path
6
+ from mcp.server.fastmcp import FastMCP
7
+
8
+ mcp = FastMCP('read_distribution')
9
+ CONTRACT_METADATA = {'arguments': [{'description': 'Input BAM file (sorted and indexed).', 'flag': '-i', 'kind': 'option', 'name': 'input_bam', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Reference gene model in BED format.', 'flag': '-r', 'kind': 'option', 'name': 'gene_model', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Output table (written to stdout).', 'flag': None, 'kind': 'option', 'name': 'output_table', 'pass_to_cli': False, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}], 'outputs': [{'artifact_type': 'text', 'assertions': [{'description': 'Read distribution table.', 'name': 'content', 'status': 'inferred'}], 'binding': 'output_table', 'capture': 'stdout', 'name': 'output_table'}]}
10
+
11
+ def _append_value(command: list[str], flag: str | None, value) -> None:
12
+ if value is None:
13
+ return
14
+ if isinstance(value, bool):
15
+ if value and flag:
16
+ command.append(flag)
17
+ return
18
+ values = value if isinstance(value, list) else [value]
19
+ for item in values:
20
+ if flag:
21
+ command.append(flag)
22
+ command.append(str(item))
23
+
24
+ @mcp.tool()
25
+ def read_distribution(input_bam: str, gene_model: str, output_table: str) -> dict:
26
+ """Calculates the distribution of reads over gene features (e.g., CDS, 5'UTR, 3'UTR, introns, intergenic regions) from a BAM file and a reference gene model in BED format."""
27
+ command = ['read_distribution.py']
28
+ _append_value(command, '-i', input_bam)
29
+ _append_value(command, '-r', gene_model)
30
+ if output_table:
31
+ Path(output_table).parent.mkdir(parents=True, exist_ok=True)
32
+ completed = subprocess.run(command, text=True, capture_output=True)
33
+ if completed.returncode != 0:
34
+ raise RuntimeError(f'command failed ({completed.returncode}): {completed.stderr[-4000:]}')
35
+ Path(output_table).write_text(completed.stdout, encoding='utf-8')
36
+ return {
37
+ 'command': command,
38
+ 'returncode': completed.returncode,
39
+ 'stdout': completed.stdout[-4000:],
40
+ 'stderr': completed.stderr[-4000:],
41
+ }
42
+
43
+ if __name__ == '__main__':
44
+ mcp.run(transport='stdio')
Biomanus-V2/Experiment1/runs/rseqc_v4_flash_20260823/generated_workflow/ir_template/rseqc_read_distribution_dev_server.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+ from mcp.server.fastmcp import FastMCP
8
+
9
+ mcp = FastMCP('read_distribution')
10
+ CONTRACT_METADATA = {'arguments': [{'description': 'Input BAM file (sorted and indexed).', 'flag': '-i', 'kind': 'option', 'name': 'input_bam', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Reference gene model in BED format.', 'flag': '-r', 'kind': 'option', 'name': 'gene_model', 'pass_to_cli': True, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}, {'description': 'Output table (written to stdout).', 'flag': None, 'kind': 'option', 'name': 'output_table', 'pass_to_cli': False, 'position': None, 'repeat': False, 'required': True, 'value_type': 'path'}], 'execution_plan': {'steps': [{'capture_stdout_to': 'output_table', 'command': ['read_distribution.py', '-i', '{input_bam}', '-r', '{gene_model}']}]}, 'outputs': [{'artifact_type': 'text', 'assertions': [{'description': 'Read distribution table.', 'name': 'content', 'status': 'inferred'}], 'binding': 'output_table', 'capture': 'stdout', 'name': 'output_table'}]}
11
+
12
+ def _append_value(command: list[str], flag: str | None, value) -> None:
13
+ if value is None:
14
+ return
15
+ if isinstance(value, bool):
16
+ if value and flag:
17
+ command.append(flag)
18
+ return
19
+ values = value if isinstance(value, list) else [value]
20
+ for item in values:
21
+ if flag:
22
+ command.append(flag)
23
+ command.append(str(item))
24
+
25
+ @mcp.tool()
26
+ def read_distribution(input_bam: str, gene_model: str, output_table: str) -> dict:
27
+ """Calculates the distribution of reads over gene features (e.g., CDS, 5'UTR, 3'UTR, introns, intergenic regions) from a BAM file and a reference gene model in BED format."""
28
+ if output_table:
29
+ Path(output_table).parent.mkdir(parents=True, exist_ok=True)
30
+ step_results = []
31
+ command_0 = ['read_distribution.py', '-i', str(input_bam), '-r', str(gene_model)]
32
+ env_0 = os.environ.copy()
33
+ completed_0 = subprocess.run(command_0, cwd=None, env=env_0, text=True, capture_output=True)
34
+ if completed_0.returncode != 0:
35
+ raise RuntimeError(f'command failed ({completed_0.returncode}): {completed_0.stderr[-4000:]}')
36
+ Path(output_table).write_text(completed_0.stdout, encoding='utf-8')
37
+ step_results.append({'command': command_0, 'returncode': completed_0.returncode, 'stdout': completed_0.stdout[-4000:], 'stderr': completed_0.stderr[-4000:]})
38
+ return {'steps': step_results, 'returncode': 0}
39
+
40
+ if __name__ == '__main__':
41
+ mcp.run(transport='stdio')
Biomanus-V2/Experiment1/runs/smoke/results.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"T0": {"detail": "valid Contract IR produced", "ir_path": "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/examples/seqkit_stats.contract.json", "ok": true}, "T1": {"detail": "python compilation passed", "ok": true}, "T2": {"ok": null}, "T3": {"ok": null}, "T4": {"ok": null}, "T5": {"ok": null}, "case_id": "seqkit_stats_fasta_dev", "dry_run": true, "failure_stage": null, "method": "ir_template", "package": "seqkit", "split": "development", "version": "2.10.1"}
Biomanus-V2/Experiment1/runs/test_103_native_curation/atlas_manual_v1/work/config.yaml ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ %YAML 1.1
2
+ ---
3
+ ###################################################################
4
+ ###################################################################
5
+ #### _______ _ _____ ####
6
+ #### /\ |__ __| | | /\ / ____| ####
7
+ #### / \ | | | | / \ | (___ ####
8
+ #### / /\ \ | | | | / /\ \ \___ \ ####
9
+ #### / ____ \ | | | |____ / ____ \ ____) | ####
10
+ #### /_/ \_\ |_| |______| /_/ \_\ |_____/ ####
11
+ #### ####
12
+ ###################################################################
13
+ # For more details about the config values see:
14
+ # https://metagenome-atlas.readthedocs.io
15
+ ###################################################################
16
+
17
+ ########################
18
+ # Execution parameters
19
+ ########################
20
+ # max cores per process
21
+ threads: 2
22
+ # Memory for most jobs especially from BBtools, which are memory demanding
23
+ java_mem: 32
24
+ # can be a subset of threads or altered if rule run_spades or run_megahit are being defined differently in your cluster configuration
25
+ assembly_threads: 8
26
+ # in GB
27
+ assembly_memory: 250
28
+ # Local directory for temp files, useful for cluster execution without shared file system
29
+ tmpdir: /tmp
30
+ # directory where databases are downloaded with 'atlas download'
31
+ database_dir: /225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/test_103_native_curation/atlas_manual_v1/databases
32
+
33
+
34
+
35
+
36
+ ########################
37
+ # Quality control
38
+ ########################
39
+ data_type: metagenome # metagenome or metatranscriptome
40
+ # remove (PCR)-duplicated reads using clumpify
41
+ deduplicate: true
42
+ duplicates_only_optical: false
43
+ duplicates_allow_substitutions: 2
44
+ # used to trim adapters from reads and read ends
45
+ preprocess_adapters: /225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/test_103_native_curation/atlas_manual_v1/databases/adapters.fa
46
+ preprocess_minimum_base_quality: 10
47
+ preprocess_minimum_passing_read_length: 51
48
+ # 0.05 requires at least 5 percent of each nucleotide per sequence
49
+ preprocess_minimum_base_frequency: 0.05
50
+ preprocess_adapter_min_k: 8
51
+ preprocess_allowable_kmer_mismatches: 1
52
+ preprocess_reference_kmer_match_length: 27
53
+ # error correction where PE reads overlap
54
+ error_correction_overlapping_pairs: true
55
+ #contamination references can be added such that -- key: /path/to/fasta
56
+ contaminant_references:
57
+ PhiX: /225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/test_103_native_curation/atlas_manual_v1/databases/phiX174_virus.fa
58
+ contaminant_max_indel: 20
59
+ contaminant_min_ratio: 0.65
60
+ contaminant_kmer_length: 13
61
+ contaminant_minimum_hits: 1
62
+ contaminant_ambiguous: best
63
+
64
+
65
+ ########################
66
+ # Pre-assembly-processing
67
+ ########################
68
+
69
+ normalize_reads_before_assembly: false
70
+ # target kmer depth
71
+ normalization_target_depth: 10000
72
+ normalization_kmer_length: 21
73
+ normalization_minimum_kmers: 3
74
+
75
+ error_correction_before_assembly: true
76
+
77
+ # join R1 and R2 at overlap; unjoined reads are still utilized
78
+ merge_pairs_before_assembly: true
79
+ # extend reads while merging to this many nucleotides
80
+ merging_extend2: 40
81
+ # Iterations are performed until extend2 x iterations
82
+ merging_flags: ecct iterations=5
83
+ merging_k: 62
84
+
85
+
86
+ ########################
87
+ # Assembly
88
+ ########################
89
+ # megahit OR spades
90
+ assembler: megahit
91
+
92
+ # Megahit
93
+ #-----------
94
+ # 2 is for metagenomes, 3 for genomes with 30x coverage
95
+ megahit_min_count: 2
96
+ megahit_k_min: 21
97
+ megahit_k_max: 121
98
+ megahit_k_step: 20
99
+ megahit_merge_level: 20,0.98
100
+ megahit_prune_level: 2
101
+ megahit_low_local_ratio: 0.2
102
+ # ['default','meta-large','meta-sensitive']
103
+ megahit_preset: default
104
+
105
+ # Spades
106
+ #------------
107
+ spades_skip_BayesHammer: false
108
+ spades_use_scaffolds: true # otherwise use contigs
109
+ #Comma-separated list of k-mer sizes to be used (all values must be odd, less than 128 and listed in ascending order).
110
+ spades_k: auto
111
+ spades_preset: meta # meta, ,normal, rna single end libraries doesn't work for metaspades
112
+ spades_extra: ''
113
+
114
+ # Filtering
115
+ #------------
116
+ prefilter_minimum_contig_length: 200
117
+ # filter out assembled noise
118
+ # this is more important for assemblys from megahit
119
+ filter_contigs: true
120
+ # trim contig tips
121
+ contig_trim_bp: 0
122
+ # require contigs to have read support
123
+ minimum_average_coverage: 1
124
+ minimum_percent_covered_bases: 20
125
+ minimum_mapped_reads: 0
126
+ # after filtering
127
+ minimum_contig_length: 300
128
+
129
+
130
+ ########################
131
+ # Quantification
132
+ ########################
133
+
134
+ # Mapping reads to contigs
135
+ #--------------------------
136
+ contig_min_id: 0.76
137
+ contig_map_paired_only: true
138
+ contig_max_distance_between_pairs: 1000
139
+ maximum_counted_map_sites: 10
140
+
141
+ ########################
142
+ # Binning
143
+ ########################
144
+
145
+ final_binner: DASTool # [DASTool or one of the binner, e.g. maxbin]
146
+
147
+ binner: # If DASTool is used as final_binner, use predictions of this binners
148
+ - metabat
149
+ - concoct
150
+ - maxbin
151
+
152
+
153
+ metabat:
154
+ sensitivity: sensitive
155
+ min_contig_length: 1500 # metabat needs >1500
156
+
157
+ concoct:
158
+ Nexpected_clusters: 200 # important parameter
159
+ read_length: 100 # change this parameter !
160
+ Niterations: 500
161
+ min_contig_length: 1000
162
+
163
+ maxbin:
164
+ max_iteration: 50
165
+ prob_threshold: 0.9
166
+ min_contig_length: 1000
167
+
168
+ DASTool:
169
+ search_engine: diamond
170
+ score_threshold: 0.5 #Score threshold until selection algorithm will keep selecting bins [0..1].
171
+
172
+ genome_dereplication:
173
+ ANI: 0.99
174
+ overlap: 0.6
175
+ opt_parameters: ''
176
+ filter:
177
+ noFilter: false
178
+ length: 5000
179
+ completeness: 75
180
+ contamination: 15
181
+ score:
182
+ completeness: 1
183
+ contamination: 5
184
+ N50: 0.5
185
+ length: 0
186
+
187
+ ########################
188
+ # taxonomy
189
+ #######################
190
+ # Diamond needs up to 100 GB of memory for building the taxonomy database
191
+ # If you prefer you can dowload an existing CAT database, see docs.
192
+ diamond_mem: 100
193
+ diamond_threads: 12
194
+ # number of top hits considered for taxonomic annotation
195
+ cat_range: 5
196
+ # fraction of support needed for classification, <0.5 can give rise to duble classification.
197
+ cat_fraction: 0.3
198
+
199
+
200
+ ########################
201
+ # Gene catalog
202
+ #######################
203
+ genecatalog:
204
+ source: genomes # which predicted proteins should be used for the gene catalog
205
+ clustermethod: linclust # cd-hit-est or cluster or linclust see mmseqs for more details
206
+ minlength_nt: 100
207
+ minid: 0.95
208
+ coverage: 0.9
209
+ extra: ''
210
+ SubsetSize: 500000
Biomanus-V2/Experiment1/runs/test_103_native_curation/atlas_manual_v1/work/samples.tsv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Reads_raw_R1 Reads_raw_R2 Reads_QC_R1 Reads_QC_R2 BinGroup
2
+ sample /225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_atlas_reads/sample_R1.fastq /225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_atlas_reads/sample_R2.fastq sample
Biomanus-V2/Experiment1/runs/test_103_native_curation/batch4_probe_v1/tidyp/clean.html ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
2
+ <html>
3
+ <head>
4
+ <meta name="generator" content=
5
+ "tidyp for Linux (v1.04), see www.w3.org">
6
+ <title>Fixture</title>
7
+ </head>
8
+ <body>
9
+ <p>Test paragraph.</p>
10
+ </body>
11
+ </html>
Biomanus-V2/Experiment1/runs/test_103_native_curation/batch4_probe_v2/tidyp/clean.html ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
2
+ <html>
3
+ <head>
4
+ <meta name="generator" content=
5
+ "tidyp for Linux (v1.04), see www.w3.org">
6
+ <title>Fixture</title>
7
+ </head>
8
+ <body>
9
+ <p>Test paragraph.</p>
10
+ </body>
11
+ </html>
Biomanus-V2/Experiment1/runs/test_103_native_curation/comet_manual_v2/result.pep.xml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <msms_pipeline_analysis date="2026-08-26T11:55:22" xmlns="http://regis-web.systemsbiology.net/pepXML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sashimi.sourceforge.net/schema_revision/pepXML/pepXML_v120.xsd" summary_xml="/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/test_103_native_curation/comet_manual_v2/result.pep.xml">
3
+ <msms_run_summary base_name="/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_comet_spectrum" msManufacturer="UNKNOWN" msModel="UNKNOWN" raw_data_type="raw" raw_data=".mgf">
4
+ <sample_enzyme name="Trypsin">
5
+ <specificity cut="KR" no_cut="P" sense="C"/>
6
+ </sample_enzyme>
7
+ <search_summary base_name="/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/test_103_native_curation/comet_manual_v2/result" search_engine="Comet" search_engine_version="2026.01 rev. 1 (e4f767c)" precursor_mass_type="monoisotopic" fragment_mass_type="monoisotopic" search_id="1">
8
+ <search_database local_path="/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_comet_proteins.fasta" type="AA"/>
9
+ <enzymatic_search_constraint enzyme="Trypsin" max_num_internal_cleavages="2" min_number_termini="2"/>
10
+ <aminoacid_modification aminoacid="M" massdiff="15.994900" mass="147.035385" variable="Y"/>
11
+ <aminoacid_modification aminoacid="C" massdiff="57.021464" mass="160.030649" variable="N"/>
12
+ <parameter name="# comet_version" value="2026.01 rev. 1"/>
13
+ <parameter name="activation_method" value="ALL"/>
14
+ <parameter name="add_A_alanine" value="0.000000"/>
15
+ <parameter name="add_B_user_amino_acid" value="0.000000"/>
16
+ <parameter name="add_C_cysteine" value="57.021464"/>
17
+ <parameter name="add_Cterm_peptide" value="0.000000"/>
18
+ <parameter name="add_Cterm_protein" value="0.000000"/>
19
+ <parameter name="add_D_aspartic_acid" value="0.000000"/>
20
+ <parameter name="add_E_glutamic_acid" value="0.000000"/>
21
+ <parameter name="add_F_phenylalanine" value="0.000000"/>
22
+ <parameter name="add_G_glycine" value="0.000000"/>
23
+ <parameter name="add_H_histidine" value="0.000000"/>
24
+ <parameter name="add_I_isoleucine" value="0.000000"/>
25
+ <parameter name="add_J_user_amino_acid" value="0.000000"/>
26
+ <parameter name="add_K_lysine" value="0.000000"/>
27
+ <parameter name="add_L_leucine" value="0.000000"/>
28
+ <parameter name="add_M_methionine" value="0.000000"/>
29
+ <parameter name="add_N_asparagine" value="0.000000"/>
30
+ <parameter name="add_Nterm_peptide" value="0.000000"/>
31
+ <parameter name="add_Nterm_protein" value="0.000000"/>
32
+ <parameter name="add_O_pyrrolysine" value="0.000000"/>
33
+ <parameter name="add_P_proline" value="0.000000"/>
34
+ <parameter name="add_Q_glutamine" value="0.000000"/>
35
+ <parameter name="add_R_arginine" value="0.000000"/>
36
+ <parameter name="add_S_serine" value="0.000000"/>
37
+ <parameter name="add_T_threonine" value="0.000000"/>
38
+ <parameter name="add_U_selenocysteine" value="0.000000"/>
39
+ <parameter name="add_V_valine" value="0.000000"/>
40
+ <parameter name="add_W_tryptophan" value="0.000000"/>
41
+ <parameter name="add_X_user_amino_acid" value="0.000000"/>
42
+ <parameter name="add_Y_tyrosine" value="0.000000"/>
43
+ <parameter name="add_Z_user_amino_acid" value="0.000000"/>
44
+ <parameter name="allowed_missed_cleavage" value="2"/>
45
+ <parameter name="clear_mz_range" value="0.000000 0.000000"/>
46
+ <parameter name="clip_nterm_methionine" value="0"/>
47
+ <parameter name="database_name" value="/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_comet_proteins.fasta"/>
48
+ <parameter name="decoy_prefix" value="DECOY_"/>
49
+ <parameter name="decoy_search" value="0"/>
50
+ <parameter name="digest_mass_range" value="600.000000 5000.000000"/>
51
+ <parameter name="equal_I_and_L" value="1"/>
52
+ <parameter name="fragment_bin_offset" value="0.000000"/>
53
+ <parameter name="fragment_bin_tol" value="0.020000"/>
54
+ <parameter name="isotope_error" value="2"/>
55
+ <parameter name="mass_offsets" value=""/>
56
+ <parameter name="max_duplicate_proteins" value="10"/>
57
+ <parameter name="max_fragment_charge" value="3"/>
58
+ <parameter name="max_precursor_charge" value="6"/>
59
+ <parameter name="max_variable_mods_in_peptide" value="5"/>
60
+ <parameter name="min_precursor_charge" value="1"/>
61
+ <parameter name="minimum_intensity" value="0.000000"/>
62
+ <parameter name="minimum_peaks" value="10"/>
63
+ <parameter name="ms_level" value="2"/>
64
+ <parameter name="num_enzyme_termini" value="2"/>
65
+ <parameter name="num_output_lines" value="5"/>
66
+ <parameter name="num_threads" value="0"/>
67
+ <parameter name="output_mzidentmlfile" value="0"/>
68
+ <parameter name="output_pepxmlfile" value="1"/>
69
+ <parameter name="output_percolatorfile" value="0"/>
70
+ <parameter name="output_sqtfile" value="0"/>
71
+ <parameter name="output_txtfile" value="1"/>
72
+ <parameter name="override_charge" value="0"/>
73
+ <parameter name="peptide_length_range" value="5 50"/>
74
+ <parameter name="peptide_mass_tolerance_lower" value="-20.000000"/>
75
+ <parameter name="peptide_mass_tolerance_upper" value="20.000000"/>
76
+ <parameter name="peptide_mass_units" value="2"/>
77
+ <parameter name="percentage_base_peak" value="0.000000"/>
78
+ <parameter name="precursor_charge" value="0 0"/>
79
+ <parameter name="precursor_tolerance_type" value="1"/>
80
+ <parameter name="remove_precursor_peak" value="0"/>
81
+ <parameter name="remove_precursor_tolerance" value="1.500000"/>
82
+ <parameter name="require_variable_mod" value="0"/>
83
+ <parameter name="sample_enzyme_number" value="1"/>
84
+ <parameter name="scan_range" value="0 0"/>
85
+ <parameter name="search_enzyme2_number" value="0"/>
86
+ <parameter name="search_enzyme_number" value="1"/>
87
+ <parameter name="spectrum_batch_size" value="15000"/>
88
+ <parameter name="theoretical_fragment_ions" value="0"/>
89
+ <parameter name="use_A_ions" value="0"/>
90
+ <parameter name="use_B_ions" value="1"/>
91
+ <parameter name="use_C_ions" value="0"/>
92
+ <parameter name="use_NL_ions" value="0"/>
93
+ <parameter name="use_X_ions" value="0"/>
94
+ <parameter name="use_Y_ions" value="1"/>
95
+ <parameter name="use_Z1_ions" value="0"/>
96
+ <parameter name="use_Z_ions" value="0"/>
97
+ <parameter name="variable_mod01" value=" 15.9949 M 0 3 -1 0 0 0.0"/>
98
+ <parameter name="variable_mod02" value=" 0.0 X 0 3 -1 0 0 0.0"/>
99
+ <parameter name="variable_mod03" value=" 0.0 X 0 3 -1 0 0 0.0"/>
100
+ <parameter name="variable_mod04" value=" 0.0 X 0 3 -1 0 0 0.0"/>
101
+ <parameter name="variable_mod05" value=" 0.0 X 0 3 -1 0 0 0.0"/>
102
+ <parameter name="residuemass_A" value="71.037114"/>
103
+ <parameter name="residuemass_B" value="999999.000000"/>
104
+ <parameter name="residuemass_C" value="160.030649"/>
105
+ <parameter name="residuemass_D" value="115.026943"/>
106
+ <parameter name="residuemass_E" value="129.042593"/>
107
+ <parameter name="residuemass_F" value="147.068414"/>
108
+ <parameter name="residuemass_G" value="57.021464"/>
109
+ <parameter name="residuemass_H" value="137.058912"/>
110
+ <parameter name="residuemass_I" value="113.084064"/>
111
+ <parameter name="residuemass_J" value="999999.000000"/>
112
+ <parameter name="residuemass_K" value="128.094963"/>
113
+ <parameter name="residuemass_L" value="113.084064"/>
114
+ <parameter name="residuemass_M" value="131.040485"/>
115
+ <parameter name="residuemass_N" value="114.042927"/>
116
+ <parameter name="residuemass_O" value="237.147727"/>
117
+ <parameter name="residuemass_P" value="97.052764"/>
118
+ <parameter name="residuemass_Q" value="128.058578"/>
119
+ <parameter name="residuemass_R" value="156.101111"/>
120
+ <parameter name="residuemass_S" value="87.032028"/>
121
+ <parameter name="residuemass_T" value="101.047679"/>
122
+ <parameter name="residuemass_U" value="150.953633"/>
123
+ <parameter name="residuemass_V" value="99.068414"/>
124
+ <parameter name="residuemass_W" value="186.079313"/>
125
+ <parameter name="residuemass_X" value="999999.000000"/>
126
+ <parameter name="residuemass_Y" value="163.063329"/>
127
+ <parameter name="residuemass_Z" value="999999.000000"/>
128
+ </search_summary>
129
+ <spectrum_query spectrum="result.00001.00001.2" spectrumNativeID="fixture_PEPTIDEK" start_scan="1" end_scan="1" precursor_neutral_mass="927.454847" assumed_charge="2" index="1" retention_time_sec="60.0">
130
+ <search_result>
131
+ <search_hit hit_rank="1" peptide="PEPTIDEK" peptide_prev_aa="-" peptide_next_aa="-" protein="fixture_protein" num_tot_proteins="1" num_matched_ions="14" tot_num_ions="14" calc_neutral_pep_mass="927.454927" massdiff="-0.000080" num_tol_term="2" num_missed_cleavages="0" num_matched_peptides="1">
132
+ <search_score name="xcorr" value="3.4290"/>
133
+ <search_score name="deltacn" value="0.0000"/>
134
+ <search_score name="spscore" value="2131.0"/>
135
+ <search_score name="sprank" value="1"/>
136
+ <search_score name="expect" value="9.47E-08"/>
137
+ </search_hit>
138
+ </search_result>
139
+ </spectrum_query>
140
+ </msms_run_summary>
141
+ </msms_pipeline_analysis>
Biomanus-V2/Experiment1/runs/test_103_native_curation/comet_manual_v2/result.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ CometVersion 2026.01 rev. 1 (e4f767c) /225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/runs/test_103_native_curation/comet_manual_v2/result 08/26/2026, 11:55:22 AM /225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_comet_proteins.fasta
2
+ scan num charge exp_neutral_mass calc_neutral_mass e-value xcorr delta_cn sp_score ions_matched ions_total plain_peptide modified_peptide prev_aa next_aa protein protein_count modifications retention_time_sec sp_rank
3
+ 1 1 2 927.454847 927.454927 9.47E-08 3.4290 0.0000 2131.0 14 14 PEPTIDEK -.PEPTIDEK.- - - fixture_protein 1 - 60.0 1
Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v1/test_dropkick_counts_coef.png ADDED

Git LFS Details

  • SHA256: 7d777124715a190396234b2049731cbe23a9a93d4c1e6a6fb58808b7ff890d3c
  • Pointer size: 131 Bytes
  • Size of remote file: 288 kB
Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v1/test_dropkick_counts_dropkick_scores.csv ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ,dropkick_score,dropkick_label
2
+ cell_001,0.21167373292121133,False
3
+ cell_002,0.08915921898422988,False
4
+ cell_003,0.16034755855404811,False
5
+ cell_004,0.1441492211779778,False
6
+ cell_005,0.6364453970811297,True
7
+ cell_006,0.14387755049352394,False
8
+ cell_007,0.17078514546748666,False
9
+ cell_008,0.07437676142292143,False
10
+ cell_009,0.14715692474162154,False
11
+ cell_010,0.18865021038956464,False
12
+ cell_011,0.2837952937233202,False
13
+ cell_012,0.0,False
14
+ cell_013,0.12102464938316111,False
15
+ cell_014,0.15512499005757316,False
16
+ cell_015,0.0,False
17
+ cell_016,0.0736908174514288,False
18
+ cell_017,0.14778919332050464,False
19
+ cell_018,0.3255191929209789,False
20
+ cell_019,0.18475382981015526,False
21
+ cell_020,0.16522189200972345,False
22
+ cell_021,0.9830668569880237,True
23
+ cell_022,0.9263501465520005,True
24
+ cell_023,0.9612230001045761,True
25
+ cell_024,0.973624057000724,True
26
+ cell_025,0.8894050562752531,True
27
+ cell_026,0.9599194600590912,True
28
+ cell_027,0.9703942522063652,True
29
+ cell_028,0.9897517262850504,True
30
+ cell_029,0.9170187576058237,True
31
+ cell_030,0.921925334540885,True
32
+ cell_031,0.9517866519825587,True
33
+ cell_032,0.9742735577193525,True
34
+ cell_033,0.9261803319201751,True
35
+ cell_034,0.972531339238718,True
36
+ cell_035,0.9770975468261703,True
37
+ cell_036,0.948592641510407,True
38
+ cell_037,0.9673214088481167,True
39
+ cell_038,0.9706628278066389,True
40
+ cell_039,0.9581218224758189,True
41
+ cell_040,0.9162460822837282,True
42
+ cell_041,0.9446995880230549,True
43
+ cell_042,0.9856734653548217,True
44
+ cell_043,0.961499133837947,True
45
+ cell_044,0.9690885318504799,True
46
+ cell_045,0.9794229026157916,True
47
+ cell_046,0.9779343777694172,True
48
+ cell_047,0.9790848669594511,True
49
+ cell_048,0.8944343714984916,True
50
+ cell_049,0.9725199767639783,True
51
+ cell_050,0.9741640878049969,True
52
+ cell_051,0.9611510797680554,True
53
+ cell_052,0.9643872279032696,True
54
+ cell_053,0.9701458088582179,True
55
+ cell_054,0.9817364312574324,True
56
+ cell_055,0.9570755183975417,True
57
+ cell_056,0.9172607843523611,True
58
+ cell_057,0.9656036962422292,True
59
+ cell_058,0.9776558814931056,True
60
+ cell_059,0.9177015845567479,True
61
+ cell_060,0.9570529269194965,True
62
+ cell_061,0.9834964733317515,True
63
+ cell_062,0.9637222385436384,True
64
+ cell_063,0.9896393602657423,True
65
+ cell_064,0.9755342601432779,True
66
+ cell_065,0.9857191752128077,True
67
+ cell_066,0.9540135776779699,True
68
+ cell_067,0.9708289542103516,True
69
+ cell_068,0.9188009404163375,True
70
+ cell_069,0.975428985773271,True
71
+ cell_070,0.9829701231004294,True
72
+ cell_071,0.990014148442265,True
73
+ cell_072,0.965027224000193,True
74
+ cell_073,0.95600817679354,True
75
+ cell_074,0.9586710663865836,True
76
+ cell_075,0.953115748531826,True
77
+ cell_076,0.9580482149404749,True
78
+ cell_077,0.9881756123541142,True
79
+ cell_078,0.9570947286955381,True
80
+ cell_079,0.9432586479804466,True
81
+ cell_080,0.943105657066092,True
Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v1/test_dropkick_counts_score.png ADDED

Git LFS Details

  • SHA256: 5eb73591914e98e17dcb06b23fdbe93f06aefd32631258dfe89ebfc547759788
  • Pointer size: 130 Bytes
  • Size of remote file: 81 kB
Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v2/test_dropkick_counts_coef.png ADDED

Git LFS Details

  • SHA256: 7d777124715a190396234b2049731cbe23a9a93d4c1e6a6fb58808b7ff890d3c
  • Pointer size: 131 Bytes
  • Size of remote file: 288 kB
Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v2/test_dropkick_counts_dropkick_scores.csv ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ,dropkick_score,dropkick_label
2
+ cell_001,0.21167373292121133,False
3
+ cell_002,0.08915921898422988,False
4
+ cell_003,0.16034755855404811,False
5
+ cell_004,0.1441492211779778,False
6
+ cell_005,0.6364453970811297,True
7
+ cell_006,0.14387755049352394,False
8
+ cell_007,0.17078514546748666,False
9
+ cell_008,0.07437676142292143,False
10
+ cell_009,0.14715692474162154,False
11
+ cell_010,0.18865021038956464,False
12
+ cell_011,0.2837952937233202,False
13
+ cell_012,0.0,False
14
+ cell_013,0.12102464938316111,False
15
+ cell_014,0.15512499005757316,False
16
+ cell_015,0.0,False
17
+ cell_016,0.0736908174514288,False
18
+ cell_017,0.14778919332050464,False
19
+ cell_018,0.3255191929209789,False
20
+ cell_019,0.18475382981015526,False
21
+ cell_020,0.16522189200972345,False
22
+ cell_021,0.9830668569880237,True
23
+ cell_022,0.9263501465520005,True
24
+ cell_023,0.9612230001045761,True
25
+ cell_024,0.973624057000724,True
26
+ cell_025,0.8894050562752531,True
27
+ cell_026,0.9599194600590912,True
28
+ cell_027,0.9703942522063652,True
29
+ cell_028,0.9897517262850504,True
30
+ cell_029,0.9170187576058237,True
31
+ cell_030,0.921925334540885,True
32
+ cell_031,0.9517866519825587,True
33
+ cell_032,0.9742735577193525,True
34
+ cell_033,0.9261803319201751,True
35
+ cell_034,0.972531339238718,True
36
+ cell_035,0.9770975468261703,True
37
+ cell_036,0.948592641510407,True
38
+ cell_037,0.9673214088481167,True
39
+ cell_038,0.9706628278066389,True
40
+ cell_039,0.9581218224758189,True
41
+ cell_040,0.9162460822837282,True
42
+ cell_041,0.9446995880230549,True
43
+ cell_042,0.9856734653548217,True
44
+ cell_043,0.961499133837947,True
45
+ cell_044,0.9690885318504799,True
46
+ cell_045,0.9794229026157916,True
47
+ cell_046,0.9779343777694172,True
48
+ cell_047,0.9790848669594511,True
49
+ cell_048,0.8944343714984916,True
50
+ cell_049,0.9725199767639783,True
51
+ cell_050,0.9741640878049969,True
52
+ cell_051,0.9611510797680554,True
53
+ cell_052,0.9643872279032696,True
54
+ cell_053,0.9701458088582179,True
55
+ cell_054,0.9817364312574324,True
56
+ cell_055,0.9570755183975417,True
57
+ cell_056,0.9172607843523611,True
58
+ cell_057,0.9656036962422292,True
59
+ cell_058,0.9776558814931056,True
60
+ cell_059,0.9177015845567479,True
61
+ cell_060,0.9570529269194965,True
62
+ cell_061,0.9834964733317515,True
63
+ cell_062,0.9637222385436384,True
64
+ cell_063,0.9896393602657423,True
65
+ cell_064,0.9755342601432779,True
66
+ cell_065,0.9857191752128077,True
67
+ cell_066,0.9540135776779699,True
68
+ cell_067,0.9708289542103516,True
69
+ cell_068,0.9188009404163375,True
70
+ cell_069,0.975428985773271,True
71
+ cell_070,0.9829701231004294,True
72
+ cell_071,0.990014148442265,True
73
+ cell_072,0.965027224000193,True
74
+ cell_073,0.95600817679354,True
75
+ cell_074,0.9586710663865836,True
76
+ cell_075,0.953115748531826,True
77
+ cell_076,0.9580482149404749,True
78
+ cell_077,0.9881756123541142,True
79
+ cell_078,0.9570947286955381,True
80
+ cell_079,0.9432586479804466,True
81
+ cell_080,0.943105657066092,True
Biomanus-V2/Experiment1/runs/test_103_native_curation/dropkick_manual_v2/test_dropkick_counts_score.png ADDED

Git LFS Details

  • SHA256: 5eb73591914e98e17dcb06b23fdbe93f06aefd32631258dfe89ebfc547759788
  • Pointer size: 130 Bytes
  • Size of remote file: 81 kB
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v1/ont-fast5-api/summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"channel": 7, "raw": [100, 101, 99, 102, 98, 103, 97, 104], "read_count": 1, "tracking": {"device_id": "fixture-device", "flow_cell_id": "fixture-flowcell", "run_id": "fixture-run", "version": "fixture"}}
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v1/pyranges/merged.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Chromosome Start End
2
+ chrTiny 0 12
3
+ chrTiny 20 30
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v1/results.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cases": [
3
+ {
4
+ "package": "ont-fast5-api",
5
+ "returncode": 0,
6
+ "command": [
7
+ "python",
8
+ "-c",
9
+ "import json,sys; from ont_fast5_api.fast5_file import Fast5File; h=Fast5File(sys.argv[1]); r=h.get_raw_data(); d={'channel':h.get_channel_info()['channel_number'],'read_count':len(h.status.read_info),'raw':[int(x) for x in r.tolist()],'tracking':h.get_tracking_id()}; h.close(); open(sys.argv[2],'w').write(json.dumps(d,sort_keys=True)+'\\n')",
10
+ "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_single_read.fast5",
11
+ "summary.json"
12
+ ],
13
+ "stdout_tail": "",
14
+ "stderr_tail": "",
15
+ "files": [
16
+ {
17
+ "path": "summary.json",
18
+ "size": 206
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "package": "ipython-cluster-helper",
24
+ "returncode": 1,
25
+ "command": [
26
+ "python",
27
+ "-c",
28
+ "import json,sys; from cluster_helper.cluster import get_engine_commands; c=get_engine_commands({'profile_dir':'/tmp/fixture-profile','cluster_id':'fixture'},2); open(sys.argv[1],'w').write(json.dumps({'count':len(c),'commands':c},sort_keys=True)+'\\n')",
29
+ "engine_commands.json"
30
+ ],
31
+ "stdout_tail": "",
32
+ "stderr_tail": "/225040511/miniconda3/envs/experiment1_test_pinned/ipython-cluster-helper-0.6.1-py36_0/lib/python3.6/site-packages/ipyparallel/apps/ipcontrollerapp.py:3: UserWarning: ipyparallel.apps.ipcontrollerapp is deprecated in ipyparallel 7. Use ipyparallel.controller\n warnings.warn(f\"{__name__} is deprecated in ipyparallel 7. Use ipyparallel.controller\")\nTraceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/225040511/miniconda3/envs/experiment1_test_pinned/ipython-cluster-helper-0.6.1-py36_0/lib/python3.6/site-packages/cluster_helper/cluster.py\", line 443, in <module>\n class BcbioSLURMEngineSetLauncher(SLURMLauncher, launcher.BatchClusterAppMixin):\nAttributeError: module 'ipyparallel.apps.launcher' has no attribute 'BatchClusterAppMixin'\n",
33
+ "files": []
34
+ },
35
+ {
36
+ "package": "pyranges",
37
+ "returncode": 0,
38
+ "command": [
39
+ "python",
40
+ "-c",
41
+ "import sys; import pyranges as pr; x=pr.read_bed(sys.argv[1]); x.merge().df.to_csv(sys.argv[2],sep='\\t',index=False)",
42
+ "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/regions_a.bed",
43
+ "merged.tsv"
44
+ ],
45
+ "stdout_tail": "",
46
+ "stderr_tail": "",
47
+ "files": [
48
+ {
49
+ "path": "merged.tsv",
50
+ "size": 48
51
+ }
52
+ ]
53
+ }
54
+ ]
55
+ }
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/ipython-cluster-helper/engine_commands.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default_limit": "1-00:00:00", "gb_to_mb": 2, "parsed": "02-03:04:05"}
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/ont-fast5-api/summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"channel": 7, "raw": [100, 101, 99, 102, 98, 103, 97, 104], "read_count": 1, "tracking": {"device_id": "fixture-device", "flow_cell_id": "fixture-flowcell", "run_id": "fixture-run", "version": "fixture"}}
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/pyranges/merged.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Chromosome Start End
2
+ chrTiny 0 12
3
+ chrTiny 20 30
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v2/results.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cases": [
3
+ {
4
+ "package": "ont-fast5-api",
5
+ "returncode": 0,
6
+ "command": [
7
+ "python",
8
+ "-c",
9
+ "import json,sys; from ont_fast5_api.fast5_file import Fast5File; h=Fast5File(sys.argv[1]); r=h.get_raw_data(); d={'channel':h.get_channel_info()['channel_number'],'read_count':len(h.status.read_info),'raw':[int(x) for x in r.tolist()],'tracking':h.get_tracking_id()}; h.close(); open(sys.argv[2],'w').write(json.dumps(d,sort_keys=True)+'\\n')",
10
+ "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_single_read.fast5",
11
+ "summary.json"
12
+ ],
13
+ "stdout_tail": "",
14
+ "stderr_tail": "",
15
+ "files": [
16
+ {
17
+ "path": "summary.json",
18
+ "size": 206
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "package": "ipython-cluster-helper",
24
+ "returncode": 0,
25
+ "command": [
26
+ "python",
27
+ "-c",
28
+ "import json,sys; from cluster_helper.slurm import SlurmTime,set_timelimit; from cluster_helper.utils import convert_mb; d={'parsed':repr(SlurmTime('2-03:04:05')),'default_limit':set_timelimit({})['timelimit'],'gb_to_mb':convert_mb(2048,'GB')}; open(sys.argv[1],'w').write(json.dumps(d,sort_keys=True)+'\\n')",
29
+ "engine_commands.json"
30
+ ],
31
+ "stdout_tail": "",
32
+ "stderr_tail": "",
33
+ "files": [
34
+ {
35
+ "path": "engine_commands.json",
36
+ "size": 72
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "package": "pyranges",
42
+ "returncode": 0,
43
+ "command": [
44
+ "python",
45
+ "-c",
46
+ "import sys; import pyranges as pr; x=pr.read_bed(sys.argv[1]); x.merge().df.to_csv(sys.argv[2],sep='\\t',index=False)",
47
+ "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/regions_a.bed",
48
+ "merged.tsv"
49
+ ],
50
+ "stdout_tail": "",
51
+ "stderr_tail": "",
52
+ "files": [
53
+ {
54
+ "path": "merged.tsv",
55
+ "size": 48
56
+ }
57
+ ]
58
+ }
59
+ ]
60
+ }
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/ipython-cluster-helper/resources.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"memory_in_gb": 2, "parsed": "02-03:04:05", "time_limit": "2-03:04:05"}
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/ont-fast5-api/summary.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"channel": 7, "raw": [100, 101, 99, 102, 98, 103, 97, 104], "read_count": 1, "tracking": {"device_id": "fixture-device", "flow_cell_id": "fixture-flowcell", "run_id": "fixture-run", "version": "fixture"}}
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/pyranges/merged.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Chromosome Start End
2
+ chrTiny 0 12
3
+ chrTiny 20 30
Biomanus-V2/Experiment1/runs/test_103_native_curation/group10_probe_v3/results.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cases": [
3
+ {
4
+ "package": "ont-fast5-api",
5
+ "returncode": 0,
6
+ "command": [
7
+ "python",
8
+ "-c",
9
+ "import json,sys; from ont_fast5_api.fast5_file import Fast5File; h=Fast5File(sys.argv[1]); r=h.get_raw_data(); d={'channel':h.get_channel_info()['channel_number'],'read_count':len(h.status.read_info),'raw':[int(x) for x in r.tolist()],'tracking':h.get_tracking_id()}; h.close(); open(sys.argv[2],'w').write(json.dumps(d,sort_keys=True)+'\\n')",
10
+ "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_single_read.fast5",
11
+ "summary.json"
12
+ ],
13
+ "stdout_tail": "",
14
+ "stderr_tail": "",
15
+ "files": [
16
+ {
17
+ "path": "summary.json",
18
+ "size": 206
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "package": "ipython-cluster-helper",
24
+ "returncode": 0,
25
+ "command": [
26
+ "python",
27
+ "-c",
28
+ "import json,sys; from cluster_helper.slurm import SlurmTime,set_timelimit; from cluster_helper.utils import convert_mb; c=json.load(open(sys.argv[1])); d={'parsed':repr(SlurmTime(c['time'])),'time_limit':set_timelimit({'time':c['time']})['timelimit'],'memory_in_gb':convert_mb(c['memory'],c['memory_unit'])}; open(sys.argv[2],'w').write(json.dumps(d,sort_keys=True)+'\\n')",
29
+ "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/test_scheduler_resources.json",
30
+ "resources.json"
31
+ ],
32
+ "stdout_tail": "",
33
+ "stderr_tail": "",
34
+ "files": [
35
+ {
36
+ "path": "resources.json",
37
+ "size": 73
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "package": "pyranges",
43
+ "returncode": 0,
44
+ "command": [
45
+ "python",
46
+ "-c",
47
+ "import sys; import pyranges as pr; x=pr.read_bed(sys.argv[1]); x.merge().df.to_csv(sys.argv[2],sep='\\t',index=False)",
48
+ "/225040511/project/Beyond_Prompt-Based_Planning/Biomanus-V2/Experiment1/data/fixtures/regions_a.bed",
49
+ "merged.tsv"
50
+ ],
51
+ "stdout_tail": "",
52
+ "stderr_tail": "",
53
+ "files": [
54
+ {
55
+ "path": "merged.tsv",
56
+ "size": 48
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ }