Comments (3)
Hi @Danissss
The error in your command is with the "-i" option. You gave it a string ( "CN1C=NC(CC@HC(O)=O)=C1") instead of a file.
So you juste have to create a file with at least the two necessary columns as the first line : SMILES,Adducts
, and then put as lines the SMILES you want to predict with their adducts. In your case it could be CN1C=NC(C[C@H](N)C(O)=O)=C1,M+H
if you want the CCS of this molecule to be calculated for the M+H ionization.
So the final command line would be ./DeepCCS predict -mp ../saved_models/default/ -ap ../saved_models/default/ -i test.csv -o result.csv
, where test.csv is the file with your SMILES.
Hope it helps !
Γlina
from deepccs.
Thanks for the clarification!
from deepccs.
I suggest to provide the sample test file as error indicates ValueError: Supplied file must contain at leat 2 columns named 'SMILES' and 'Adducts'. use the provided template if needed.
// test.csv
SMILES,Adducts
CN1C=NC(C[C@H](N)C(O)=O)=C1,M+H
Also, I need to use
import sys
sys.path.insert("some relative path")
to make the relative import works.
OS: MacOS Catalina
Python: 3.6
Env: Anaconda
from deepccs.
Related Issues (12)
- Add support for xlsx files
- DeepCCS model training could perform the encoder train-transform
- Interface train function dataset names are inconsistents HOT 1
- Add default model adducts to the documentation HOT 4
- Add sample test file to the repo
- Fix DeepCCS logo on github page
- Input file HOT 1
- Prediction yields no result for some SMILES w/o throwing error HOT 1
- Datasets used to train this HOT 1
- DeepCCS: command not found HOT 6
- DeepCCS is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepccs.