Skip to content

Commit 2789838

Browse files
committed
Merge branch 'release-16.4.0'
2 parents ad0dc93 + 8bd5464 commit 2789838

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1142
-89
lines changed

.github/workflows/build_docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build Github Pages Docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: 3.9
18+
19+
- name: Cache dependences
20+
uses: actions/cache@v3
21+
with:
22+
path: ~/.cache/pip
23+
# Unique cache key based on requirements.txt in docs directory
24+
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}-mkdocs-deps
25+
# Restore partial cache if exact match is not found
26+
restore-keys: |
27+
${{ runner.os }}-pip-
28+
29+
- name: Install mkdocs and dependencies
30+
run: |
31+
pip install mkdocs mkdocs-material mkdocstrings mkdocstrings-python mkdocs-open-in-new-tab
32+
33+
- name: Build and deploy mkdocs site to GitHub Pages
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
run: mkdocs gh-deploy --force

.github/workflows/ci.yml

Lines changed: 59 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ name: build
55

66
on:
77
push:
8-
branches:
9-
- develop
8+
branches: [main, develop, 'GEN*', 'gen*']
109

1110
pull_request:
1211

1312
release:
1413
types:
1514
- created
1615

16+
env:
17+
REGISTRY: ghcr.io
18+
IMAGE_NAME: ${{ github.repository }}
19+
1720
jobs:
1821

1922
test:
@@ -22,9 +25,9 @@ jobs:
2225
matrix:
2326
python-version: [3.8, 3.9]
2427
steps:
25-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2629
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
2831
with:
2932
python-version: ${{ matrix.python-version }}
3033
- name: Install dependencies
@@ -44,7 +47,7 @@ jobs:
4447
run: |
4548
pytest tests/ --cov=genie --cov=genie_registry --cov-report=html
4649
- name: Upload pytest test results
47-
uses: actions/upload-artifact@v2
50+
uses: actions/upload-artifact@v4
4851
with:
4952
name: pytest-results-${{ matrix.python-version }}
5053
path: htmlcov
@@ -54,7 +57,7 @@ jobs:
5457
lint:
5558
runs-on: ubuntu-latest
5659
steps:
57-
- uses: actions/checkout@v2
60+
- uses: actions/checkout@v4
5861
- uses: psf/black@stable
5962

