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

kalis v2 #4

Merged
merged 43 commits into from
Nov 13, 2024
Merged

kalis v2 #4

merged 43 commits into from
Nov 13, 2024

Conversation

louisaslett
Copy link
Owner

This PR adds new functionality required for the LOCATOR methodology in forthcoming paper.

The most important additions include:

  • Checkpointing for faster scanning of genomes for sequential inference at consecutive variants;
  • An order n clustering algorithm for real numbers where clusters are defined by a fixed separating distance;
  • Functions for constructing and testing clade matrices (expected genetic relatedness matrices) and discrete sprig calls.

Together with a variety of smaller enhancements.

ryanchrist and others added 27 commits September 23, 2024 11:43
… using checkpointing to have kalis sequentially visit (infer ancestries at) consecutive target variants
…led runs -- might need to revisit this if in the new context we need to revert back to h5write .
W  checking dependencies in R code (488ms)
   '::' or ':::' import not declared from: ‘data.table’
   Namespaces in Imports field not imported from:
     ‘methods’ ‘prettyunits’
     All declared Imports should be used.
   There are ::: calls to the package's namespace in its code. A package
     almost never needs to use ::: for its own objects:
     ‘ResetTable’ ‘pkgVars’
W  checking S3 generic/method consistency ...
   targets:
     function(x)
   targets.kalisIterator:
     function(iter)

   print:
     function(x, ...)
   print.kalisIterator:
     function(iter)

   plot:
     function(x, ...)
   plot.kalisIterator:
     function(iter)
   See section ‘Generic functions and methods’ in the ‘Writing R
   Extensions’ manual.
N  checking R code for possible problems (3.8s)
   DistMat.GM: no visible binding for global variable ‘sd’
   MakeSolveSchedule : <anonymous>: no visible binding for global variable
     ‘sequential’
   MakeSolveSchedule : <anonymous>: no visible binding for '<<-'
     assignment to ‘first.index’
   MakeSolveSchedule : <anonymous>: no visible binding for global variable
     ‘first.index’
   MakeSolveSchedule : <anonymous>: no visible binding for '<<-'
     assignment to ‘last.index’
   MakeSolveSchedule : <anonymous>: no visible binding for global variable
     ‘last.index’
   MakeSolveSchedule : <anonymous>: no visible global function definition
     for ‘SolveSchedule’
   MakeSolveSchedule : <anonymous>: no visible global function definition
     for ‘optimize’
   MakeSolveSchedule : <anonymous>: no visible global function definition
     for ‘tail’
   MakeUpdateCache : <anonymous>: no visible binding for global variable
     ‘d’
   UpdateMatrixInPlace: no visible global function definition for
     ‘getFromNamespace’
   obj_func_for_SolveSchedule: no visible binding for '<<-' assignment to
     ‘sch.k’
   obj_func_for_SolveSchedule: no visible binding for global variable
     ‘sch.k’
   obj_func_for_SolveSchedule: no visible binding for global variable
     ‘nrow.sch’
   obj_func_for_SolveSchedule: no visible binding for '<<-' assignment to
     ‘sch.i’
   obj_func_for_SolveSchedule: no visible binding for global variable
     ‘sch.i’
   obj_func_for_SolveSchedule: no visible global function definition for
     ‘SolveSchedule’
   plot.kalisIterator: no visible global function definition for ‘axis’
   Undefined global functions or variables:
     SolveSchedule axis d first.index getFromNamespace last.index nrow.sch
     optimize sch.i sch.k sd sequential tail
   Consider adding
     importFrom("graphics", "axis")
     importFrom("stats", "optimize", "sd")
     importFrom("utils", "getFromNamespace", "tail")
   to your NAMESPACE file.
   Rd file 'WriteHaplotypes.Rd':
     \examples lines wider than 100 characters:
        # ... write them to a file, giving alphabetic letters "A" through "T" as the #' # haplotype names ...

   These lines will be truncated in the PDF manual.
…-references ...

   Missing link or links in Rd file 'CladeMat_old.Rd':
     ‘kalisClades’ ‘kalisSprigs’

   Missing link or links in Rd file 'Neighbors.Rd':
     ‘kalisClades’

   Missing link or links in Rd file 'Sprigs_old.Rd':
     ‘kalisNeighbors’ ‘kalisClades’

   See section 'Cross-references' in the 'Writing R Extensions' manual.
… (no concern here, these do not affect the algorithm so cast freely to ints)
@louisaslett
Copy link
Owner Author

Sending v2 to deployment! 🚀

@louisaslett louisaslett merged commit c350a1a into master Nov 13, 2024
1 check passed
@louisaslett louisaslett deleted the v2 branch November 13, 2024 18:20
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