get_reads
Fetch aligned reads overlapping a genomic interval from indexed BAM/CRAM files. Apply samtools-style flag filters and mapping quality thresholds.
Instructions
Alignments overlapping an interval from indexed BAM/CRAM. Flag filters follow samtools -f/-F. CRAM needs a matching reference unless self-contained. Not implemented in this build: returns error code 'unsupported' (E4).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| interval | Yes | ||
| reference | No | ||
| max_records | No | Lower the record limit. | |
| exclude_flags | No | ||
| require_flags | No | ||
| include_sequence | No | ||
| min_mapping_quality | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Set when status is error. | |
| errors | No | Per-source failures in partial results. | |
| limits | No | ||
| status | Yes | ||
| warnings | No | ||
| operation | Yes | ||
| provenance | No | ||
| truncation | No | ||
| source_status | No | ||
| schema_version | No | 1 |