Skip to content

[bug report] Error of dealing with file extension when saving bpp file #25

@heqin-zhu

Description

@heqin-zhu

Thank you for your excellent work on MXfold2! While using the tool to save bpp files, I encountered a bug: the line of code at the link below incorrectly splits the sequence name (header) in the FASTA file into a "name" and "extension", leading to truncated filenames for the output bpp files.

Link to the problematic code:

fn = os.path.splitext(fn)[0]

For example, when processing the FASTA file tmp.fasta with the header:

>tmRNA_Xyle.fast._TRW-155920_1-355
AGUAUCUGUAGUCGUC

Running the command mxfold2 predict @./models/TrainSetAB.conf tmp.fasta --bpp . generates a bpp file named tmRNA_Xyle.fast.bpp (incorrectly truncated, missing the _TRW-155920_1-355 suffix) instead of using the full sequence name.

To resolve this issue, I recommend removing the aforementioned line of code, as it unnecessarily splits the sequence header and causes the filename truncation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions