Skip to content

Commit

Permalink
bug fix for emty doi references
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed Jul 14, 2021
1 parent d67913c commit adeb66e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/dosdp_pattern_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def generate_pattern_table_reification(dend_json_path, output_filepath):
if o['cell_set_alias_citation']:
alias_citations = list()
for citation in str(o['cell_set_alias_citation']).split("|"):
alias_citations.append("DOI:" + citation)
if citation and citation.strip():
alias_citations.append("DOI:" + citation)
d["alias_citations"] = "|".join(alias_citations)

if o['cell_set_accession'] in minimal_markers:
Expand Down

0 comments on commit adeb66e

Please sign in to comment.