Skip to content

Commit

Permalink
fix: get_features_list_from_metadata returned cols that were not feat…
Browse files Browse the repository at this point in the history
…ures
  • Loading branch information
ireneisdoomed committed Feb 13, 2025
1 parent c635e18 commit 58f35d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/gentropy/dataset/l2g_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def from_credible_set(
.join(feature_matrix._df, "studyLocusId")
.filter(f.col("isProteinCoding") == 1)
),
features_list=l2g_model.features_list,
)
.fill_na()
.select_features(l2g_model.features_list)
Expand Down
8 changes: 7 additions & 1 deletion src/gentropy/method/l2g/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,13 @@ def get_features_list_from_metadata() -> list[str]:
return [
column
for column in model_config["sklearn"]["columns"]
if column != "studyLocusId"
if column
not in [
"studyLocusId",
"geneId",
"traitFromSourceMappedId",
"goldStandardSet",
]
]

local_path = model_id
Expand Down

0 comments on commit 58f35d9

Please sign in to comment.