-
Notifications
You must be signed in to change notification settings - Fork 0
Draft of functions for quantifying power of families for rare variant discovery #14
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
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
08c50ec
drafting the ibd and penetrance funcs
CNuge 87ab21a
check all pushed
CNuge 4dffba9
vignette setup
CNuge 24fa56f
progress on vignette
CNuge add56a4
adding to vignette
CNuge 37b1d83
adding notes
CNuge 9f94b49
notes on the vignette
CNuge ef6de5a
anon examples
CNuge a483348
draft of relatedness vignette
CNuge 486e4e9
working on draft of second vignette
CNuge f871511
simple outline of proposed sections:
CNuge bf241e1
adding description to the vignette
CNuge 957557d
incorporating megs suggestions from review
CNuge 58b0fe7
addressing more commentS
CNuge 1903a4f
all comments addressed
CNuge 0a836b4
Merge pull request #15 from SequenceBio/vignette
CNuge 32b0909
Merge branch 'dev' of https://github.com/SequenceBio/seqbio.variant.s…
CNuge 4ec2c60
note to readme on the vignette in R
CNuge 3c4529c
removing double license
CNuge c88b146
improving descriptions of inputs and outputs in the vignette
CNuge 18b55d8
notes on ranking
CNuge 6ff3fb0
updates to notes
CNuge f5fcca2
changes to docs based on feedback
CNuge de3fda5
standardizing onto periods not underscores
CNuge 3e57d76
changes to docs based on feedback
CNuge 469428b
Merge branch 'dev' of https://github.com/SequenceBio/seqbio.variant.s…
CNuge 0fbdf14
bringing in new dev changed
CNuge 6198cc2
Merge pull request #18 from SequenceBio/penetrance_vignette
CNuge 6093888
bugfix for the processing of the actual d,n
CNuge b60a731
docs and testing
CNuge 6fd78a6
adding in unit test for the scoring
CNuge 92da231
Merge pull request #19 from SequenceBio/examples
CNuge 294a5e0
encoding error graceful handling
CNuge 23c9458
Merge pull request #20 from SequenceBio/examples
CNuge 72cdc3c
draft of readme
CNuge c76892c
adding preamble
CNuge b0fd92e
expanding preamble
CNuge ae41dd1
Merge pull request #23 from SequenceBio/readme_expand
CNuge 9b87599
generic variable names
CNuge 6aefe61
adding dependencies
CNuge 306549f
test version
CNuge 6b822d6
CI checks
CNuge d542adf
Merge pull request #24 from SequenceBio/ci_add
CNuge 7197011
all CRAN errors and warnings addressed
CNuge 23e03e5
re-add the unit tests
CNuge 3126af6
renames to address notes
CNuge 6128c0a
rename throughout
CNuge a4fad77
Merge pull request #27 from SequenceBio/rename
CNuge f66eaa5
improvements to vignettes
CNuge bb74782
improving vignette tables
CNuge ca1ec24
abstract away the knitr code
CNuge 9f435df
improving vignette formatting
CNuge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| name: Bug Report | ||
| about: Create a report about something not working as expected. | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## **Describe the bug** | ||
| A clear and concise description of what the bug is. | ||
|
|
||
| ## **To reproduce the bug** | ||
| Steps to reproduce the observed issue: | ||
| 1. Go to '...' | ||
| 2. Click on '....' | ||
| 3. Scroll down to '....' | ||
| 4. See error | ||
|
|
||
| ## **Expected behaviour** | ||
| A clear and concise description of what you expected to happen. | ||
|
|
||
| ## **Screenshots and data** | ||
| If applicable, add input/output data (files or cloud location) or screenshots to help explain your problem. | ||
|
|
||
| ## **Additional context** | ||
| Add any other context about the problem here. | ||
|
|
||
| ## **Proposed troubleshooting steps** | ||
| Describe how you're going to try to fix it! | ||
| - [ ] This can be a task list | ||
|
|
||
| ## **Help requests** | ||
| Describe any specific aspects of the problem/solution where help from a teammate is required. Tag them so they're aware. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| --- | ||
| name: Feature Addition | ||
| about: Suggest an idea for this project. | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## **Is your feature request related to a problem? Please describe.** | ||
| A clear and concise description of what the problem is. Ex. Currently we cannot test ___, the way ___ is done is disorganized [...] | ||
|
|
||
| ## **Describe the solution you'd like** | ||
| A clear and concise description of what you want to happen, in plain english. | ||
|
|
||
| ## **Describe the plan** | ||
| A clear and concise description of the path forward as you see it. Describe any uncertainties or alternative solutions that need to be compared. | ||
|
|
||
| ### **TODO** | ||
| - [ ] Break the plan down into specifics | ||
|
|
||
| ## **Additional context** | ||
| Add any other context or screenshots about the feature request here. | ||
|
|
||
| ## **Help requests** | ||
| Describe any specific aspects of the problem/solution where help from a teammate is required. Tag them so they're aware. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Overview of Pull Request | ||
| A brief description of _why_ this change is necessary (couple of sentences/short paragraph). | ||
|
|
||
| ## Release notes | ||
| A brief description of what this change is in plain english. What does this change add, fix, or address? (couple of sentences/short paragraph) | ||
|
|
||
| ## Closes the following issues | ||
| - _[Links to any relevant GitHub Issues]_ | ||
|
|
||
| ## Pre-review checklist | ||
| Make sure all these boxes are checked before tagging a reviewer! | ||
|
|
||
| - [ ] The PR title is a concise, present-tense summary of the change | ||
| - [ ] The PR is linked to any relevant GitHub Issues, if they exist | ||
| - [ ] The PR is against the intended branch, and is mergeable | ||
| - [ ] The code is sufficiently tested (unit tests and real world experiments, where applicable) | ||
| - [ ] The code is linted and meets style guidelines | ||
| - [ ] The changelog has been updated | ||
| - [ ] I reviewed the PR myself before requesting a review from others | ||
|
|
||
| ## Pre-release notes | ||
| * External dependencies affected | ||
| - [ ] _List any dependencies that may be affected by this change or need to be updated to align with this change_ | ||
| * Post-release tasks | ||
| - [ ] _List any rake tasks or other TODOs that need to be sorted after this change is released_ |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: ContiniousIntegrationChecks | ||
| run-name: ${{ github.actor }} triggered CI run with event ${{ github.event_name }} for branch ${{ github.ref }} | ||
| on: | ||
| push: | ||
| branches: [ main, ci_add] | ||
| pull_request: | ||
| branches_ignore: [] | ||
| permissions: | ||
| id-token: write | ||
| contents: read # This is required for actions/checkout | ||
| jobs: | ||
| fullCI: | ||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
| name: CI test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." | ||
| - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
| - run: echo "The job's status is ${{ job.status }}." | ||
| - name: Git clone the repository | ||
| uses: actions/checkout@v4 | ||
| - name: Set up R env | ||
| uses: r-lib/actions/setup-r@v2 | ||
| - name: Set up conda | ||
| uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| auto-activate-base: false | ||
| python-version: 3.12 | ||
| channels: bioconda, conda-forge, defaults | ||
| - name: Conda create env and install dependencies | ||
| shell: bash -l {0} | ||
| run: | | ||
| conda create -n test_r r-base r-devtools r-testthat | ||
| conda activate test_r | ||
| Rscript -e "testthat::test_local()" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,23 @@ | ||
| Package: seqbio.variant.scoring | ||
| Title: Score evidence of rare variants' association with disease status in a family, based on relationships of individuals | ||
| Package: KinformR | ||
| Title: Relationship-informed pedigree and variant scoring | ||
| Version: 0.1.0 | ||
| Authors@R: | ||
| person("Cameron", "Nugent", , "cam.nugent@sequencebio.com", role = c("aut", "cre"), | ||
| comment = c(ORCID = "0000-0002-1135-2605")) | ||
| Description: | ||
| This R package is designed to score rare variants, assigning values based on | ||
| the disease status of individuals, the presence or absence of a rare variant | ||
| in those individuals, and their pairwise coefficients of relatedness. | ||
| The package uses a custom formula to assign value to a variant that gives | ||
| more weight to shared variants common to distantly related affected | ||
| individuals. The variant status for unaffected individuals can optionally | ||
| be considered as well, with the highest scoring values being given to | ||
| closely related individuals that do not share a variant of interst. | ||
| Since variants can be incompletely penetrant, the scoring can be based | ||
| solely on the affected individuals, or the weight of unaffected evidence | ||
| can be customized. | ||
| The KinformR R package is meant to aid in comparative evaluation of families | ||
| and candidate variants in rare-variant association studies. The package can be used for | ||
| two methodologically overlapping but distinct purposes. First, the prior to any genetic or genomic | ||
| evaluation, evaluation of relative detection power of pedigrees, can direct recruitment | ||
| efforts by showing which unsampled individuals would be the most meaningful additions to a study. | ||
| Second, after sequencing and analysis, variants based on association with disease status | ||
| and familial relationships of individuals, aids in variant prioritization. | ||
| License: MIT + file LICENSE | ||
| Encoding: UTF-8 | ||
| Roxygen: list(markdown = TRUE) | ||
| RoxygenNote: 7.3.2 | ||
| VignetteBuilder: knitr | ||
| Suggests: | ||
| devtools, | ||
| testthat, | ||
| knitr |
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,21 @@ | ||
| YEAR: 2025 | ||
| COPYRIGHT HOLDER: seqbio.variant.scoring authors | ||
| # MIT License | ||
|
|
||
| Copyright (c) 2025 KinformR Sequence Bioinformatics Inc. | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,17 @@ | ||
| # Generated by roxygen2: do not edit by hand | ||
|
|
||
| S3method(sum,fam.scores) | ||
| export(add.fam.scores) | ||
| export(assign.status) | ||
| export(build.relation.dict) | ||
| export(calc.rv.score) | ||
| export(encode.rows) | ||
| export(ibd) | ||
| export(penetrance) | ||
| export(read.indiv) | ||
| export(read.pedigree) | ||
| export(read.relation.mat) | ||
| export(read.var.table) | ||
| export(score) | ||
| export(score.fam) | ||
| export(score.pedigree) | ||
| export(score.variant.status) |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.