Skip to content

Conversation

@korikuzma
Copy link
Collaborator

close #11

@korikuzma korikuzma added enhancement New feature or request priority:high High priority labels Jan 23, 2025
@korikuzma korikuzma self-assigned this Jan 23, 2025
@korikuzma korikuzma requested a review from larrybabb January 23, 2025 19:04
@korikuzma korikuzma marked this pull request as ready for review January 23, 2025 19:04
Copy link

@quinnwai quinnwai left a comment

Choose a reason for hiding this comment

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

A few comments! One question and possibly a bug?

locusAlleleCount=34086,
cohort=StudyGroup(id="ALL", label="Overall"),
)
assert caf.focusAllele.root == "allele.json#/1"

Choose a reason for hiding this comment

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

Just clarifying, so I should always use .root for accessing the string for an iriReference? I'm putting in a VRS Allele ID in there, not sure if I'm using it right.

Copy link
Collaborator Author

@korikuzma korikuzma Jan 24, 2025

Choose a reason for hiding this comment

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

Just clarifying, so I should always use .root for accessing the string for an iriReference?

Yes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you give the example you're using?

Copy link

@quinnwai quinnwai Jan 24, 2025

Choose a reason for hiding this comment

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

Yeah it would look something like this (model dumped, excluding None):

{
  "type": "CohortAlleleFrequencyStudyResult",
  "sourceDataSet": {
    "id": "../tests/fixtures/1kGP.chr1.1000.vrs.vcf.gz",
    "type": "DataSet",
    "description": "Created 2025-01-24 14:34:54.383668"
  },
  "focusAllele": "ga4gh:VA.1WRXw4TC5DYsjC2QLyKux9C0xETLN3Yt",
  "focusAlleleCount": 248,
  "locusAlleleCount": 1184,
  "focusAlleleFrequency": 0.20945945945945946,
  "cohort": {
    "id": "USA",
    "type": "StudyGroup",
    "label": "USA"
  },
  "ancillaryResults": {
    "homozygotes": 1,
    "hemizygotes": 246,
    "phenotypes": [
      "USA"
    ]
  }
}

Choose a reason for hiding this comment

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

ok! In that case, it could be helpful to users to have on the iriReference docs that the string value is nested in .root!

@korikuzma
Copy link
Collaborator Author

@larrybabb I think we should merge this and make a dev release for @quinnwai to use. I can then make a new dev release with breaking changes from 2025 pre-release snapshots.

@quinnwai you'll want to make sure you pin the exact version in GKS AnVIL because we expect many breaking changes in the dev releases.

Copy link
Contributor

@larrybabb larrybabb left a comment

Choose a reason for hiding this comment

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

+1 LGTM

@korikuzma korikuzma merged commit cf72234 into main Feb 13, 2025
16 checks passed
@korikuzma korikuzma deleted the issue-10 branch February 13, 2025 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority:high High priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update base and aac_2017 models in Addendum to 1.0.0 Trial Use Review Ballot (November 2024)

4 participants