-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add drug2cell tool #6684
base: main
Are you sure you want to change the base?
Add drug2cell tool #6684
Conversation
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.
Thanks @Mennayousef! A few comments inside, looks very good!
tools/drug2cell/drug2cell.xml
Outdated
<command> | ||
<![CDATA[ | ||
# Python script to execute drug2cell scoring and differential expression | ||
python3 <<CODE |
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 can use a configfile
in Galaxy to store your code and reuse this.
tools-iuc/tools/scanpy/inspect.xml
Line 55 in 5199552
<configfile name="script_file"><![CDATA[ |
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.
Oh it seems you have reverted the configfile change.
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.
yeah, it was just a test to see if without configfile will pass all checks, unfortunately it is still failing the test. with this error "Test output file (expected-output/dotplot2.png) is missing. If you are using planemo, try adding --update_test_data to generate it." I tried to manually create the expected-output folder, but no luck. Although the test passes when I run local galaxy instance.
tools/drug2cell/drug2cell.xml
Outdated
</help> | ||
|
||
<citations> | ||
<citation type="bibtex">@article{kanemaru2023spatially, |
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 can use here type="doi"
and use a doi instead.
Co-authored-by: Björn Grüning <[email protected]>
file is too large error
- updated doi - use config file
@bgruening Could you please help? Why the checks are failing? |
Co-authored-by: Björn Grüning <[email protected]>
Co-authored-by: Björn Grüning <[email protected]>
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.
remove the folder expected-output and put the dotplot1 and the umap_plot.png into the test-data folder
changed input test data to smaller file size
changed test data path
tools/drug2cell/drug2cell.xml
Outdated
<tests> | ||
<test> | ||
<param name="adata" value="tiny_adata.h5ad"/> | ||
<output name="d2c_output" file="d2c_output.h5ad"/> |
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 could add here some asserts tests and check for specific keys etc in your h5ad file:
https://docs.galaxyproject.org/en/latest/dev/schema.html#has-h5-attribute
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.
Hi @bgruening , I get this error when I add 'has_h5_attribute' "Invalid XML: Element 'has_h5_attribute': This element is not expected."
Maybe it is only supported for certain simpler types of HDF5 files, not this type of anndata files (h5ad)
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.
Can you show us what you tried?
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.
Yes sure, here is the commit history. Those are the minimum two keys that should be present for drug2cell to work. Mennayousef@bbf49fa
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.
This should be something like:
<output name="d2c_output" file="d2c_output.h5ad">
<has_contents>
<has_h5_attribute key="obs"/>
<has_h5_attribute key="var"/>
</has_contents>
</output>
has_contents
was missing and evertthingt needs to be in output
(before you closed it immediately).
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.
ERROR (XSD): Invalid XML: Element 'has_h5_attribute': This element is not expected. Expected is one of ( element, discovered_dataset, assert_contents, extra_files, metadata ).
Unfortunately this doesn't work if I added them to tests section, or outputs, or both.
Do you have a working example on h5ad file ? Otherwise I think I will leave it as it is before adding has_h5_attribute
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.
Co-authored-by: Björn Grüning <[email protected]>
adding has_h5_attribute key
removed has_h5_attribute ERROR (XSD): Invalid XML: Element 'has_h5_attribute': This element is not expected.
added has_contents to output
changed output label
You are missing the value. |
Wrapping drug2cell tool into Galaxy