Skip to content

Commit

Permalink
delete blank lines in v2 mapping; fix a bug in merging protein field …
Browse files Browse the repository at this point in the history
…in v2 parser
  • Loading branch information
erikyao committed Nov 3, 2023
1 parent 191878e commit aee64e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/hub/dataload/sources/dbnsfp/dbnsfp_mapping_44a_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@
},
}
},


"cds_strand": {
"type": "keyword",
"normalizer": "keyword_lowercase_normalizer"
Expand Down
2 changes: 1 addition & 1 deletion src/hub/dataload/sources/dbnsfp/dbnsfp_parser_44a_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ def load_file(path: str, assembly: str):
# We guarantee that the protein field is always a list at this moment. See prune_protein()
# if not isinstance(last_protein_field, list):
# last_protein_field = [last_protein_field]
last_protein_field.append(curr_protein_field)
last_protein_field.extend(curr_protein_field)

last_doc["dbnsfp"]["protein"] = last_protein_field
continue
Expand Down

0 comments on commit aee64e5

Please sign in to comment.