Skip to content

Fail Import When Data Genome Build Does Not Match Study Genome Build #99

Description

@forus

Summary

Some data types (e.g., MAF, SV, others) include a reference genome build field such as NCBI_Build. Today, the importer only logs a warning when the genome build in the file does not match the study’s configured genome build. This can lead to silent inconsistencies or downstream errors.

This issue proposes enforcing strict validation: if a record’s genome build does not match the study’s genome build, the importer should throw an error and stop the load instead of continuing.

Problem Description

Many genomics file formats define a reference genome build. For example, in ImportExtendedMutationData, the loader currently checks the genome build like this:

if (!record.getNcbiBuild().equalsIgnoreCase(genomeBuildName)) {
    ProgressMonitor.logWarning("Genome Build Name does not match, expecting " + genomeBuildName);
}

For all genome-build–aware datatypes (e.g., MAF, SV, others), the importer should fail fast.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions