Skip to content

Commit

Permalink
cap semmed publications at 50
Browse files Browse the repository at this point in the history
  • Loading branch information
rjawesome committed Sep 27, 2024
1 parent 0554c04 commit 4020739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/jq/wrap/semmed.jq
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def index_text(main; sub): (main|index(sub)|tostring)+"|"+((main|index(sub)) + (sub|length) | tostring);


.["edge-attributes"] = [.predication | group_by(.pmid) | .[] | .[0] |
.["edge-attributes"] = ([.predication | group_by(.pmid) | .[] | .[0] |
# create edge attributes for each publication
{
"attribute_type_id": "biolink:has_supporting_study_result",
Expand All @@ -26,4 +26,4 @@ def index_text(main; sub): (main|index(sub)|tostring)+"|"+((main|index(sub)) + (
}
],
"value": ( .predication_id | tostring ),
}]
}] | .[:50])

0 comments on commit 4020739

Please sign in to comment.