Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated h5n1-cattle-outbreak phylo build failure #113

Closed
joverlee521 opened this issue Dec 30, 2024 · 2 comments · Fixed by #114
Closed

Automated h5n1-cattle-outbreak phylo build failure #113

joverlee521 opened this issue Dec 30, 2024 · 2 comments · Fixed by #114
Assignees

Comments

@joverlee521
Copy link
Contributor

Error from augur refine

[batch] [2024-12-30T18:13:29+00:00] ERROR: TreeAnc.optimal_branch_length: terminal node alignments required; sequence is missing for leaf: 'A/PETFOOD/USA_OR/24-037325-011/2024'. Missing terminal sequences can be inferred from sister nodes by rerunning with `reconstruct_tip_states=True` or `--reconstruct-tip-states`
[batch] [2024-12-30T18:13:29+00:00] ERROR from TreeTime: This error is most likely due to a problem with your input data.
@joverlee521 joverlee521 self-assigned this Dec 30, 2024
@joverlee521
Copy link
Contributor Author

I could not find the strain name A/PETFOOD/USA_OR/24-037325-011/2024 in results/h5n1-cattle-outbreak/ha/default/aligned.fasta, but when I searched for PETFOOD, I found the strain A/PETFOOD/USA:OR/24-037325-011/2024.

So there's a mismatch of strain name:

strain name file
A/PETFOOD/USA:OR/24-037325-011/2024 results/h5n1-cattle-outbreak/ha/default/aligned.fasta
A/PETFOOD/USA_OR/24-037325-011/2024 results/h5n1-cattle-outbreak/ha/default/tree-raw.nwk

The mismatch is caused by the strain name being modified by iqtree during augur tree (nextstrain/augur#1084).

@joverlee521
Copy link
Contributor Author

A/PETFOOD/USA:OR/24-037325-011/2024 is a constructed strain name for an SRA record ingested by the Andersen lab, so I'll do a couple things to update the data:

  1. Update construct_strain_name to align with iqtree's renameString to avoid the invalid characters
  2. Update create_new_record to parse the country field to account for locations such as USA:OR.

joverlee521 added a commit that referenced this issue Dec 30, 2024
Replace invalid characters with `_` to match iqtree¹ so augur tree will
not modify strain names and cause a mismatch between the tree and the
alignment FASTA.²

Keeps the previous removal of whitespace in place to ensure that the
previous valid strain names do not change.

¹ <https://github.com/iqtree/iqtree2/blob/74da454bbd98d6ecb8cb955975a50de59785fbde/utils/tools.cpp#L607>
² <#113>
joverlee521 added a commit that referenced this issue Dec 30, 2024
Use the augur.curate.parse_genbank_location function to parse the
country field since we've now seen an example of it formatted as
the GenBank geolocation format ("USA:OR") in the SRA data.¹

¹ <#113>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant