Update ncbitaxonmin_plus.obo #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: extract_terms_without_purls_yaml | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
extract_terms_without_purls: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: extract all dpbo terms | |
run: | | |
grep -E 'id: DPBO:[0-9]+' dpbo.obo > new_extraction.txt | |
- name: extract TANs and replace colon | |
run: | | |
sed -i 's/id: DPBO:\([0-9]\+\)/DPBO_\1/g' new_extraction.txt | |
- name: sort files | |
run: | | |
sort new_extraction.txt > new_extraction_sorted.txt | |
sort purls.txt > purls_sorted.txt | |
- name: get difference in files | |
run: | | |
comm -23 new_extraction_sorted.txt purls.txt > missing_purls.txt | |
- name: remove temporary new file | |
run: | | |
rm new_extraction.txt | |
rm new_extraction_sorted.txt | |
rm purls_sorted.txt | |
- name: commit and push | |
uses: mikeal/publish-to-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH_NAME: 'main' |