Skip to content

Commit

Permalink
Update GitHub Actions (#37)
Browse files Browse the repository at this point in the history
* add header=False

* Update createid2id.yml
  • Loading branch information
kozo2 authored Nov 22, 2022
1 parent 950af3f commit aed9cec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/createid2id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
run: |
cat CHEBI/CHEBI.tsv bigg.metabolite/bigg.metabolite.tsv bigg.reaction/bigg.reaction.tsv biocyc/biocyc.tsv brenda/brenda.tsv metanetx.reaction/metanetx.reaction.tsv rhea/rhea.tsv uniprot/uniprot.tsv > id2id.tsv
ls -lh id2id.tsv
- name: Update release
uses: johnwbyrd/update-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ./id2id.tsv
- uses: actions/upload-artifact@v3
with:
name: my-artifact
Expand Down
2 changes: 1 addition & 1 deletion bigg.metabolite/bigg.metabolite.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
df3 = df2['database_links'].str.split('/', expand=True)
result = pd.DataFrame({'id1': df2['universal_bigg_id'], 'identifiersorgprefix2': df3[3], 'id2': df3[4]})
result['identifiersorgprefix1'] = 'bigg.metabolite'
result[['identifiersorgprefix1', 'id1', 'identifiersorgprefix2', 'id2']].to_csv('bigg.metabolite.tsv', index=False, sep="\t")
result[['identifiersorgprefix1', 'id1', 'identifiersorgprefix2', 'id2']].to_csv('bigg.metabolite.tsv', header=False, index=False, sep="\t")

0 comments on commit aed9cec

Please sign in to comment.