Skip to content

Commit

Permalink
update: fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartmillan committed Dec 14, 2024
1 parent 7520dfa commit 7a82af1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions openvariant/variant/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ def _extract_header(file_path: str, original_header: list, annotation: Annotatio

for field, ann in mapping_fields:
ann_type = ann[0]

class_name = ann_type
module_name = "openvariant.annotation.process"
ClassAnnotation = import_class_from_module(module_name, class_name)
instance = ClassAnnotation()

header_schema.update({field: instance(ann, original_header, file_path, header_schema)})
return header_schema, annotation.columns

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ keywords = ["bioinformatics", "openvariant", "openvar", "bbglab"]

[project.urls]
Homepage = "https://github.com/bbglab/openvariant"
Documentation = "https://readthedocs.org"
Documentation = "https://openvariant.readthedocs.io/"
Repository = "https://github.com/bbglab/openvariant"
Issues = "https://github.com/bbglab/openvariant/issues"
Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"


[project.scripts]
Expand Down

0 comments on commit 7a82af1

Please sign in to comment.