-
Notifications
You must be signed in to change notification settings - Fork 211
fix: get sra download to work and test it #102
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
Merged
johanneskoester
merged 30 commits into
master
from
fix/get-sra-download-to-work-and-test-it
Dec 18, 2025
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
8ef1efd
ci: add test for sra download
dlaehnemann 23ec3c3
docs: copy some nice detailed explanations in example config.yaml fro…
dlaehnemann 64a6518
chore: prettier yaml files
dlaehnemann f2a1ac8
fix: correct read infix in get_units_fastq() for sra-downloaded fastq…
dlaehnemann 9854d59
fix: use existing versions of star snakemake wrappers (3.3.7), to mak…
dlaehnemann c54fa67
ci: update all the GitHub Actions versions
dlaehnemann fe87a0f
Revert "fix: use existing versions of star snakemake wrappers (3.3.7)…
dlaehnemann 34e50d1
ci: fix release-please-action namespace to new googleapis
dlaehnemann b42bbed
fix: ensure `release:` in `config.yaml` files is integer
dlaehnemann 22ee73e
ci: fix gallus_gallus genome build to bGalGal1.mat.broiler.GRCg7b
dlaehnemann cc8f46b
fix: the right config.yaml :facepalm:
dlaehnemann 7faf652
ci: use yeeast dataset for SRA download testing, as gallus_gallus gen…
dlaehnemann cc2bed3
ci: use some paired-end example data for sra download testing
dlaehnemann 7278404
ci: try freeing disk space in GitHub Actions runner
dlaehnemann 63319ca
ci: use same reference genome in all GitHub Actions tests
dlaehnemann f3a6ee9
ci: always remove previous results after testing report generation
dlaehnemann df8e164
ci: try getting fasterq-dump to use GitHub Actions runner's temp dire…
dlaehnemann 48fb793
ci: report fasterq-dump disk size limits
dlaehnemann 9a6995a
ci: try with yet another dataset, to reduce ci disk usage footprint
dlaehnemann 1e16307
chore: prettier .github/workflows/main.yml
dlaehnemann 67a6fce
chore: prettier .test/ config.yaml files
dlaehnemann f2be7b0
ci: update github/super-linter to v8
dlaehnemann 461b8a1
ci: don't trust coderabbitai on versions of stuff, it just confidentl…
dlaehnemann ea04b91
ci: switch to super-linter-super-linter action, which does have a ver…
dlaehnemann 0ae268f
ci: consistently include `--software-deployment-method conda`, even i…
dlaehnemann 07854fb
ci: fix copy-pasta misplacement
dlaehnemann a100b78
ci: switch to matrix setup for fail-fast and to try to circumenvent t…
dlaehnemann 6e11771
ci: skip updating apt if free-disk-space job is not run
dlaehnemann 37ffd24
ci: cleanup leftovers from previous setup
dlaehnemann 273832e
fix: config_sra uses existing column for pca
dlaehnemann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -11,60 +11,106 @@ jobs: | |
| formatting: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout with submodules | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| submodules: recursive | ||
| fetch-depth: 0 | ||
| - name: Formatting | ||
| uses: github/super-linter@v5 | ||
| env: | ||
| VALIDATE_ALL_CODEBASE: false | ||
| DEFAULT_BRANCH: master | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| VALIDATE_SNAKEMAKE_SNAKEFMT: true | ||
| - name: Checkout with submodules | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| submodules: recursive | ||
| fetch-depth: 0 | ||
| - name: Formatting | ||
| uses: super-linter/super-linter@v8 | ||
| env: | ||
| VALIDATE_ALL_CODEBASE: false | ||
| DEFAULT_BRANCH: master | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| VALIDATE_SNAKEMAKE_SNAKEFMT: true | ||
| linting: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Linting | ||
| uses: snakemake/snakemake-github-action@v1.22.0 | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: "--configfile .test/config_complex/config.yaml --lint" | ||
| - uses: actions/checkout@v6 | ||
| - name: Linting | ||
| uses: snakemake/snakemake-github-action@v2 | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: "--configfile .test/config_complex/config.yaml --lint" | ||
|
|
||
| run-workflow: | ||
| testing: | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - linting | ||
| - formatting | ||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| case: | ||
| - name: basic model, no batch_effects | ||
| args: >- | ||
| --configfile .test/config_basic/config.yaml | ||
| report: true | ||
| free_disk_space: false | ||
|
|
||
| - name: multiple variables_of_interest, include batch_effects | ||
| args: >- | ||
| --configfile .test/config_complex/config.yaml | ||
| report: true | ||
| free_disk_space: false | ||
| - name: sra file download, no batch_effects | ||
| args: >- | ||
| --configfile .test/config_sra/config.yaml | ||
| report: true | ||
| free_disk_space: true | ||
|
|
||
| name: test ${{ matrix.case.name }} | ||
|
|
||
| steps: | ||
| - name: Checkout repository with submodules | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| submodules: recursive | ||
| - name: Test workflow (basic model, no batch_effects) | ||
| uses: snakemake/[email protected] | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: "--configfile .test/config_basic/config.yaml --use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache" | ||
| - name: Test report (basic model, no batch_effects) | ||
| uses: snakemake/[email protected] | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: "--configfile .test/config_basic/config.yaml --report report.zip" | ||
| - name: Test workflow (multiple variables_of_interest, include batch_effects) | ||
| uses: snakemake/[email protected] | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: "--configfile .test/config_complex/config.yaml --use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache" | ||
| - name: Test report (multiple variables_of_interest, include batch_effects) | ||
| uses: snakemake/[email protected] | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: "--configfile .test/config_complex/config.yaml --report report.zip" | ||
| - name: update apt | ||
| if: ${{ matrix.case.free_disk_space }} | ||
| run: sudo apt-get update | ||
|
|
||
| - name: Free Disk Space (Ubuntu) | ||
| if: ${{ matrix.case.free_disk_space }} | ||
| uses: jlumbroso/[email protected] | ||
| with: | ||
| # this might remove tools that are actually needed, | ||
| # if set to "true" but frees about 6 GB | ||
| tool-cache: false | ||
|
|
||
| # all of these default to true, but feel free to set to | ||
| # "false" if necessary for your workflow | ||
| android: true | ||
| dotnet: true | ||
| haskell: true | ||
| large-packages: true | ||
| docker-images: false | ||
| swap-storage: true | ||
|
|
||
| - name: Checkout repository with submodules | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: run workflow | ||
| uses: snakemake/snakemake-github-action@v2 | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: >- | ||
| --conda-cleanup-pkgs cache | ||
| --software-deployment-method conda | ||
| --show-failed-logs | ||
| --cores 8 | ||
| ${{ matrix.case.args }} | ||
| show-disk-usage-on-error: true | ||
|
|
||
| - name: generate report | ||
| if: ${{ matrix.case.report }} | ||
| uses: snakemake/snakemake-github-action@v2 | ||
| with: | ||
| directory: .test | ||
| snakefile: workflow/Snakefile | ||
| args: >- | ||
| --software-deployment-method conda | ||
| --cores 1 | ||
| --report report.zip | ||
| ${{ matrix.case.args }} | ||
| show-disk-usage-on-error: true | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,40 @@ | ||
| # For a fully commented config.yaml file, see the main `config/config.yaml` | ||
| # example file. | ||
|
|
||
| samples: config_sra/samples.tsv | ||
| # This data comes from: | ||
| # * https://www.ncbi.nlm.nih.gov/bioproject/PRJEB30262 | ||
| # * https://www.ncbi.nlm.nih.gov/Traces/study/?acc=PRJEB30262&o=acc_s%3Aa | ||
| units: config_sra/units.tsv | ||
|
|
||
| ref: | ||
| species: saccharomyces_cerevisiae | ||
| release: 115 | ||
| build: R64-1-1 | ||
|
|
||
| trimming: | ||
| activate: True | ||
|
|
||
| mergeReads: | ||
| activate: False | ||
|
|
||
| pca: | ||
| activate: True | ||
| labels: | ||
| - genotype | ||
|
|
||
| diffexp: | ||
| variables_of_interest: | ||
| genotype: | ||
| base_level: control | ||
| batch_effects: "" | ||
| contrasts: | ||
| stb5_vs_control: | ||
| variable_of_interest: genotype | ||
| level_of_interest: stb5 | ||
| model: ~genotype | ||
|
|
||
| params: | ||
| star: | ||
| index: "" | ||
| align: "" |
This file contains hidden or 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,5 @@ | ||
| sample_name genotype | ||
| control_g_1 control | ||
| control_g_2 control | ||
| stb5_g_1 stb5 | ||
| stb5_g_2 stb5 |
This file contains hidden or 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,9 @@ | ||
| sample_name unit_name fq1 fq2 sra fastp_adapters fastp_extra strandedness | ||
| control_g_1 lane1 ERR2985811 | ||
| control_g_1 lane2 ERR2985812 | ||
| control_g_2 lane1 ERR2985815 | ||
| control_g_2 lane2 ERR2985816 | ||
| stb5_g_1 lane1 ERR2985827 | ||
| stb5_g_1 lane2 ERR2985828 | ||
| stb5_g_2 lane1 ERR2985831 | ||
| stb5_g_2 lane2 ERR2985832 |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.