-
Notifications
You must be signed in to change notification settings - Fork 14
Add conversion to TileDB SOMA #1034
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
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
159 changes: 159 additions & 0 deletions
159
src/convert/from_h5mu_or_h5ad_to_tiledb/config.vsh.yaml
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,159 @@ | ||
| name: "from_h5mu_or_h5ad_to_tiledb" | ||
| namespace: "convert" | ||
| scope: "public" | ||
| description: | | ||
| Convert a MuData or AnnData object to tiledb. Currently, transcriptome and protein modalities are supported. | ||
|
|
||
| NOTE: The functionality provided by this component is experimental and may be subject to change. | ||
| authors: | ||
| - __merge__: /src/authors/dries_schaumont.yaml | ||
| roles: [ author, maintainer ] | ||
| argument_groups: | ||
| - name: "Input" | ||
| arguments: | ||
| - name: --input | ||
| description: | | ||
| Input AnnData or MuData file. When an AnnData file is provided, it is automatically assumed to | ||
| contain transcriptome counts. | ||
| type: file | ||
| required: true | ||
| example: "input.h5mu" | ||
| direction: input | ||
| - name: "RNA modality" | ||
| arguments: | ||
| - name: --rna_modality | ||
| type: string | ||
| default: rna | ||
| description: | | ||
| The name used for the RNA modality. Used when input file is a MuData object. | ||
| - name: --rna_raw_layer_input | ||
| type: string | ||
| required: true | ||
| example: X | ||
| description: | | ||
| Location of the layer containing the raw transcriptome counts. Layers are looked for in .layers, | ||
| except when using the value 'X'; in which case .X is used. | ||
| - name: --rna_normalized_layer_input | ||
| type: string | ||
| required: true | ||
| example: log_normalized | ||
| description: | | ||
| Location of the layer containing the normalized counts. Layers are looked for in .layers, | ||
| except when using the value 'X'; in which case .X is used. | ||
| - name: --rna_var_gene_names_input | ||
| type: string | ||
| required: true | ||
| example: "gene_symbol" | ||
| description: | | ||
| Column in .var that provides the gene names. If not specified, the index from the input is used. | ||
|
|
||
| - name: "Protein modality" | ||
| arguments: | ||
| - name: --prot_modality | ||
| description: | | ||
| The name used for the protein modality. Used when input file is a MuData object. | ||
| When not specified, the protein modality will not be processed. | ||
| type: string | ||
| required: false | ||
| example: prot | ||
| - name: --prot_raw_layer_input | ||
| type: string | ||
| example: X | ||
| description: | | ||
| Location of the layer containing the raw protein counts. Layers are looked for in .layers, | ||
| except when using the value 'X'; in which case .X is used. | ||
| - name: --prot_normalized_layer_input | ||
| type: string | ||
| example: clr | ||
| description: | | ||
| Location of the layer containing the normalized counts. Layers are looked for in .layers, | ||
| except when using the value 'X'; in which case .X is used. | ||
|
|
||
| - name: "Output slots" | ||
| arguments: | ||
| - name: "--rna_modality_output" | ||
| type: string | ||
| default: "rna" | ||
| description: | | ||
| TileDB Measurement name where the RNA modality will be stored. | ||
| - name: "--prot_modality_output" | ||
| type: string | ||
| default: "prot" | ||
| description: | | ||
| Name of the TileDB Measurement where the protein modality will be stored. | ||
| - name: "--obs_index_name_output" | ||
| description: | | ||
| Name of the index that is used to describe the cells (observations). | ||
| type: string | ||
| default: cell_id | ||
| - name: --rna_var_index_name_output | ||
| description: | | ||
| Output name of the index that is used to describe the genes. | ||
| type: string | ||
| default: rna_index | ||
| - name: --rna_raw_layer_output | ||
| description: | | ||
| Output location for the raw transcriptomics counts. | ||
| type: string | ||
| default: "X" | ||
| - name: --rna_normalized_layer_output | ||
| type: string | ||
| default: "log_normalized" | ||
| description: | | ||
| Output location for the normalized RNA counts. | ||
| - name: --rna_var_gene_names_output | ||
| type: string | ||
| default: "gene_symbol" | ||
| description: | | ||
| Name of the .var column that specifies the gene games. | ||
| - name: --prot_var_index_name_output | ||
| description: | | ||
| Output name of the index that is used to describe the proteins. | ||
| type: string | ||
| default: prot_index | ||
| - name: --prot_raw_layer_output | ||
| type: string | ||
| default: "X" | ||
| description: | | ||
| Output location for the raw protein counts. | ||
| - name: --prot_normalized_layer_output | ||
| type: string | ||
| default: "log_normalized" | ||
| description: | | ||
| Output location for the normalized protein counts. | ||
|
|
||
| - name: "Output arguments" | ||
| arguments: | ||
| - name: "--tiledb_dir" | ||
DriesSchaumont marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| type: file | ||
| direction: output | ||
| description: | | ||
| Directory where the TileDB output will be written to. | ||
|
|
||
| resources: | ||
| - type: python_script | ||
| path: script.py | ||
| - path: /src/utils/setup_logger.py | ||
| test_resources: | ||
| - type: python_script | ||
| path: test.py | ||
| engines: | ||
| - type: docker | ||
| image: python:3.12-slim | ||
| setup: | ||
| - type: apt | ||
| packages: | ||
| - procps | ||
| - type: python | ||
| packages: | ||
| - tiledbsoma | ||
| __merge__: [/src/base/requirements/anndata_mudata.yaml, .] | ||
| __merge__: [ /src/base/requirements/python_test_setup.yaml, .] | ||
| test_setup: | ||
| - type: python | ||
| __merge__: [ /src/base/requirements/viashpy.yaml, .] | ||
| runners: | ||
| - type: executable | ||
| - type: nextflow | ||
| directives: | ||
| label: [midmem, midcpu] | ||
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.