-
Couldn't load subscription status.
- Fork 14
Add dgea #1044
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
Merged
Add dgea #1044
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
99f8f70
WIP create pseudobulk samples
jakubmajercik 8f0078a
add deseq2 component script
jakubmajercik e07bb99
add deseq2 config
jakubmajercik c1f48c1
fix script typo
jakubmajercik 2c2c946
add input layer arg
jakubmajercik 6312316
add design formula
jakubmajercik e035457
add unit tests
jakubmajercik a1dc501
add changelog entry
jakubmajercik 3817b27
Merge branch 'main' into add-dgea
jakubmajercik af0b2f9
add per cell type option
jakubmajercik da6eb52
fix test resources
jakubmajercik b6919b7
pin zarr version <3.0.0
jakubmajercik 4c82a79
fix tests
jakubmajercik 6b15c8d
liint
dorien-er c2eb0ec
wip
dorien-er c99221a
cleanup
jakubmajercik 313a6ec
wip
dorien-er f552688
wip
dorien-er a4098f1
Merge branch 'add-dgea' into generalize-dgea
dorien-er 84668b1
expand tests
dorien-er dac24b0
remove previous script
dorien-er fc30fee
add multiple treatment conditions
jakubmajercik 40f786e
fix contrast_Values arg
jakubmajercik b907ed1
Merge branch 'main' of github.com:openpipelines-bio/openpipeline into…
jakubmajercik c666199
add workflow config
jakubmajercik 802948e
add workflow
jakubmajercik d4df4aa
add workflow test
jakubmajercik d18c043
fix typo
jakubmajercik 5976197
integration test working
jakubmajercik f2b9123
linting
dorien-er 10ffc8d
Merge branch 'main' into add-dgea
dorien-er d9094b5
add per-cell group outputs
jakubmajercik 3295ba0
fix linting
jakubmajercik ef8a418
fix linting
dorien-er e760264
Merge remote-tracking branch 'origin/main' into add-dgea
dorien-er c6a0700
update config, expand tests
dorien-er 3a3eaca
expand tests
dorien-er 34588f2
update workflow and integration tests
dorien-er f090399
update changelog
dorien-er 5201d71
test asci
dorien-er ddf4f85
remove non ascii
dorien-er 38c78c9
Apply suggestions from code review
dorien-er 35ba8c5
wip
dorien-er cea3fbf
implement compponent
dorien-er 678571d
update changelog
dorien-er 4acfa71
Update src/filter/filter_with_pattern/config.vsh.yaml
dorien-er 7bcb1b2
update param requirements
dorien-er d42569d
Merge branch 'main' into filter-genes-by-pattern
dorien-er e78c06c
wip
dorien-er ca07885
wip
dorien-er f8b7d80
Merge remote-tracking branch 'origin/main' into add-dgea
dorien-er f1a9a88
wip
dorien-er 99ee20f
wip
dorien-er b8f13dd
Merge remote-tracking branch 'origin/filter-genes-by-pattern' into ad…
dorien-er ef15226
wip
dorien-er cc3879e
update changelog
dorien-er 8338093
remove redundant component
dorien-er a8a97ee
Merge remote-tracking branch 'origin/main' into add-dgea
dorien-er 8beacf0
cleanup
dorien-er 7340956
fix
dorien-er 961eec6
remove unused arguments
dorien-er 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
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
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,136 @@ | ||
| name: deseq2 | ||
| namespace: differential_expression | ||
| description: | | ||
| Performs differential expression analysis using DESeq2 on bulk samples or pseudobulk samples aggregated from single-cell data. | ||
| Note that this component only considers factors as explanatory variables, and excludes covariates from the analysis. | ||
|
|
||
| authors: | ||
| - __merge__: /src/authors/jakub_majercik.yaml | ||
| roles: [ author ] | ||
| - __merge__: /src/authors/dorien_roosen.yaml | ||
| roles: [ author ] | ||
| - __merge__: /src/authors/dries_de_maeyer.yaml | ||
| roles: [ contributor ] | ||
| - __merge__: /src/authors/weiwei_schultz.yaml | ||
| roles: [ contributor ] | ||
|
|
||
| argument_groups: | ||
| - name: Inputs | ||
| arguments: | ||
| - name: "--input" | ||
| alternatives: ["-i"] | ||
| type: file | ||
| description: Input h5mu file containing (pseudo-)bulk transcriptomic samples. | ||
| direction: input | ||
| required: true | ||
| - name: "--modality" | ||
| description: | | ||
| Which modality from the input MuData file to process. | ||
| type: string | ||
| default: "rna" | ||
| required: false | ||
| - name: "--input_layer" | ||
| type: string | ||
| required: false | ||
| description: "Input layer to use. If None, X is used. This layer must contain raw counts." | ||
| - name: "--var_gene_names" | ||
| type: string | ||
| description: | | ||
| Name of the .var field that contains gene symbols. If not provided, .var.index will be used. | ||
| required: false | ||
| example: "gene_symbol" | ||
| - name: "--obs_cell_group" | ||
| type: string | ||
| description: | | ||
| .obs field containing the cell group information, for example per cell type or per cell cluster. | ||
| If true, performs per-cell-group analysis with cell-group-specific results. | ||
|
|
||
| - name: Arguments | ||
| arguments: | ||
| - name: "--design_formula" | ||
| type: string | ||
| description: | | ||
| The formula should be a tilde (~) followed by the variables with plus signs between them. | ||
| The design formula is used to estimate the dispersions and to estimate the log2 fold changes of the model. | ||
| required: true | ||
| example: "~ disease + treatment" | ||
| - name: "--contrast_column" | ||
| type: string | ||
| description: | | ||
| Column in the metadata to use for the contrast. | ||
| This column should contain the conditions to compare. | ||
| required: true | ||
| example: "treatment" | ||
| - name: "--contrast_values" | ||
| type: string | ||
| multiple: true | ||
| description: | | ||
| Values to compare in the contrast column. | ||
| First value is the control group, following values are comparison groups. | ||
| Values must be present in the fields specified for the design formula. | ||
| required: true | ||
| example: ["ctrl", "stim"] | ||
| - name: "--p_adj_threshold" | ||
| type: double | ||
| min: 0 | ||
| max: 1 | ||
| description: | | ||
| Adjusted p-value threshold for significance, corrected with the Benjamini and Hochberg method. | ||
| Genes with adjusted p-values below this threshold will be considered significant. | ||
| default: 0.05 | ||
| required: false | ||
| - name: "--log2fc_threshold" | ||
| type: double | ||
dorien-er marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| min: 0 | ||
| description: | | ||
| Log2 fold change threshold for significance. | ||
| Genes with absolute log2 fold change above this threshold will be considered significant. | ||
| default: 0.0 | ||
| required: false | ||
|
|
||
| - name: Outputs | ||
jakubmajercik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| arguments: | ||
| - name: "--output_dir" | ||
| alternatives: ["-o"] | ||
| type: file | ||
| description: | | ||
| Output directory for DESeq2 results. | ||
| If cell groups are defined (using `--obs_cell_group`), the output folder will contain one CSV per cell group, otherwise it will contain a single output file. | ||
| direction: output | ||
| required: true | ||
| - name: "--output_prefix" | ||
| type: string | ||
| description: | | ||
| Prefix for output CSV files. | ||
| If no cell groups are specified, the output file will be named "{prefix}.csv". | ||
| If cell groups are specified, files will be named "{prefix}_{cell_group}.csv". | ||
| default: "deseq2_analysis" | ||
| required: false | ||
|
|
||
| resources: | ||
| - type: r_script | ||
| path: script.R | ||
| test_resources: | ||
| - type: python_script | ||
| path: test.py | ||
| - path: /resources_test/annotation_test_data/TS_Blood_filtered_pseudobulk.h5mu | ||
|
|
||
| engines: | ||
| - type: docker | ||
| image: rocker/r2u:22.04 | ||
| setup: | ||
| - type: apt | ||
| packages: [ libhdf5-dev, libgeos-dev, hdf5-tools ] | ||
| - type: r | ||
| cran: [ hdf5r ] | ||
| # Use pinned version to avoid H5 file access issues with latest stable release (0.99.0) | ||
| github: scverse/anndataR@36f3caad9a7f360165c1510bbe0c62657580415a | ||
dorien-er marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| bioc: [ DESeq2 ] | ||
| test_setup: | ||
| - type: apt | ||
| packages: [ python3, python3-pip, python3-dev, python-is-python3 ] | ||
| __merge__: [ ., /src/base/requirements/python_test_setup.yaml] | ||
|
|
||
| runners: | ||
| - type: executable | ||
| - type: nextflow | ||
Oops, something went wrong.
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.