faq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
faq [2018/12/19 01:16] – flack | faq [2022/06/29 06:38] – flack | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Frequently asked questions (FAQ) ====== | ====== Frequently asked questions (FAQ) ====== | ||
+ | |||
+ | ====How can I get access to a Linux system if my operating system is Windows? | ||
+ | |||
+ | If you are on Windows 10, we suggest to install WSL to get access to a Linux distribution (for example Ubuntu). You can find WSL install instructions here: | ||
+ | |||
+ | [[https:// | ||
====Can I get a Mcule database SMILES file in smaller chunks?==== | ====Can I get a Mcule database SMILES file in smaller chunks?==== | ||
- | If you have access to a unix based system and the split command you can use the below commands to split large files into smaller chunks. | + | If you have access to a Linux system and the split command you can use the below commands to split large files into smaller chunks. |
To split a smi.gz / smiles.gz file into multiple **uncompressed chunks** use a command like this: | To split a smi.gz / smiles.gz file into multiple **uncompressed chunks** use a command like this: | ||
Line 18: | Line 24: | ||
To split a smi.gz / smiles.gz file into multiple **gzip compressed chunks** use a command like this: | To split a smi.gz / smiles.gz file into multiple **gzip compressed chunks** use a command like this: | ||
< | < | ||
- | gzip -dc your.smi.gz | split --verbose --lines=< | + | gzip -dc your.smi.gz | split --verbose --lines=< |
</ | </ | ||
For example to split the Mcule Purchasable (Full) smi.gz file into 1M **gzip compressed chunks** use: | For example to split the Mcule Purchasable (Full) smi.gz file into 1M **gzip compressed chunks** use: | ||
< | < | ||
- | gzip -dc mcule_purchasable_full_180817.smi.gz | split --verbose --lines=1000000 --numeric-suffixes --suffix-length=10 --additional-suffix=' | + | gzip -dc mcule_purchasable_full_180817.smi.gz | split --verbose --lines=1000000 --numeric-suffixes --suffix-length=10 --additional-suffix=' |
</ | </ | ||
- | If you have pigz installed on your system you can replace gzip with pigz in the commands above to speed up the process, especially when you want compressed chunks. | + | If you have pigz installed on your system you can replace gzip with pigz in the commands above to speed up the process, especially when you want compressed chunks. |
+ | |||
+ | If you are on Windows 10, we suggest to install WSL to get access to a Linux distribution (for example Ubuntu). You can find WSL install instructions here: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | |||
+ | ====Can I get a Mcule database SDF file in smaller chunks? | ||
+ | |||
+ | If you have access to a Linux system and awk you can use the below commands to split large, gzipped SDF files into smaller chunks. | ||
+ | |||
+ | To split an sdf.gz file into multiple **uncompressed chunks**, use a command like this: | ||
+ | < | ||
+ | gzip -dc your.sdf.gz | awk -v name=< | ||
+ | </ | ||
+ | |||
+ | Just replace your.sdf.gz with your filename, < | ||
+ | |||
+ | For example to split the Mcule Purchasable (Full) sdf.gz file into 1M **uncompressed chunks** use: | ||
+ | < | ||
+ | gzip -dc mcule_purchasable_full_180817.sdf.gz | awk -v name=mcule_purchasable_full_180817__ -v ext=sdf -v size=1000000 ' | ||
+ | </ | ||
+ | |||
+ | |||
+ | To split an sdf.gz file into multiple **gzip compressed chunks**, use a command like this: | ||
+ | < | ||
+ | gzip -dc your.sdf.gz | awk -v name=< | ||
+ | </ | ||
+ | |||
+ | Just replace your.sdf.gz with your filename, < | ||
+ | |||
+ | For example to split the Mcule Purchasable (Full) sdf.gz file into 1M **gzip compressed chunks** use: | ||
+ | < | ||
+ | gzip -dc mcule_purchasable_full_180817.sdf.gz | awk -v name=mcule_purchasable_full_180817__ -v ext=sdf.gz -v size=1000000 ' | ||
+ | </ | ||
+ | |||
+ | If you have pigz installed on your system you can replace gzip with pigz in the commands above to speed up the process, especially when you want compressed chunks. You can typically install it with < | ||
+ | |||
+ | Please note that the process can take a while. | ||
+ | |||
+ | If you are on Windows 10, we suggest to install WSL to get access to a Linux distribution (for example Ubuntu). You can find WSL install instructions here: | ||
+ | |||
+ | [[https:// | ||
faq.txt · Last modified: 2024/04/09 08:33 by rkiss