Skip to content

[TheiaViral] Adding segment information to consensus fasta headers for flu sequences #1016

Description

@shelby-bennett

🆒

📌 Explain the Request

We had a user request for the addition of the segment information to be added to the ivar.consensus fastas generated when running TheiaViral on flu samples. The desired output would be similar to how IRMA adds the information in TheiaCov. Currently, the fasta headers have the refseq accession id appended to the end of the sample name in the header which then requires users to search for the accession in NCBI to determine the segment type.

Two suggestions were made which could be implemented:
Current implementation:
>sample_name_NC_026431.1

  1. Append the segment abbreviation to the end of the header:
    Suggested implementation:
    >sample_name_MP
  2. Append the reference sequence header in place of the reference sequence name:
    >sample_name_NC_026431.1 Influenza A virus (A/California/07/2009(H1N1)) segment 7 matrix protein 2 (M2) and matrix protein 1 (M1) genes, complete cds
    NOTE: with this addition, the consensus files will more than likely begin to clash with the max character length allowed for vadr (52 characters). This approach will require the addition of the --noseqmaxname to the organism parameters wdl.

I've attached two example fastas for reference, but feel free to let me know if you need any additional information.

theiacov.irma.consensus.fasta.txt
theiaviral.ivar.consensus.fasta.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementThis issue improves an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions