FASTA Combiner¶
Combines up to five FASTA inputs into a single FASTA output. It trims surrounding whitespace for each provided input, preserves the provided order (fasta_1 to fasta_5), and inserts a single newline between non-empty blocks. If no inputs are provided or all are empty, it raises an error.

Usage¶
Use this node to merge multiple FASTA strings produced upstream (e.g., separate sequences, chains, or fragments) into one consolidated FASTA string for downstream analysis or prediction steps. It is useful when assembling a final set of sequences from multiple sources.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| fasta_1 | False | FASTA | First optional FASTA content block to include in the combined output. | >seqA MKTIIALSYIFCLVFA >seqB GGGGTTTAAACCC |
| fasta_2 | False | FASTA | Second optional FASTA content block to include. | >seqC ACDEFGHIKLMNPQRSTVWY |
| fasta_3 | False | FASTA | Third optional FASTA content block to include. | >seqD MSSSSSSSSSSS |
| fasta_4 | False | FASTA | Fourth optional FASTA content block to include. | >seqE TTTTTTTTTTTT |
| fasta_5 | False | FASTA | Fifth optional FASTA content block to include. | >seqF VVVVVVVVVVVV |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| combined_fasta | FASTA | The concatenated FASTA string composed of all non-empty provided inputs, separated by a single newline. | >seqA MKTIIALSYIFCLVFA >seqB GGGGTTTAAACCC >seqC ACDEFGHIKLMNPQRSTVWY |
Important Notes¶
- At least one input required: The node raises an error if all inputs are empty or missing.
- Order preserved: Inputs are processed in numeric order (fasta_1 through fasta_5); the combined output follows this order.
- Whitespace handling: Each provided FASTA block is trimmed; a single newline is inserted between non-empty blocks as needed.
- No validation of FASTA format: The node does not validate headers or sequence characters; it assumes inputs are well-formed FASTA.
- No deduplication/merging of records: Headers and sequences are kept as-is; duplicate IDs or overlapping records are not modified.
Troubleshooting¶
- Error: 'At least one FASTA input is required': Provide at least one non-empty FASTA input (e.g., fill fasta_1).
- Unexpected concatenation issues: Ensure each input is valid FASTA and includes proper headers starting with '>' and appropriate line breaks within each record.
- Missing or extra newlines: The node adds a single newline between non-empty inputs, but it does not reformat internal record line lengths; ensure upstream nodes provide correctly formatted FASTA lines if strict formatting is required.
Example Pipelines¶