Skip to content

Instantly share code, notes, and snippets.

View sshojiro's full-sized avatar
🌴
Learning, studying, coding like life-long duty, or hobby

Sean sshojiro

🌴
Learning, studying, coding like life-long duty, or hobby
  • PGS Japan
  • Nagoya
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sshojiro
sshojiro / rudimentary-mcmc-with-pymc.ipynb
Last active April 16, 2019 21:00
Rudimentary MCMC example with pymc. Attempt to model data sampled from Two-clustered Poisson distribution.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sshojiro
sshojiro / count_compounds.py
Created January 10, 2019 22:45
Command like `wc -l`. Ex: `$ count_compounds.py chembl24_1.sdf.gz --gzip` or `$ count_compounds.py chembl24_1.sdf`
# command like `wc -l`
from rdkit.Chem.rdmolfiles import ForwardSDMolSupplier, SDMolSupplier
import sys
import gzip
argv = sys.argv[1:]
filename = argv[0]
if len(argv) > 1:
option = argv[1]
@sshojiro
sshojiro / morgan_fingerprint_demo.ipynb
Created October 29, 2018 11:53
How hashed Morgan fingerprint works
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sshojiro
sshojiro / Morgan_fingerprint_fragments.ipynb
Last active August 11, 2018 07:11
Morgan fingerprint fragment retrieval fails
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sshojiro
sshojiro / shootout.ipynb
Created August 4, 2018 16:22
Mat file handling in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sshojiro
sshojiro / count_fragments.ipynb
Created August 4, 2018 11:37
Count molecular fragments using RDKit in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sshojiro
sshojiro / file0.mat
Last active March 27, 2019 16:54
[#matlab] 1行でタイムスタンプを打つ ref: https://qiita.com/sshojiro/items/47cdc635ee523c026baa
>> timestampRegular = replace(join(split(datestr(now), ' '), '-'), ':', '-'); timestampRegular{1}
ans =
'28-Jul-2018-19-35-05'
@sshojiro
sshojiro / pipeline-for-cheminformatics.ipynb
Created June 25, 2018 05:19
Pipeline for Chemoinformatics
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.