BoostDM | encode_consequence_type(data)
inconsinstent when missing consequence.
#1
Labels
bug
Something isn't working
Milestone
boostdm-pipeline/containers_build/boostdm/annotations/utils.py
Lines 7 to 18 in 93d2696
pd.get_dummies()
in this instance returns by default a dataframe of True and False. However, If a consequence is missing, in the for-loop it is added the missing consequence column filled with 0.i.e.
SOCS1.DLBCLNOS.annotated.tsv.gz
.This inconstistency may derive some problem, in my case I was using a condition like
df[df[csqn_col]]
expecting boolean column and it failed.Possible solutions:
dtype=float
topd.getdummies()
functionboostdm-pipeline/containers_build/boostdm/annotations/utils.py
Line 16 in 93d2696
Replace this line by assigning
False
instead of 0The text was updated successfully, but these errors were encountered: