Skip to content

Commit

Permalink
update checkDuplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
apriltuesday committed Sep 5, 2022
1 parent 03e93db commit a5ec644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eva_cttv_pipeline/evidence_string_generation/pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ process checkDuplicates {

script:
"""
(jq --arg sep \$'\t' -jr \
'.datatypeId,\$sep,.studyId,\$sep,.targetFromSourceId,\$sep,.variantId,\$sep,.variantFunctionalConsequenceId,\$sep,.diseaseFromSourceMappedId,\sep,.diseaseFromSource,"\n"' \
${evidenceStrings} | sort | uniq -d > duplicates.tsv) \
|| [[ -z duplicates.tsv ]]
jq --arg sep \$'\t' -jr \
'.datatypeId,\$sep,.studyId,\$sep,.targetFromSourceId,\$sep,.variantId,\$sep,.variantFunctionalConsequenceId,\$sep,.diseaseFromSourceMappedId,\$sep,.diseaseFromSource,"\n"' \
${evidenceStrings} | sort | uniq -d > duplicates.tsv
[[ ! -s duplicates.tsv ]]
"""
}

Expand Down

0 comments on commit a5ec644

Please sign in to comment.