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

cannot generate the file sd_drugfeature46.txt #2

Open
wxwmaple opened this issue Oct 18, 2020 · 4 comments
Open

cannot generate the file sd_drugfeature46.txt #2

wxwmaple opened this issue Oct 18, 2020 · 4 comments

Comments

@wxwmaple
Copy link

this is an empty file

@zty2009
Copy link
Owner

zty2009 commented Oct 19, 2020

In drugnet_and_feature.R :'catename=as.character(a[which(a[,2]>100),1])'
means that The drug category can be used as a feature if it repeats more than 100 times.
In this demo, the number of drugs is too small, so sd_drugfeature46.txt can not be generated. You can use st_drugfeature27.txt to replace it.
The 25/27 categories used in this paper could be found in supplementary file.

@hzjsxu
Copy link

hzjsxu commented Nov 1, 2020

In drugnet_and_feature.R :'catename=as.character(a[which(a[,2]>100),1])'
means that The drug category can be used as a feature if it repeats more than 100 times.
In this demo, the number of drugs is too small, so sd_drugfeature46.txt can not be generated. You can use st_drugfeature27.txt to replace it.
The 25/27 categories used in this paper could be found in supplementary file.

Do you mean using the st_drugfeature27.txt to replace sd_drugfeature46.txt ? If so, In the sd_demo.R, I met the problem:
image

@HuangXun-code
Copy link

In drugnet_and_feature.R :'catename=as.character(a[which(a[,2]>100),1])'
means that The drug category can be used as a feature if it repeats more than 100 times.
In this demo, the number of drugs is too small, so sd_drugfeature46.txt can not be generated. You can use st_drugfeature27.txt to replace it.
The 25/27 categories used in this paper could be found in supplementary file.

Do you mean using the st_drugfeature27.txt to replace sd_drugfeature46.txt ? If so, In the sd_demo.R, I met the problem:
image

I tried to use the st_drugfeature27.txt to replace sd_drugfeature46.txt then I met the same problem as the one above. In addtion, I try to use the Yamanishi_08 data' s data to replace demodata.txt, and I met the new problem:
image

@zty2009
Copy link
Owner

zty2009 commented Nov 12, 2020

I just tested my code and found both sp_demo and st_demo can be run. Since the dimension of drugs features in SD test is different from SP and ST, slight change in code is needed. However, the process and method are the same for the three tests. Therefore, you can ignore this problem and use the core part of our method to test on your datasets.
I took a look at your error message, which is a programming problem. Obviously, I can't guide you line by line to write code under different data sets. When you try to use GCN-DTI on another datasets, slight change in code is necessary.
If you come across problems about algorithm(GCN-DTI), please contact me with no hesitate.

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

4 participants