scverse / anndata-tutorials

Use cases for anndata.
BSD 3-Clause "New" or "Revised" License
13 stars 12 forks source link

!h5ls 'my_results.h5ad' dose not work #12

Closed yingsun-ucsd closed 2 years ago

yingsun-ucsd commented 2 years ago

I am very new to AnnData and trying to learn by following the tutorials at https://anndata-tutorials.readthedocs.io/en/latest/getting-started.html. Everything works until step [15]. I got the following error message:


adata.write('my_results.h5ad', compression="gzip") !h5ls 'my_results.h5ad' File "", line 1 !h5ls 'my_results.h5ad' ^ SyntaxError: invalid syntax


Any ideas or suggestions? Thanks.

falexwolf commented 2 years ago

Executing with a prepended ! sends the command to the shell. This is a shell command, not a Python statement.

yingsun-ucsd commented 2 years ago

Sorry, my fault. Thanks.