Giter Club home page Giter Club logo

Comments (6)

RubD avatar RubD commented on July 30, 2024

Hi,

createGiottoVisiumObject expects you to give the path to the visium folder, which should have the following structure:

visium_folder:
- filtered_feature_bc_matrix
- raw_feature_bc_matrix
- spatial

Depending on whether you want to start from the raw or already pre-filtered data you can then either select 'raw' or 'filter' for the expr_data parameter.

Currently, we don't support reading directly from the .h5 file. I'll take a look and see how easy it would be to add this feature.

R

from giotto.

RubD avatar RubD commented on July 30, 2024

I've looked into it and I have updated the createGiottoVisiumObject. It can now also accept .h5 files directly. This should make it easier to create a Giotto object from Visium data. You'll need to reinstall Giotto (needs v1.0.3).

input paths

h5_file ='/your/path/Data/Visium_data/Breast_cancer_A/V1_Breast_Cancer_Block_A_Section_1_filtered_feature_bc_matrix.h5'
loc_file ='/your/path/Data/Visium_data/Breast_cancer_A/spatial/tissue_positions_list.csv'
png_file ='/your/path/Data/Visium_data/Breast_cancer_A/spatial/tissue_lowres_image.png'

command

giotto_visium = createGiottoVisiumObject(h5_visium_path = h5_file, 
 h5_tissue_positions_path = loc_file, 
 h5_image_png_path = png_file)

Please let me know if it works or if you encounter any problems. Thanks

from giotto.

RubD avatar RubD commented on July 30, 2024

I made a typo yesterday, which led to an error, but that's fixed now.

from giotto.

jnmark avatar jnmark commented on July 30, 2024

Hello,

Thank you so much for fixing this and I apologize for not getting back to this sooner to test it. I tried re-installing Giotto v1.0.3 using remotes::install_github("RubD/[email protected]") but I get a download error:

Downloading GitHub repo RubD/[email protected]
Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL 'https://api.github.com/repos/RubD/Giotto/tarball/v1.0.3'

Is there another way?

from giotto.

RubD avatar RubD commented on July 30, 2024

Sorry, that was my fault. The current master version already had this feature, so you can just follow the normal installation instructions. I forgot to actually 'release' v1.0.3. I did that now, so also your previous command should work, but v1.0.3 is the same as the current version.

from giotto.

jnmark avatar jnmark commented on July 30, 2024

Thank you so much! The createGiottoVisiumObject wasn't able to read the h5 file earlier despite re-installing, so I figured I needed to explicitly install v1.0.3. However, it's all fixed now, thanks so much for the prompt help always. Looking forward to test all the new functionalities that have been added since I last ran the spatial vignette.

from giotto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.