ct2db
Quick Start
- Command:
ct2db [options] input.ct ... - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/ct2db - Version observed locally:
1.0 - Help:
ct2db -h
When To Use This Tool
- Convert Zuker-style
.ctconnectivity tables into dot-bracket notation. - Turn RNA structure files into an extended FASTA representation for downstream tools.
- Remove pseudoknots or normalize modified bases during conversion.
- Batch-convert one or more
.ctfiles with a single command.
Common Patterns
# 1) Basic conversion
ct2db structure.ct > structure.db.fa
# 2) Remove pseudoknots during conversion
ct2db --no-pk structure.ct > structure_no_pk.db.fa
# 3) Override the FASTA header
ct2db --fasta-header sample_01 structure.ct > sample_01.db.fa
Recommended Workflow
- Confirm the input really is a
.ctconnectivity-table file. - Decide whether you need pseudoknot removal or replacement of modified bases before export.
- Convert to extended FASTA and inspect both the sequence and dot-bracket lines.
- Keep the original
.ctfile if you will need richer connectivity information later.
Guardrails
ct2dbwrites converted sequences to stdout.- Help and version are available as
-h/--helpand-V/--version. --filename-suffixdefaults to removing.ctwhen deriving FASTA headers from filenames.--no-pkremoves pseudoknots, which can change structure interpretation for downstream analyses.--no-modifiedreplaces non-canonical nucleotides withN.