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

feat!: add base and aac-2017 models from 1.0.0-ballot.2024-11.2 release #14

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

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?

src/ga4gh/va_spec/base/caf_study_result.py Outdated Show resolved Hide resolved
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!

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)
2 participants