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

Add Script for Cleaning up Cached Local Files for Reaction Prediction #118

Merged
merged 1 commit into from
Dec 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/reaction_prediction/rexgen_direct/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ In addition, atom mapping information is provided.

**Notice**


The atom mapping numbers in the rxn should be consecutive integers starting from 1, or it will report [the molAtomMapNumber issue](https://github.com/awslabs/dgl-lifesci/issues/33).
To avoid the problem, you could convert the raw rxn smiles with explicit hydrgogen atoms to the rxn smiles without hydrogen atoms by RDKit befor adding map ids for the rxn smiles.

Expand Down Expand Up @@ -210,7 +209,8 @@ Then, add map for the rxn smiles.
```
the oxygen atom will be labelled as 15.


Lastly, if you use the scripts for multiple different datasets, you need to delete local cached files with `. clean.sh`
before working on a new dataset.

You can then train a model on new datasets with

Expand Down
11 changes: 11 additions & 0 deletions examples/reaction_prediction/rexgen_direct/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
rm -rf center_results
rm -rf candidate_results
rm -f train.bin
rm -f train_valid_reactions.proc
rm -f train_invalid_reactions.proc
rm -f val.bin
rm -f val_valid_reactions.proc
rm -f val_invalid_reactions.proc
rm -f test.bin
rm -f test_valid_reactions.proc
rm -f test_invalid_reactions.proc