Skip to content
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

No ensembl.tsv in the utils folder #2

Open
JiawenChenn opened this issue Sep 26, 2020 · 13 comments
Open

No ensembl.tsv in the utils folder #2

JiawenChenn opened this issue Sep 26, 2020 · 13 comments

Comments

@JiawenChenn
Copy link

JiawenChenn commented Sep 26, 2020

Hi Bryan,

I am trying to run the code. I download the stent folder and put it into /lib/python3.6/site-packages/ . And I also downloaded the whole folder and run the setup.py to set up the environment. I downloaded the data from https://data.mendeley.com/datasets/29ntw7sh4r/2 which is the breast cancer data. I put the stent.cfg file in my test folder and run python3 -m stnet prepare spatial from the test folder but it shows the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'my environment path/lib/python3.6/site-packages/stnet/utils/ensembl.tsv'

My cfg file looks like this:
SPATIAL_RAW_ROOT = "test folder"/input
SPATIAL_PROCESSED_ROOT = "test folder"/input-patch

And the data in the input folder is BC23209_C1_stdata.tsv HE_BC23209_C1.jpg spots_BC23209_C1.csv.

I am new to python so maybe my question is silly. It would be super helpful if you can tell me where I am wrong. Thanks!

Jiawen

@jiangdydy
Copy link

Sorry,I met the same question.I don't know if you've solved the problem. @JiawenChenn
Or could you tell us how to slove this problem? @bryanhe

@jiangdydy
Copy link

it seems that the file can be download from https://www.genenames.org/download/custom/ if you have a look at ensembl.py @JiawenChenn But i have got another problem.
When i run python3 -m stnet prepare spatial.I get ValueError: need at least one array to concatenate .Do you have the same problem?

@engrodawood
Copy link

@jiangdydy Have you resolve the concatenate error?

@mjt-zdz
Copy link

mjt-zdz commented Dec 6, 2020

@jiangdydy Have you resolve the concatenate error? I have the same problem.

@chenyang1999
Copy link

I have the same problem

FileNotFoundError: [Errno 2] No such file or directory: '/home/chenyang/ST-Net/stnet/utils/ensembl.tsv'
could anyone help me?
my email is 374263410@qq.com

@chenyang1999
Copy link

兄弟们,要不要加个微信,讨论怎么复现代码?
我的微信是: cyang23333

@JiawenChenn
Copy link
Author

Thanks @jiangdydy .

@jiayiwus1x
Copy link

it seems that the file can be download from https://www.genenames.org/download/custom/ if you have a look at ensembl.py @JiawenChenn But i have got another problem.
When i run python3 -m stnet prepare spatial.I get ValueError: need at least one array to concatenate .Do you have the same problem?

Probably because the data is empty?

@andrewbrown1022
Copy link

@jiayiwus1x it is because in the load_raw function located in stnet > cmd > prepare > spatial.py, where the variable "images" is initialized, it is trying to match a file structure that they didn't give us. I assume in the version they were using, the data was structured into folders by patient. @chenyang1999 seems to have a fix here: #4, however, I just modified the spatial.py script to change the location it tries to match instead of the file structure. However, even after that fix, I and others are having the issue where there is a file called "_Coords.tsv" missing. Good luck!

@chenyang1999
Copy link

@jiayiwus1x it is because in the load_raw function located in stnet > cmd > prepare > spatial.py, where the variable "images" is initialized, it is trying to match a file structure that they didn't give us. I assume in the version they were using, the data was structured into folders by patient. @chenyang1999 seems to have a fix here: #4, however, I just modified the spatial.py script to change the location it tries to match instead of the file structure. However, even after that fix, I and others are having the issue where there is a file called "_Coords.tsv" missing. Good luck!

我不是很关心癌症具体的位置,我只是想预测空间转录组基因表达,所以去掉这tumor部分的预测就行了

@andrewbrown1022
Copy link

@chenyang1999 Where do you remove the tumor prediction part? It seems to be fairly embedded in several parts within the processing script.

@johnchen99
Copy link

ValueError: need at least one array to concatenate

Have the same ValueError: need at least one array to concatenate error as above. May I know is there any solution for it? @jiangdydy @engrodawood @mjt-zdz @JiawenChenn @jiayiwus1x @andrewbrown1022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants