Skip to content

Terminator at start of sequence results in failure to parse transterm output file #6

@wholtz

Description

@wholtz

Minimal reproduction:

$ echo $'>fails\nTCCAGGCATCAAATAAAACGAAAGGCTCAGTCGAAAGACTGGGCCTTTCGTTTTATCTGTTGTTTGTCGGTGAACGCTCT' > fails.fasta && cryptkeeper -i fails.fasta -o repo
[2026-05-14 21:27:28,190] Cryptkeeper: Running RhoTermPredict
[2026-05-14 21:27:28,191] Cryptkeeper: Running TransTerm
Traceback (most recent call last):
  File "/opt/conda/bin/cryptkeeper", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/cryptkeeper/cryptkeeper.py", line 124, in main
    result = cryptkeeper(
             ^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/cryptkeeper/cryptkeeper.py", line 523, in cryptkeeper
    transterm_predictions = transterm(input_file_name, circular_length)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/cryptkeeper/dependency_wrappers.py", line 134, in transterm
    final_list = _read_transterm_output(temp_dir + ".predictions.txt")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/cryptkeeper/dependency_wrappers.py", line 175, in _read_transterm_output
    new_entry["seq_tail"] = split_line[4]
                            ~~~~~~~~~~^^^
IndexError: list index out of range

I expected that input would be valid, cryptkeeper would exit without an error, and I'd get the html page with a plot.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions