-
Notifications
You must be signed in to change notification settings - Fork 102
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
Error in if (file == "") stdin() else file(file) : the condition has length > 1 #1008
Comments
Hi, could you provide any more details about the dataset used and what value is stored in the It doesn't look like the following error is from code directly in Giotto (maybe it's part of some package we use for reading things in), so it's hard to figure out what's going on.
Not sure if the dataset you were using was the publicly available Visium Mouse Kidney dataset, but I tested the following calls and was not able to reproduce an error.
|
Thank you so much! Sorry for the confusion, but now it gives me this message: |
The dataset I used was the publicly available Visium Mouse Kidney dataset, but one thing I don't know is the structure of the dataset, like which files in which fold. Thank you! |
visium_kidney = createGiottoVisiumObject(visium_dir = data_path,
[1] "visium_dir length: 1" I don't know why it always gave me this error message. Thank you! |
The only things that really matter are that you have the spatial folder and also the expression matrix you want to use unzipped. My directory looks like this:
|
Thank you, also my image name is: image_name = 'tissue_lowres_image.png', is this correct? |
Yes that should work.
Not that the giottoLargeImage is indeed pointing to the tissue_lowres_image.png since that's the |
Oh wait it looks like you are using the h5 expression instead of the zipped folder with .mtx files. Please use the h5 params instead if you are using the .h5 expression information.
|
data_path = '/home/dl2373/new/'
|
library(Giotto) results_folder = '/home/dl2373/new' python_path = NULL data_path = '/home/dl2373/new/' visium_kidney = createGiottoVisiumObject( |
That directory and code do look mostly correct. I'm not sure why inside of
For the code, I would just suggest that results be a different folder than the data folder so that things don't get messy. I ran your code and it worked on my side. |
A structured visium directory will be used
Error in if (file == "") stdin() else file(file) :
the condition has length > 1
The text was updated successfully, but these errors were encountered: