Add gene coverage columns during ingest workflow - #36
Merged
Conversation
joverlee521
reviewed
Mar 25, 2024
joverlee521
left a comment
Contributor
There was a problem hiding this comment.
Thanks for walking through all the methods you've tried and where we've landed!
I've left some minor comments, but I think my main question is whether or not we still need the E_indicator column? It seems extra now that we can have the E_coverage column.
j23414
added a commit
that referenced
this pull request
Mar 27, 2024
#36 (comment) Since we are not using the E_indicator column, drop it. We have separate steps to calculate the E_coverage column.
Contributor
Author
|
Thanks @joverlee521 ! This PR is ready for the next round of reviews |
j23414
added a commit
that referenced
this pull request
Apr 10, 2024
#36 (comment) Since we are not using the E_indicator column, drop it. We have separate steps to calculate the E_coverage column.
j23414
force-pushed
the
add-gene-coverage-columns
branch
from
April 10, 2024 19:18
9622474 to
3e273e1
Compare
j23414
added a commit
that referenced
this pull request
Apr 15, 2024
#36 (comment) Since we are not using the E_indicator column, drop it. We have separate steps to calculate the E_coverage column.
j23414
force-pushed
the
add-gene-coverage-columns
branch
from
April 15, 2024 18:19
3e273e1 to
7b24c9f
Compare
This is using the Nextclade "coverage" as "genome_coverage" and the Nextclade "failedCdses" to check if E_coverage is present or not. fixup: use 1 instead of true
This can be one gene or a set of genes, can then be used to calculate gene_coverage columns.
Move intermediate files to the "data" folder
Adds the following rules for gene coverage * calculate_gene_coverage: calls a python script which takes a Nextclade CDS translation FASTA and calculates (valid AA)/(total length). The percentage is rounded to 3 significant figures. * aggregate_gene_coverage_by_gene: combines the gene_coverage files by gene (e.g. ["E", "NS1"] ) across all serotypes (e.g. denv1-4) * appends_gene_coverage_columns: Add each gene_coverage column (e.g. "E_coverage", "NS1_coverage") to the the final metadata
Co-authored-by: Jover Lee <joverlee521@gmail.com>
#36 (comment) Since we are not using the E_indicator column, drop it. We have separate steps to calculate the E_coverage column.
…g params so they don't get out of sync between rules
Encode serotype and gene as part of the directory structure where possible.
j23414
force-pushed
the
add-gene-coverage-columns
branch
from
April 16, 2024 22:09
7b24c9f to
f6a620d
Compare
As suggested by #36 (comment) Merge ID should be the first item in the map
joverlee521
approved these changes
Apr 23, 2024
joverlee521
left a comment
Contributor
There was a problem hiding this comment.
Thank you for continuing to push on this @j23414! This looks good to merge to me 👍
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
Several approaches were explored to add
{gene}_coveragecolumns during ingest workflow (as opposed to during phylogenetic workflow). The different approaches were summarized by @joverlee521 and @jameshadfield and copied here for context of this PR, along with added comments from @j23414 in [comments]:New Metadata
To view the new "E_coverage" columns, feel free to download the new metadata at:
The new {gene}_coverage columns are the rightmost columns.
Related issue(s)
Checklist