-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
683 additions
and
190 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Quarto Publish | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
with: | ||
tinytex: true | ||
|
||
- name: Install Python and Dependencies | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
- run: pip install -r requirements.txt | ||
|
||
# build SQLite from source, because I need 3.35<= | ||
- name: Download SQLite3 | ||
run: | | ||
wget https://www.sqlite.org/2024/sqlite-autoconf-3450300.tar.gz | ||
tar -xvf sqlite-autoconf-3450300.tar.gz | ||
- name: Install SQLite3 | ||
run: | | ||
cd sqlite-autoconf-3450300 | ||
./configure | ||
make | ||
sudo make install | ||
export PATH="/usr/local/lib:$PATH" | ||
cd .. | ||
- name: Render | ||
uses: quarto-dev/quarto-actions/render@v2 | ||
with: | ||
to: html | ||
env: | ||
LD_LIBRARY_PATH: /usr/local/lib | ||
|
||
- name: Publish to GH Pages | ||
if: github.ref == 'refs/heads/master' | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages # The branch the action should deploy to. | ||
render: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ chapters/zilinois_lung_with_celltypist/ | |
*whee.h5 | ||
*.tiledb | ||
*_cache | ||
*_files | ||
*_files | ||
tutorials/cache/*`` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
## BiocPy tutorial | ||
## Bioc 2024 workshop tutorial | ||
|
||
This is a reproducible Quarto book with reusable snippets. If you're new to Quarto books, you can explore more about them [here](https://quarto.org/docs/books). | ||
|
||
## Setting Up the Tutorial Locally | ||
|
||
To get started locally, follow these steps: | ||
|
||
- Install quarto-cli. | ||
- Install the necessary packages listed in requirements.txt. | ||
- Install [quarto-cli](https://quarto.org/docs/get-started/). | ||
- Install the necessary packages listed in [requirements.txt](./requirements.txt) and [rpackages.R](rpackages.R). | ||
|
||
```shell | ||
pip install -r requirements.txt | ||
Rscript rpackages.R | ||
``` | ||
|
||
- Run quarto preview to view the HTML version of the site. | ||
|
||
```shell | ||
qurto preview | ||
``` | ||
|
||
Take advantage of GitHub actions, which are available to automatically publish the tutorial book whenever changes are made on the **master** branch. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
install.packages(c("BiocManager"), repos='http://cran.us.r-project.org') | ||
library(BiocManager) | ||
BiocManager::install(c("scRNAseq", "celldex", "SingleR", "scuttle", "reticulate", "rmarkdown", "knitr", "downlit", "xml2", "ggplot2", "edgeR")) | ||
BiocManager::install( | ||
c("scRNAseq", "celldex", "SingleR", "scuttle", "reticulate", | ||
"rmarkdown", "knitr", "downlit", "xml2", "ggplot2", "edgeR", | ||
"AnnotationHub", "TxDb.Hsapiens.UCSC.hg38.refGene")) |
Oops, something went wrong.