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

AG-1117: Add new ensembl info fields to gene_info transform #95

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

jaclynbeck-sage
Copy link
Contributor

Adds a nested ensembl_info field to the gene_info transform per this JIRA task. The nested field contains variables:

  • ensembl_release (number)
  • ensembl_possible_replacements (list, may be empty)
  • ensembl_permalink (URL. Currently, if no Ensembl archive is available for the Ensembl release of the gene, the URL will be for the most recent available archive that is older than the gene's Ensembl release.)

I spot-checked the output JSON file and confirmed that it the only changes are the addition of the ensembl_info data, which has the structure defined in the JIRA task.

We don't have tests written for the gene_info transform so there are none to update.

df=target_list,
grouping="ensembl_gene_id",
new_column="target_nominations",
drop_columns=["ensembl_gene_id"],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: changes like this are from the black formatter, I didn't change anything functional.

@@ -97,6 +106,21 @@ def transform_gene_info(
axis=1,
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Real changes I made start here.

@jaclynbeck-sage jaclynbeck-sage marked this pull request as ready for review November 4, 2023 00:21
Copy link
Contributor

@JessterB JessterB left a comment

Choose a reason for hiding this comment

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

This looks good, although I still need to think about whether this will work for us:

Currently, if no Ensembl archive is available for the Ensembl release of the gene, the URL will be for the most recent available archive that is older than the gene's Ensembl release.)

Regardless, this will unblock feature implementation while we figure out if those links are what we want.

@JessterB JessterB merged commit 0ab3803 into dev Nov 6, 2023
9 checks passed
@JessterB JessterB deleted the jbeck/AG-1117/gene_info_new_ensembl_fields branch November 6, 2023 19:33
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.

2 participants