Skip to content

Commit

Permalink
Merge pull request #22 from hkir-dev/issue_18
Browse files Browse the repository at this point in the history
Publication DOI changed
  • Loading branch information
hkir-dev authored Jan 4, 2024
2 parents ef6eb07 + 72e5cc1 commit 56146b4
Show file tree
Hide file tree
Showing 21 changed files with 12,941 additions and 12,936 deletions.
936 changes: 468 additions & 468 deletions src/patterns/data/default/CS202210140_class_base.tsv

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/scripts/template_generation_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def generate_ind_template(taxonomy_file_path, centralized_data_folder, output_fi
d['Rank'] = '|'.join([cell_type.strip().replace("No", "None")
for cell_type in str(o["cell_type_card"]).split(",")])

d['cell_set_alias_citation'] = d['cell_set_alias_citation'].replace("10.1101/2022.10.12.511898", "10.1126/science.add7046")

# if o['cell_set_accession'] in allen_descriptions:
# allen_data = allen_descriptions[o['cell_set_accession']]
# d['Comment'] = allen_data["summary"][0]
Expand Down Expand Up @@ -205,6 +207,9 @@ def generate_base_class_template(taxonomy_file_path, output_filepath):
alias_citations = [citation.strip() for citation in str(o["cell_set_alias_citation"]).split("|")
if citation and citation.strip()]
alias_citations = [citation if citation.lower().startswith("doi:") else 'DOI:' + citation for citation in alias_citations]
deprecated_citation = "10.1101/2022.10.12.511898"
new_citation = "10.1126/science.add7046"
alias_citations = [citation if deprecated_citation not in citation else citation.replace(deprecated_citation, new_citation) for citation in alias_citations]
d["Alias_citations"] = "|".join(alias_citations)
if o['cell_set_accession'] in minimal_markers:
d['Minimal_markers'] = minimal_markers[o['cell_set_accession']]
Expand Down
984 changes: 492 additions & 492 deletions src/templates/CS202210140.tsv

Large diffs are not rendered by default.

Loading

0 comments on commit 56146b4

Please sign in to comment.