-
Notifications
You must be signed in to change notification settings - Fork 441
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
Update Anndata to 0.10.9 #6309
Update Anndata to 0.10.9 #6309
Conversation
If you have time you should really change the tests from |
tools/anndata/macros.xml
Outdated
<token name="@VERSION_SUFFIX@">0</token> | ||
<xml name="requirements"> | ||
<requirements> | ||
<requirement type="package" version="@TOOL_VERSION@">anndata</requirement> | ||
<requirement type="package" version="3.0.6">loompy</requirement> | ||
<requirement type="package" version="1.26.4">numpy</requirement> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the anndata package be fixed instead? https://github.com/conda-forge/anndata-feedstock/blob/main/recipe/meta.yaml#L28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turned out it was issue was only with the loompy package. I moved all the loompy functions to a modify_loom
tool and added the numpy requirement there so that all the anndata functions can use numpy 2.
tools/anndata/manipulate.xml
Outdated
<when value="flag_genes"> | ||
<repeat name="gene_flags" title="Flag genes that start with these names"> | ||
<param name="startswith" type="text" label="Text that you expect the genes to be flagged to start with" help="for example, 'MT-' for mito genes"/> | ||
<param name="col_name" type="text" label="Name of the column in var.names where this boolean flag is stored" help="for example, name this column as 'mito' for mitochondrial genes."/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<param name="col_name" type="text" label="Name of the column in var.names where this boolean flag is stored" help="for example, name this column as 'mito' for mitochondrial genes."/> | |
<param name="col_name" type="text" label="Name of the column in var.names where this boolean flag is stored" help="For example, name this column as 'mito' for mitochondrial genes."/> |
tools/anndata/manipulate.xml
Outdated
</when> | ||
<when value="flag_genes"> | ||
<repeat name="gene_flags" title="Flag genes that start with these names"> | ||
<param name="startswith" type="text" label="Text that you expect the genes to be flagged to start with" help="for example, 'MT-' for mito genes"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<param name="startswith" type="text" label="Text that you expect the genes to be flagged to start with" help="for example, 'MT-' for mito genes"/> | |
<param name="startswith" type="text" label="Text that you expect the genes to be flagged to start with" help="For example, 'MT-' for mito genes"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a validator here ... eg. no whitespace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Done for all h5 files |
tools/anndata/import.xml
Outdated
#if $in.adata_format == 'mtx' | ||
&& rm -rf mtx | ||
#end if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if $in.adata_format == 'mtx' | |
&& rm -rf mtx | |
#end if |
Galaxy will clean-up, you don't need to do that.
#end if | ||
adata.write('anndata.h5ad', compression='gzip') | ||
print(adata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(adata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print is needed here. I assert the matrix dimensions in the stdout.
tools/anndata/import.xml
Outdated
<when value="umi_tools"> | ||
<param name="input" type="data" format="tabular" label="condensed count matrix from UMI tools"/> | ||
<when value="v3_10x"> | ||
<param name="features" type="data" format="tabular" label="Features"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add to help, how does such a file need to look like?
</assert_stdout> | ||
<output name="anndata" value="import.tsv.h5ad" ftype="h5ad" compare="sim_size"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are not testing the output file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are no annotations in the anndata to assert h5 keys. That is why I added the print(data)
so that we can at least compare the matrix dimensions with assert_stdout
.
</assert_stdout> | ||
<output name="anndata" value="import.csv.h5ad" ftype="h5ad" compare="sim_size"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not testing the output file?
@@ -226,8 +204,10 @@ adata.write('anndata.h5ad') | |||
<conditional name="tenx"> | |||
<param name="use" value="no"/> | |||
</conditional> | |||
</conditional> | |||
<output name="anndata" value="import.mtx.no_10x.h5ad" ftype="h5ad" compare="sim_size"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some here ...
adata.write('anndata.h5ad') | ||
#if $manipulate.function != 'split_on_obs' | ||
adata.write('anndata.h5ad', compression='gzip') | ||
print(adata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(adata) |
tools/anndata/export.xml
Outdated
@@ -1,90 +1,33 @@ | |||
<tool id="anndata_export" name="Export AnnData and loom files" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> | |||
<description>Interconvert AnnData and Loom formats</description> | |||
<tool id="anndata_export" name="Export AnnData" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add, make sure, a profile version is in all tools
<tool id="anndata_export" name="Export AnnData" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> | |
<tool id="anndata_export" name="Export AnnData" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE_VERSION@"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set profile to 21.09
(same as scanpy) to support other instances. See here: #6001
Thanks @pavanvidem! Good luck with the trainings! |
Attention: deployment skipped! https://github.com/galaxyproject/tools-iuc/actions/runs/10864948585 |
FOR CONTRIBUTOR:
This update adds some new user-requested features from #6025