6063
deploy:
@@ -64,9 +67,9 @@ jobs:
6467
permissions:
6568
id-token: write
6669
steps:
67-
- uses: actions/checkout@v2
70+
- uses: actions/checkout@v4
6871
- name: Set up Python
69-
uses: actions/setup-python@v4
72+
uses: actions/setup-python@v5
7073
with:
7174
python-version: '3.x'
7275
- name: Install dependencies
@@ -77,3 +80,51 @@ jobs:
7780
run: python -m build
7881
- name: Publish to pypi
7982
uses: pypa/gh-action-pypi-publish@release/v1
83+
84+
85+
build-container:
86+
needs: [test, lint]
87+
runs-on: ubuntu-latest
88+
permissions:
89+
contents: read
90+
packages: write
91+
92+
steps:
93+
- name: Checkout repository
94+
uses: actions/checkout@v4
95+
96+
- name: Setup Docker buildx
97+
uses: docker/setup-buildx-action@v3
98+
99+
- name: Log into registry ${{ env.REGISTRY }}
100+
uses: docker/login-action@v3
101+
with:
102+
registry: ${{ env.REGISTRY }}
103+
username: ${{ github.actor }}
104+
password: ${{ secrets.GITHUB_TOKEN }}
105+
106+
- name: Extract Docker metadata
107+
id: meta
108+
uses: docker/metadata-action@v5
109+
with:
110+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
111+
112+
- name: Format tags as registry refs
113+
id: registry_refs
114+
env:
115+
TAGS: ${{ steps.meta.outputs.json }}
116+
run: |
117+
echo tags=$(echo $TAGS | jq '.tags[] | "type=registry,ref=" + . + "_cache"| @text') >> $GITHUB_OUTPUT
118+
119+
- name: Build and push Docker image
120+
id: build-and-push
121+
uses: docker/build-push-action@v5
122+
if: github.event_name != 'pull_request'
123+
with:
124+
context: .
125+
push: true
126+
provenance: false
127+
tags: ${{ steps.meta.outputs.tags }}
128+
labels: ${{ steps.meta.outputs.labels }}
129+
cache-from: ${{ steps.registry_refs.outputs.tags }},mode=max
130+
cache-to: ${{ steps.registry_refs.outputs.tags }},mode=max

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ data_guide.out
2626
Genie.Rproj
2727
build/
2828
dist/
29+
30+
# MkDocs output
31+
docs_site/

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ RUN apt-get update && apt-get install -y --allow-unauthenticated --no-install-re
2323
python3-pip \
2424
python3-dev \
2525
git \
26-
r-base \
27-
r-base-dev \
26+
r-base-core=4.3.3-1.2004.0 \
27+
r-base-dev=4.3.3-1.2004.0 \
2828
cmake \
2929
curl \
3030
# synapser client dependencies

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
[![Docker Automated](https://img.shields.io/docker/automated/sagebionetworks/genie.svg?style=for-the-badge&logo=docker)](https://hub.docker.com/r/sagebionetworks/genie)
77
[![GitHub CI](https://img.shields.io/github/actions/workflow/status/Sage-Bionetworks/Genie/ci.yml?branch=develop&style=for-the-badge&logo=github)](https://github.com/Sage-Bionetworks/Genie)
88

9-
109
## Introduction
1110

1211
This repository documents code used to gather, QC, standardize, and analyze data uploaded by institutes participating in AACR's Project GENIE (Genomics, Evidence, Neoplasia, Information, Exchange).
1312

13+
## Documentation
14+
15+
For more information about the AACR genie repository, [visit the GitHub Pages site.](https://sage-bionetworks.github.io/Genie/)
16+
1417
## Dependencies
1518

1619
This package contains both R, Python and cli tools. These are tools or packages you will need, to be able to reproduce these results:

docs/getting_started.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Getting Started
2+
3+
## Dependencies
4+
5+
This package contains both R, Python and cli tools. These are tools or packages you will need, to be able to reproduce these results:
6+
7+
- Python >=3.8 or <3.10
8+
- `pip install -r requirements.txt`
9+
- [bedtools](https://bedtools.readthedocs.io/en/latest/content/installation.html)
10+
- R 4.2.2
11+
- `renv::install()`
12+
- Follow instructions [here](https://r-docs.synapse.org/#note-for-windows-and-mac-users) to install synapser
13+
- [Java > 8](https://www.java.com/en/download/)
14+
- For mac users, it seems to work better to run `brew install java`
15+
- [wget](https://www.gnu.org/software/wget/)
16+
- For mac users, have to run `brew install wget`
17+
18+
## Installation
19+
20+
### PyPi
21+
22+
The [aacrgenie](https://pypi.org/project/aacrgenie/) package is available from PyPI. It can be installed or upgraded with pip.
23+
24+
```
25+
pip install aacrgenie
26+
```
27+
28+
### Local
29+
30+
Source code and development versions are available on Github. Installing from source:
31+
32+
```
33+
git clone https://github.com/Sage-Bionetworks/Genie.git
34+
cd Genie
35+
```
36+
37+
Install the packages locally.
38+
39+
```
40+
pip install -e .
41+
pip install -r requirements.txt
42+
pip install -r requirements-dev.txt
43+
```
44+
45+
You can stay on the main branch to get the latest stable release or check out the develop branch or a tagged revision:
46+
47+
```
48+
git checkout <branch or tag>
49+
```
50+
51+
52+
## Configuration
53+
54+
Configure the Synapse client to authenticate to Synapse.
55+
56+
1. Create a Synapse [Personal Access token (PAT)](https://help.synapse.org/docs/Managing-Your-Account.2055405596.html#ManagingYourAccount-PersonalAccessTokens).
57+
1. Add a `~/.synapseConfig` file with the following information:
58+
59+
```
60+
[authentication]
61+
authtoken = <PAT here>
62+
```
63+
64+
1. OR set an environmental variable
65+
66+
```
67+
export SYNAPSE_AUTH_TOKEN=<PAT here>
68+
```
69+
70+
1. Confirm you can log in to synapse in your terminal.
71+
72+
```shell
73+
synapse login
74+
```

docs/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
![genie banner](https://raw.githubusercontent.com/Sage-Bionetworks/Genie/master/genie_banner.png)
2+
3+
# AACR Project GENIE
4+
5+
[![PyPi](https://img.shields.io/pypi/v/aacrgenie.svg?style=for-the-badge&label=PyPi&logo=PyPi)](https://pypi.org/project/aacrgenie)
6+
[![Docker Automated](https://img.shields.io/docker/automated/sagebionetworks/genie.svg?style=for-the-badge&logo=docker)](https://hub.docker.com/r/sagebionetworks/genie)
7+
[![GitHub CI](https://img.shields.io/github/actions/workflow/status/Sage-Bionetworks/Genie/ci.yml?branch=develop&style=for-the-badge&logo=github)](https://github.com/Sage-Bionetworks/Genie)
8+
9+
## Introduction
10+
11+
This repository documents code used to gather, QC, standardize, and analyze data uploaded by institutes participating in AACR's Project GENIE (Genomics, Evidence, Neoplasia, Information, Exchange).
12+
13+
## Additional Documentation
14+
15+
Visit the [Project Genie Data Portal](https://genie.synapse.org/) to learn more about our data
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: genie_registry.assay

docs/reference/fileformats/bed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: genie_registry.bed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: genie_registry.clinical

0 commit comments

Comments
 (0)