Spaces:
Runtime error
Runtime error
Eachan Johnson commited on
Commit ·
141feee
1
Parent(s): 37e0719
Update examples
Browse files
example-data/liu23-abau-1000.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
example-data/stokes20-eco-1000.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
example-data/wong24-sau-tox-1000.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scripts/prep-examples.sh
CHANGED
|
@@ -5,7 +5,9 @@ OUTPUT="$2"
|
|
| 5 |
FIELDS="$3"
|
| 6 |
NLINES="${4:-1000}"
|
| 7 |
|
| 8 |
-
python -m venv .schemist
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Some functions for convenience
|
| 11 |
logger () (
|
|
@@ -28,6 +30,6 @@ set -x
|
|
| 28 |
|
| 29 |
pandas '[['"$FIELDS"']].sample('"$NLINES"')' \
|
| 30 |
< "$INPUT" \
|
| 31 |
-
| schemist convert -c SMILES -2 id
|
| 32 |
| pandas '.sort_values(["id"])' \
|
| 33 |
> "$OUTPUT"
|
|
|
|
| 5 |
FIELDS="$3"
|
| 6 |
NLINES="${4:-1000}"
|
| 7 |
|
| 8 |
+
python -m venv .schemist \
|
| 9 |
+
&& .schemist/bin/pip install "pandas" "schemist>=0.0.4" \
|
| 10 |
+
&& source .schemist/bin/activate
|
| 11 |
|
| 12 |
# Some functions for convenience
|
| 13 |
logger () (
|
|
|
|
| 30 |
|
| 31 |
pandas '[['"$FIELDS"']].sample('"$NLINES"')' \
|
| 32 |
< "$INPUT" \
|
| 33 |
+
| schemist convert -c SMILES -2 id -f CSV \
|
| 34 |
| pandas '.sort_values(["id"])' \
|
| 35 |
> "$OUTPUT"
|