fetch_record
Fetch a sequence by accession from an authoritative archive (NCBI Nucleotide or Protein, ENA, UniProtKB, the iGEM Registry, Addgene, or the EBI Dbfetch gateway) and hand it downstream as a real record with its annotations. This is how a pipeline starts from a published sequence rather than from whatever happens to be open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | Dbfetch only: which of its databases. Only applies when source is dbfetch. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| format | No | Dbfetch only: which of that database's formats. Only applies when source is dbfetch. | |
| source | No | which archive holds it. Values: ncbi (NCBI Nucleotide), ncbi-protein (NCBI Protein), ena (ENA), uniprot (UniProtKB), igem (iGEM Registry), addgene (Addgene), dbfetch (EBI Dbfetch). | ncbi |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| accession | Yes | the accession to fetch, e.g. NC_005816, U49845, P38398, BBa_R0040. An NCBI accession may carry a window: `NC_005816 REGION: 5000..7000`. | |
| record_index | No | which record to emit when the fetched file holds several (0-based). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the record name the archive gave it | |
| length | Yes | its length in bases (or residues, for a protein) | |
| record | Yes | the fetched sequence, ready for a downstream node's $subject | |
| circular | Yes | whether the archive says it is circular | |
| provenance | Yes | the archive, the accession, the URL and when it was fetched — what makes the result re-fetchable | |
| featureCount | Yes | how many annotations came with it |