Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-generator cuts off experiment titles after any comma #37

Open
pcm32 opened this issue Mar 15, 2022 · 1 comment
Open

auto-generator cuts off experiment titles after any comma #37

pcm32 opened this issue Mar 15, 2022 · 1 comment

Comments

@pcm32
Copy link
Member

pcm32 commented Mar 15, 2022

Reported by @anjaf who can maybe point to some examples. Maybe an issue in the jq filtering calls?

@anjaf
Copy link
Member

anjaf commented Mar 15, 2022

Yes, looks like it. There is some csv handling going on.

jq -r '.experiments | .[] | select(.lastUpdate | strptime("%d-%m-%Y") | mktime > '$last_release_epoch_time') | [.experimentAccession, .experimentDescription] | @csv' | \
awk -v FS="," '{ printf "- [%s](https://www.ebi.ac.uk/gxa/sc/experiments/%s)\n", $2, $1}' | sed s/\"//g >> $releaseNotesFile

An example title is E-MTAB-9583 "Single-cell RNA-seq on enriched cardiac fibroblasts from the healthy, sham or MI hearts of Hif-1a conditional knockout or heterozygous mice"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants