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

Switch Andersen lab metadata #54

Merged
merged 8 commits into from
Jun 10, 2024
Merged

Conversation

joverlee521
Copy link
Contributor

Description of proposed changes

Uses the latest automated metadata for the Andersen lab ingest workflow and includes small improvements for the Andersen lab ingest.

I ran the workflow locally then compared the output metadata with the production metadata on S3. There were no differences in the previous records, but I do see an addition of 382 records from the Andersen lab ingest.

Related issue(s)

Resolves #53

Checklist

  • Checks pass

Previous metadata file in the Andersen lab repo is no longer getting
updated. It was last updated April 26, 2024.¹

The repo now automatically updates a new metadata CSV file since
andersen-lab/avian-influenza#2

¹ https://github.com/andersen-lab/avian-influenza/blob/f04267ba8d2fcace275bd5b01e120abf036e3fec/metadata/PRJNA1102327_metadata.csv
Fixes critical errors that prevented the andersen-lab ingest workflow
from running due to the switch to the new automated CSV file in the
previous commit.

There will be a a series of other improvements in subsequent commits to
clean up the workflow.
The automated CSV file from Andersen lab includes the region and country
columns as `geo_loc_name_country_continent` and `geo_loc_name_country`
respectively, so we no longer have to hardcode their values.
Preparing for using the same script for the Andersen lab ingest, where
the `old_name` for host values include more variations on
capitalizations.
The automated metadata has a lot more host values so it makes more
sense to use the same `transform-host` script as the NCBI ingest.
This also helps to ensure that they all use the same standard hosts.
Instead of doing custom date transformations in `curate-andersen-lab-data`,
just use `augur curate format-dates`.
Allow users to add annotations for the Andersen lab data.
I didn't want to use the user annotations for 150+ records' date and
division data, so I opted to just join the old metadata with the
new automated metadata.
@joverlee521 joverlee521 requested a review from a team June 10, 2024 22:14
Copy link
Member

@trvrb trvrb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me. The resulting metadata also looks as it should.

@joverlee521 joverlee521 merged commit 0ec0870 into master Jun 10, 2024
8 checks passed
@joverlee521 joverlee521 deleted the switch-andersen-metadata branch June 10, 2024 22:51
@joverlee521
Copy link
Contributor Author

I triggered the ingest-ncbi GH Action workflow after merging to update the S3 data.

@joverlee521 joverlee521 mentioned this pull request Jun 11, 2024
1 task
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 this pull request may close these issues.

ingest/andersen-lab: Switch to automated CSV file
2 participants