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

Add JVM methods #2

Merged
merged 19 commits into from
Apr 2, 2024
Merged

Add JVM methods #2

merged 19 commits into from
Apr 2, 2024

Conversation

btmonier
Copy link
Member

@btmonier btmonier commented Apr 2, 2024

This PR adds the following:

Class and function additions

  • Added JVM connections via rJava interface
  • Added new class, HaplotypeGraph
    • Wrapper for PHGv2 API Java graph object
  • Added new class, PHGLocalCon
    • Interface to local hVCF database and file connections
  • Added new function initPHG()
    • Initializes JVM and adds PHGv2 Java JARs to classpath
  • Added new function readHapIds()
    • Reads haplotype IDs as a character matrix from a connection object
  • Added new function readHapIdMetaData()
    • Reads ALT header metadata for each haplotype ID from a connection object
  • Added new function readHapIdPosMetaData()
    • Reads ALT header positional metadata for each haplotype ID from a
      connection object
  • Added new function readSamples()
    • Reads sample IDs from a connection object
  • Added new function readRefRanges()
    • Read reference range positional information as a GRanges object from a
      connection object

Infrastructure

  • Added new script setupt.R for CI/CD testing:
    • Leverages the GitHub API to retrieve the latest PHGv2 release which removes the need to bundle Java JARs in the source code for testing
    • Globally initializes the JVM and adds relevant PHGv2 JARs to classpath for all downstream tests

@btmonier btmonier added the enhancement New feature or request label Apr 2, 2024
@btmonier btmonier requested review from tcasstevens, lynnjo and zrm22 April 2, 2024 18:24
@btmonier btmonier self-assigned this Apr 2, 2024
@btmonier btmonier merged commit 018dc59 into main Apr 2, 2024
5 checks passed
@btmonier btmonier deleted the github-jvm-actions branch April 2, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants