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

vidrl_upload: Update VACCINE_MAPPING to match proxies #167

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

joverlee521
Copy link
Contributor

Description of proposed changes

Instead of using the strains recommended by the vaccine composition for the Southern Hemisphere, match to the proxy reference strains that VIDRL provides in their flat files.

Related issue(s)

Related to #166

Checklist

  • Checks pass

Instead of using the strains recommended by the vaccine composition for
the Southern Hemisphere, match to the proxy reference strains that
VIDRL provides in their flat files.
@joverlee521
Copy link
Contributor Author

I parsed the proxy reference strains provided in the flat files with

for file in $(find '/Users/joverlee/Documents/WHO CC Melb antigenic data/oneDrive flat files' -type f -name '**_flat_file.csv'); do
    csvtk cut -f 'antisera,reference antigen,reference passage' "${file}" \
        | csvtk filter2 -f '$antisera in ("SH2024e", "SH2024c", "SERAPOOLe", "SERAPOOLc")' \
        | csvtk replace -f 'reference antigen' -p '(.*\d{4})pool$' -r '$1' \
        | csvtk uniq \
        | csvtk del-header >> all_vidrl_human_sera.csv
done

csvtk add-header -n 'antisera,reference antigen,reference passage' all_vidrl_human_sera.csv \
    | csvtk summary -g 1,2 -f 3:uniq

@joverlee521 joverlee521 merged commit ce07b5c into master Nov 7, 2024
@joverlee521 joverlee521 deleted the fix-vidrl-vaccine-map branch November 7, 2024 22:49
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.

1 participant