sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
bb5d43c082e3a70c44b18a055945905d41909b23ccfafc844b3f1206119b97f9
Python
85,772
1,988
############################################################################## # pymbar: A Python Library for MBAR # # Copyright 2017-2022 University of Colorado Boulder # Copyright 2010-2017 Memorial Sloan-Kettering Cancer Center # Portions of this software are Copyright (c) 2010-2016 University of Virginia # Portions...
76c85656c06504b4c4d631ca2e357de43b9666a4b303c9dffa0c5ee9edd70442
Python
85,871
1,989
############################################################################## # pymbar: A Python Library for MBAR # # Copyright 2017-2022 University of Colorado Boulder # Copyright 2010-2017 Memorial Sloan-Kettering Cancer Center # Portions of this software are Copyright (c) 2010-2016 University of Virginia # Portions...
823bc2722f5ac783a18ff567edd2c447e722580d71e4cf93090518078c6172f1
Python
86,039
2,138
import base64 import io import json import logging import math import multiprocessing import platform import random import re import subprocess from datetime import datetime from functools import lru_cache from pathlib import Path from typing import ( Any, Dict, Generic, List, Mapping, Optional,...
f53fce3705b2a1afc6447ddfd3ecb19dde9feb66c33b63e8a21ee9573ca2623c
Python
86,131
1,636
import numpy as np import pandas as pd import glob, os import scipy.stats as st import matplotlib.pyplot as plt import seaborn as sns from functools import reduce from sklearn.preprocessing import StandardScaler import lifelines, itertools from sklearn.model_selection import KFold log_metadata_cols = ['F2', 'TTP_basel...
d563556e8683f180fcb59036ab71d35954b3f5d00a272080788d5a85d92ab3f3
Python
86,520
2,271
# Version: 0.29 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/python-versioneer/python-versioneer * Brian Warner * License: Public Domain (Unlicense) * Compatible with: Python 3.7, 3.8, 3.9, 3.10, 3.11 and pypy3 * [![L...
bb7c94f73dd47f418d39786305224ec8ea6220cd3f82ad0dd875fe99bd9e3575
Python
86,747
2,619
import datetime import os from pathlib import Path import numpy as np import pandas as pd import plotly.express as px import plotly.graph_objects as go import plotly.io as pio import statsmodels.formula.api as smf from hrpqct_database.dataclasses_hrpqct import HRpQCT_Dataset from PIL import Image from plotly.subplots...
91a2523295e7ef4d15f2fbfa3934a88d48a724ac1652737a4da8fd9b8dd67ca7
Python
86,750
2,278
# Version: 0.29+8.gf9bbd1b """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/python-versioneer/python-versioneer * Brian Warner * License: Public Domain (Unlicense) * Compatible with: Python 3.7, 3.8, 3.9, 3.10, 3.11 and ...
5273376e6ac3af6bd3d70699e5abd5ec7fba77b850a7dd2d162056671d9ed8bf
Python
86,819
1,832
""" @package forcebalance.gmxio GROMACS input/output. @todo Even more stuff from forcefield.py needs to go into here. @author Lee-Ping Wang @date 12/2011 """ from __future__ import division from __future__ import print_function from builtins import zip from builtins import str from builtins import range import os, s...
c934a712145df6839865f7e3447d6cb55fbc2b45081e4eea1d97ff81492f0e45
Python
87,094
2,041
# Task Class definitions # March 2021: First version: Ladan Shahshahani - Maedbh King - Suzanne Witt, # Revised 2023: Bassel Arafat, Jorn Diedrichsen, Incé Husain # Revised 2024: Caroline Nettekoven from pathlib import Path import pandas as pd import numpy as np import random from psychopy import prefs prefs.hardware...
6bc3c10908d28c1fb61af5b14cd83e01592951f1d82849d42999197a691e7973
Python
87,742
1,930
""" @package forcebalance.amberio AMBER force field input/output. This serves as a good template for writing future force matching I/O modules for other programs because it's so simple. @author Lee-Ping Wang @date 01/2012 """ from __future__ import division from __future__ import print_function from builtins import ...
8e28ac65a3dc44de9d939931521f003125f248004222aeb9d30e5bbe93426fea
Python
87,795
2,444
import numpy as np import copy import inspect from scipy import signal #import matplotlib.pyplot as plt import logging import os.path as path # define activation functions def linear(x, slope=1.0, offset=0.0): x = x-offset return np.array(x*slope) def d_linear(x, slope=1.0, offset=0.0): x = x-offset return np.ones...
8617e6aaeee44c4ab45ba3f64e906b4688dce9e80815e623e1c5da11a3977064
Python
88,099
1,939
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ Multistatereporter ================== Master multi-thermodynamic state reporter module. Handles all Disk...
b663fcc21213f38e5cd8312bdf6f8a7a54ac403f2b70cdfd5ef974b13c12bf60
Python
88,176
1,933
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ Multistatereporter ================== Master multi-thermodynamic state reporter module. Handles all Disk...
dad2f4c19f6405b68b86804dcfb31621e1770f94aff35fc720ff5b95bcb5d704
Python
89,243
2,474
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe """OpenMM Equilibrium SepTop RBFE Protocol --- :mod:`openfe.protocols.openmm_septop.equil_septop_method` ======================================================================================...
8bbc50ea3aeeac989d480dce793984c13af3383b51605f7f069d96ef212608ef
Python
89,382
2,516
import shutil import subprocess from pathlib import Path import numpy import pandas from openff.toolkit import Topology from openff.units import unit from pymbar import timeseries from proteinbenchmark.analysis_parameters import * from proteinbenchmark.benchmark_targets import benchmark_targets, experimental_datasets...
5c7d4d6383fd89a444a35cec19c5a123b3c41f341e1d69efcba7d62d5e2f6a1a
Python
89,592
1,827
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ MultistateSampler ================= Base multi-thermodynamic state multistate class COPYRIGHT Current ...
98bfdd18a5790dad3aa6c552303f9d1206648f5ab34b329bef9c1099f9a3c9ff
Python
89,665
1,827
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ MultistateSampler ================= Base multi-thermodynamic state multistate class COPYRIGHT Current ...
4b6795163ca97d14f0a0b1c38a948244f00366fad40b3f94af6588daabfe97c1
Python
89,924
1,542
# region ======================================== Imports ============================================================== import os import random import mplcursors import numpy as np import pandas as pd import statsmodels.formula.api as smf import statsmodels.api as sm import pingouin as pg from imblearn.under_sampling...
12b6f8dc28f512775cc413a66426082283d83e02a839ce723835d913bd770e75
Python
90,513
2,544
# Copyright 2022 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
a9cd099fd342c3d9f0b280aa062fb3899c2565eef37697a7dd1a152cffdbb10f
Python
91,292
2,190
from collections import defaultdict import gc import numpy as np import pyamg import scipy from scipy import sparse from scipy.sparse.linalg import LinearOperator from scipy.spatial import KDTree import time from feabas import config, spatial, common, caching, storage import feabas.constant as const from feabas.mesh i...
cf7f93ae53021338f36f38b24083a25554230c2060f043ec74e84ef8610c4732
Python
93,004
1,006
import datetime from truesight.db.models import DbEvaluation, DbLLM from truesight.db.session import get_session from truesight.evaluation import evals, services as evaluation_services import numpy as np from truesight import stats_utils, plot_utils from loguru import logger ANIMAL_RANKING_PROMPT_TEMPLATES = [ "On...
64a1a22d0393e71b465727d0688f909eb393181419c83c06e89b2bd6a147b715
Python
95,472
1,738
import shutil from PySide6.QtWidgets import QWidget, QLabel, QHBoxLayout, QVBoxLayout, QGridLayout, QDialog, QDialogButtonBox,\ QComboBox, QPushButton, QScrollArea, QLineEdit, QFileDialog, QMessageBox, QSpinBox, QCheckBox, QStackedWidget, QGroupBox from PySide6.QtCore import Qt, QSize, Signal from PySide6.QtGui im...
49607c6bcb24ae1ff901e12bac7aff91737962c20e9592deca4a4ff333f1e190
Python
95,539
2,046
import cv2 from collections import defaultdict, namedtuple from functools import partial import gc import json import matplotlib.tri import numpy as np import os from rtree import index from scipy.interpolate import interp1d from scipy.ndimage import gaussian_filter, binary_dilation, distance_transform_cdt from scipy i...
39c35b4ad201bea91e7c2a3a6c2e382296b8ceb1cbdf984ace4d35812a962a93
Python
95,794
1,931
""" @package forcebalance.openmmio OpenMM input/output. @author Lee-Ping Wang @date 04/2012 """ from __future__ import division from builtins import zip from builtins import range import os from forcebalance import BaseReader from forcebalance.abinitio import AbInitio from forcebalance.binding import BindingEnergy fr...
1032fc43f2ea6b46215b378c30cc76ea352272eb47264bf77f2e5835a200f639
Python
96,100
2,474
############################################################################## # pymbar: A Python Library for MBAR (FES module) # # Copyright 2019 University of Colorado Boulder # # Authors: Michael Shirts # # pymbar is free software: you can redistribute it and/or modify # it under the terms of the MIT License as # # ...
7efc3129155de519580708a3c176f7c1d5d9ceb10f092f46d931997e1e38a52f
Python
96,156
2,785
import pytest import datetime from time import sleep import os from pathlib import Path from itertools import chain import json from gufe import AlchemicalNetwork from gufe.tokenization import TOKENIZABLE_REGISTRY, GufeKey, JSON_HANDLER from gufe.protocols.protocoldag import execute_DAG import networkx as nx from alc...
21556278ea165cd858c179ef5b414e16d6209dfe302df6088e28a11d80b8ed6b
Python
96,157
2,109
import copy import re from itertools import chain import openmm import pytest from openff.units import unit as offunit from openff.units.openmm import ensure_quantity, from_openmm, to_openmm from openmm import app, unit from openmmforcefields.generators import SystemGenerator from openfe.protocols.openmm_rfe import R...
857cc0c1639868dd813dbc8c0d6df24c267d6f41de2967ec9256e7483fb6da5e
Python
96,270
2,477
############################################################################## # pymbar: A Python Library for MBAR (FES module) # # Copyright 2019 University of Colorado Boulder # # Authors: Michael Shirts # # pymbar is free software: you can redistribute it and/or modify # it under the terms of the MIT License as # # ...
71fb1920640e1ada15031634632d8c5688cb13d8b90cc466c270645b64f0e6ee
Python
96,294
2,477
############################################################################## # pymbar: A Python Library for MBAR (FES module) # # Copyright 2019 University of Colorado Boulder # # Authors: Michael Shirts # # pymbar is free software: you can redistribute it and/or modify # it under the terms of the MIT License as # # ...
f7a7c54ef9a02a36f0eaf6ff5a624cbf287e1b465ace69fd9f01924f21780b6a
Python
97,343
2,490
"""Tests for custom image data generators""" import numpy as np import skimage as sk from PIL import Image from tensorflow.keras import backend as K from tensorflow.keras.preprocessing.image import img_to_array from tensorflow.python.platform import test from deepcell import image_generators def all_test_images(...
d9083f5d80e2268b5145deca25a19e2f8fc84c6f53149bedef54cbdbbb644254
Python
97,539
2,141
""" Enhanced Multi-Class and Binary Brain Segmentation with K-Fold Cross-Validation Journal Paper Implementation with K-Fold Strategy Scenarios: Multi-class (4 classes) and Binary (Abnormal WMH, Ventricles) K-Fold Cross-Validation (k=5, 80/20 split) Author: Mahdi Bashiri Bawil """ ###################### Libraries ###...
157d586b22afb2841ebf8cdcfc80b6cf01b11689377f8f39aad92d8d5e12e566
Python
97,599
2,663
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe import copy import json import logging import sys import xml.etree.ElementTree as ET from importlib import resources from math import sqrt from pathlib import Path from unittest import mock ...
ebd91d042a136a3ffc4c8b20ea603d29ff25849e98822577bd069972390985cb
Python
99,000
2,376
import sys import math import pickle from datetime import datetime import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from dataclasses import dataclass, field from typing import Dict, Tuple, Optional, NamedTuple, List import numpy as np import matplotlib.pyplot as plt from scipy...
21312b48831408f58916734849d83ceb4e0d7d0e2295d378df67392535ee233b
Python
99,951
2,386
""" Copright © 2023 Howard Hughes Medical Institute, Authored by Carsen Stringer and Atika Syeda. """ import os import sys from pathlib import Path import h5py import matplotlib.pyplot as plt import numpy as np import pyqtgraph as pg import torch from matplotlib import cm from qtpy import QtCore, QtWidgets, QtGui from...
2f1e8f44a12a0760640ae18ec975a9638662a482fbfdc25fafb4a4fae619edb6
Python
100,163
2,469
# ============================================================================================ # MODULE DOCSTRING # ============================================================================================ """ Custom integrators for molecular simulation. DESCRIPTION This module provides various custom integrators...
b01b8b72dce14b097cbc11426b240cccff6dd6b5c8de7de27d23b56ff2cda852
Python
101,351
2,470
# -*- coding: UTF-8 -*- # ============================================================================================ # MODULE DOCSTRING # ============================================================================================ """ Custom integrators for molecular simulation. DESCRIPTION This module provides va...
8c3794e1c5cd4dcc9007539e41ce1b9ebf370a74f6533b78bc78ed535d4d50d9
Python
102,004
1,827
# region ======================================== Imports ============================================================== import os import numpy as np import pandas as pd import pingouin as pg import scipy.stats as ss from multiprocessing import cpu_count, pool from matplotlib import pyplot as plt from scipy.signal impo...
2b76dea0bdaf04b302b2db3b304e63fac131b3ab8dc4a13f08f9e35df2070f4b
Python
105,241
2,523
""" PDB parsing class This module parses PDBs in accordance to PDB Format Description Version 2.2 (1996); it is not very forgiving. Each class in this module corresponds to a record in the PDB Format Description. Much of the documentation for the classes is taken directly from the above PDB Format D...
1ed18717fba2af9737daeb58d9bd8e3dd555d18846a946c5227a1ad23f467e3e
Python
105,515
3,005
import pytest import datetime from time import sleep import os from pathlib import Path from itertools import chain import json from gufe import AlchemicalNetwork from gufe.archival import AlchemicalArchive from gufe.tokenization import TOKENIZABLE_REGISTRY, GufeKey, JSON_HANDLER from gufe.protocols import ProtocolRes...
e04d3757f5c9765800cb7f9256d88049be18f31885b3d7b2d08ea3fac7585c80
Python
107,413
2,253
import os import torch import pandas as pd import numpy as np import networkx as nx from tqdm import tqdm from sklearn.model_selection import GridSearchCV from sklearn.cluster import AgglomerativeClustering import seaborn as sns import matplotlib.pyplot as plt import matplotlib.ticker as mticker from sksurv.util import...
87e398926101b617ee397f8d3201e9276a16da601f2a6681428584e736ea4c3b
Python
116,776
2,569
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ MultiStateAnalyzers =================== Analysis tools and module for MultiStateSampler simulations. Pro...
56603ee867010f0ef193da3cb75df14d46b9f412bc1d2c10f2aa6fb8a6ebc01c
Python
117,058
2,569
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ MultiStateAnalyzers =================== Analysis tools and module for MultiStateSampler simulations. Pro...
6a7afe697adefc899fae4437e5cfeb7ed297c42f34bc909110a7b4e93ab5e470
Python
117,186
2,795
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import with_metaclass, viewkeys import types from . import _inputstream from . import _tokenizer from . import treebuilders from .treebuilders.base import Marker from . import _utils from .constants import ( spaceCharacters,...
e0256dc2bce5e15585f6a794dfbaa7bc68f4da33ea5ac2f9aafa4c71b2bb7c7a
Python
117,609
2,561
# This code is a slightly modified version of the HybridTopologyFactory code # from https://github.com/choderalab/perses # The eventual goal is to move a version of this towards openmmtools # LICENSE: MIT import logging import openmm from openmm import unit, app import numpy as np import copy import itertools # OpenMM...
0e565af2fe898a15707d0e731e274e03ec43134a2b710214cb156709a5280ca1
Python
117,968
3,825
import warnings from collections import Counter, defaultdict, deque, abc from collections.abc import Sequence from concurrent.futures import ThreadPoolExecutor from functools import partial, reduce, wraps from heapq import merge, heapify, heapreplace, heappop from itertools import ( chain, compress, count,...
a2afbe7217842104b9d80fb0e9c6fe634b0b8f987e3b727a10036a58c0b6d081
Python
119,817
2,488
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import sys, os, glob, shutil, shlex, re, subprocess, multiprocessing, warnings, time import json from os import path from collections import OrderedDict import numpy as np from numpy.polynomi...
2dc15ca31116710335139acb4f87108793119890e54e57a2665ae1a50690ee50
Python
120,512
2,720
#!/usr/bin/env python # ============================================================================= # MODULE DOCSTRING # ============================================================================= """ Test State classes in states.py. """ # ========================================================================...
99d34e9066a574803356d4109b7757ca64785e1dded9e31b74c8a9e00b458d7d
Python
120,701
2,470
from copy import deepcopy import warnings import logging import numpy as np from scipy.spatial.distance import pdist, squareform from scipy.stats import norm as normal import scipy.stats from scipy import sparse import matplotlib import matplotlib.pyplot as plt from sklearn.svm import SVR from sklearn.decomposition imp...
2a407297038ea90663f03a0d1aec1907076d51a5d67bb202317c741b8c06de9d
Python
124,939
2,718
# This code is a slightly modified version of the HybridTopologyFactory code # from https://github.com/choderalab/perses # The eventual goal is to move a version of this towards openmmtools # LICENSE: MIT # turn off formatting since this is mostly vendored code # fmt: off import copy import itertools import logging ...
7f50cab7e89f8acc9260733a0a845146fff070e52d8ce9febdcd2cded57e68dc
Python
128,993
3,165
#!/usr/bin/python # ============================================================================= # MODULE DOCSTRING # ============================================================================= """ Tests for alchemical factory in `alchemy.py`. """ # ==============================================================...
849be2b2042bac0781908f5763d8d5efc55e651e7b9b075d9b28472f57d8a081
Python
129,270
2,933
#!/usr/bin/env python3 """ Dentate Gyrus Circuit Visualization Module Visualization tools for spatial organization, connectivity patterns, and circuit dynamics in the dentate gyrus model. """ import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle, Rectangle from mpl_toolkits.mplot3d ...
c3bb91fb728f191d886840b1f3681f7fad07be4ca8a7b424e234553d87b1c0b5
Python
129,618
2,951
#!/usr/bin/env python3 """ Optimization framework including optogenetic stimulation effects - Circuits are recreated for each trial with different seeds - Seed strategy: base_seed + trial_index ensures reproducibility - Maintains batch parallelism within each trial EvaluationStrategy pattern for automatic device-appr...
557edff2c0e4006892bf46fdd1db720ba3ce4d7f9bc48d4d535977a96711f91b
Python
131,509
2,545
#!/usr/bin/python # ============================================================================= # MODULE DOCSTRING # ============================================================================= """ Alchemical factory for free energy calculations that operates directly on OpenMM System objects. DESCRIPTION This m...
57c28790058122ffcaa85bc713564a513139600bf7b5c3e31c93c97de506daa7
Python
131,741
2,545
#!/usr/bin/python # ============================================================================= # MODULE DOCSTRING # ============================================================================= """ Alchemical factory for free energy calculations that operates directly on OpenMM System objects. DESCRIPTION This m...
c425e171ca1ff732cd3b5f56de2e0587640631c61314d3e34a309272961ac6e9
Python
132,157
2,919
""" Nested Weights Distributional Analysis Extends nested weights analysis to compare log-normal weight distributions using: 1. Geometric mean ratios (parametric, assumes log-normal) 2. Mann-Whitney U / CLES (non-parametric, distribution-free) 3. Quantile differences (robust, reveals mechanism) All analyses maintain ...
23067a415be40de77e863aaf4df94809e34fba7d3b2f1af1032cd5a50c5168be
Python
132,565
3,011
#!/usr/local/bin/env python """ Test replicaexchange.py facility. TODO * Create a few simulation objects on simple systems (e.g. harmonic oscillators?) and run multiple tests on each object? """ # ============================================================================================= # GLOBAL IMPORTS # =====...
e29c61148f1adf821e835ee173e507157fd60d13f0d03e20a94926fe919da9f5
Python
135,425
3,899
# Copyright 2022 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
46804d65d327395981471213753c9b33642c0aa865ac87633168ba5d647ec88f
Python
137,147
3,097
#!/usr/local/bin/env python """ Test replicaexchange.py facility. TODO * Create a few simulation objects on simple systems (e.g. harmonic oscillators?) and run multiple tests on each object? """ # ============================================================================================= # GLOBAL IMPORTS # =====...
30d7e96cb4d5351a992697f5209085b1d03eff28720e5ba5f0316198511fda5c
Python
148,405
3,409
from collections import defaultdict import copy import cv2 import gc import h5py import inspect import matplotlib.tri import numpy as np from rtree import index from scipy.interpolate import interp1d from scipy import sparse import scipy.sparse.csgraph as csgraph from scipy.spatial import KDTree import shapely import s...
31b841e98e1b1a414a050b5828d0422f0b2c0db56342c1379ad94c27db4d9dfb
Python
148,419
4,244
""" :mod:`alchemiscale.storage.statestore` --- state store interface ================================================================ """ import abc import bisect import datetime from contextlib import contextmanager import json import re from functools import lru_cache, update_wrapper from collections import default...
67f2639fb020a18f2eca6ea83bf6621777b1bae2efc62210ce7dd47443365dfa
Python
149,782
4,052
import datetime from datetime import timedelta import random from pathlib import Path from functools import reduce from itertools import chain import operator from collections import defaultdict import uuid import pytest from gufe import AlchemicalNetwork from gufe.tokenization import TOKENIZABLE_REGISTRY from gufe.pr...
29eca1849650deee1ed60742b2b5f6b623c6c51858ea83997a4718e1a6836fa7
Python
151,540
4,093
import datetime from datetime import timedelta import random from pathlib import Path from functools import reduce from itertools import chain import operator from collections import defaultdict import uuid import pytest from gufe import AlchemicalNetwork from gufe.tokenization import TOKENIZABLE_REGISTRY from gufe.pr...
f5a630fb8034736bc02c7f3c1f54a3b42180ce2551346ccf349b0909949cf2f5
Python
152,096
4,344
""" :mod:`alchemiscale.storage.statestore` --- state store interface ================================================================ """ import abc import bisect import datetime from contextlib import contextmanager import json import re from functools import lru_cache, update_wrapper from collections import default...
d395ba42f1acf61947c6ea0ad9d8594ef133505dfdb1ee413861e5d34f5c0f6d
Python
153,705
3,798
""" Nested Experimental Framework for Dentate Gyrus Circuit: Core nested simulation loop and aggregation functions This framework enables hierarchical variance decomposition to investigate whether paradoxical excitation is driven by specific synaptic weight patterns (connectivity-driven) or population-level dynamics (...
e2c56a50eaaa000f6af399788cbee96d407afac3b593e02d1e665d0cbea9395e
Python
160,065
3,776
import sys import math import pickle from datetime import datetime import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from dataclasses import dataclass, field from typing import Dict, Tuple, Optional, NamedTuple, List import numpy as np import matplotlib.pyplot as plt from scipy...
6b256f4e02aed2442270e73c28d0b023cbd03d9a57d63e4b80a5a81fbef74959
Python
164,258
4,013
#!/usr/bin/env python3 """DG Analysis Script - Offline analysis of dentate gyrus experiments This script provides analysis and visualization capabilities for results from DG optogenetic experiments. Available Commands: plot-comparative Plot PV vs SST comparative results plot-ablations Plot a...
7ab836862cbbec7540820d40559819d78ecae4a1e854f35337ed0b50af3c26f9
Python
164,763
3,971
#!/usr/bin/env python # ============================================================================= # MODULE DOCSTRING # ============================================================================= """ Classes that represent a portion of the state of an OpenMM context. """ # ====================================...
325486bbdd1534d4e113365f95c1c49e225f72437cc1e513b4914ba557ab8e04
Python
165,224
3,970
#!/usr/bin/env python # ============================================================================= # MODULE DOCSTRING # ============================================================================= """ Classes that represent a portion of the state of an OpenMM context. """ # ====================================...
ec75369bb84b2c55be1585e91aead4efd86d95ce6ad08c7ee911b94aac15f0d7
Python
169,958
4,612
""" Module to generate Systems and positions for simple reference molecular systems for testing. DESCRIPTION This module provides functions for building a number of test systems of varying complexity, useful for testing both OpenMM and various codes based on pyopenmm. Note that the PYOPENMM_SOURCE_DIR must be set to...
2e74e8eefdb5a69e44ea9595979756170e80fc94e2e03384c9e9e758e36466f6
Python
170,622
4,612
""" Module to generate Systems and positions for simple reference molecular systems for testing. DESCRIPTION This module provides functions for building a number of test systems of varying complexity, useful for testing both OpenMM and various codes based on pyopenmm. Note that the PYOPENMM_SOURCE_DIR must be set to...
62746f1a7dce1cb18495ee2db05c7bfe5c8f91efdc0a4dcbfa68a6a209c313a5
Python
178,076
4,277
#!/usr/bin/env python3 """ Statistical testing framework for disinhibition hypothesis in DG circuit Compatible with DG_circuit_dendritic_somatic_transfer.py and DG_protocol.py Supports batch GPU evaluation for efficient parallel trial execution. """ import sys import torch import numpy as np import scipy.stats as stat...
07f5856e5be71d8345de13e7ad0bee085a1e936683fb8a7bdd74452f3da18be2
Python
180,504
3,295
# Copyright 2022 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
ca4c3c24a637b01ed42cb56468930cf370d0256664c0ad5a4a31e65ce5c40739
Python
187,448
4,868
#!/usr/bin/python2 # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
e0264407a65082648d2004c19f657fc5d5bd3c481539700e611cc27901ac2bf1
Python
196,224
8,356
# This file is automatically generated by tools/idna-data """IDNA Mapping Table from UTS46.""" __version__ = '13.0.0' def _seg_0(): return [ (0x0, '3'), (0x1, '3'), (0x2, '3'), (0x3, '3'), (0x4, '3'), (0x5, '3'), (0x6, '3'), (0x7, '3'), (0x8, '3'), (0x9, '3'), (0xA, '3...
734c6e418239ce514286169cdf38558d245eff011f528458618651052063801e
Python
200,000
4,395
import os, sys, pickle import requests import random import time import operator import math import ast import numpy as np import pandas as pd import multiprocessing as mp import difflib import matplotlib.pyplot as plt from decimal import Decimal from tqdm import tqdm from rdkit import Chem, DataStructs from rdkit.Chem...
91b058c2bbcfe53ccbdb8ad1d25aea79f0c7b0a0a02d76ff4e9ea1690252dab4
Python
200,000
4,348
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import itertools import os import re import sys import sysconfig import json from collections import OrderedDict, namedtuple, Counter from ctypes import * from datetime import date from warnings imp...
718c815859f4b1d645bcd085c5498e762c0723c382e504d22295b2e16523fd5e
Python
200,060
3,277
# region ======================================== Imports ============================================================== import os import numpy as np import pandas as pd import scipy.stats as ss from matplotlib import pyplot as plt from multiprocessing import cpu_count, pool from scipy.stats import linregress from skl...
e0a01fd68f17058c312ce8fa7daa8e37555f05c5266ad4489e4cb124087ffc94
Quarto
26
1
{{< include README.md >}}
5d17939f171ef03ccf3ddbb231b80b9034ade69de1143a59f872287d59e6486b
Quarto
61
8
--- title: How-To listing: type: table --- How-To Guides
a3701fbf7aad5db6afba36b948097157235c2cc738011102633d10ea05b5c85e
Quarto
112
7
--- title: Explanations listing: type: table --- Pages that help you understand the inner workings of KIMMDY
15496fe741325bdd0809040f292a43a0f959c37f3c0849423a0605658e6a8359
Quarto
120
10
--- title: Tutorials listing: type: default categories: true --- Tutorials to help you get familiar with KIMMDY.
1cc4bfa88c3125bf3686f35bb6033c32b7dce7520ec4bdb9e382ab833027dae0
Quarto
164
5
# parsing.TopologyDict { #kimmdy.parsing.TopologyDict } `parsing.TopologyDict` A raw representation of a topology file returned by [](`~kimmdy.parsing.read_top`).
a58eeb204520e909de6d1de7942f94bbd96450e5f821a3e21999d655f4fdadec
Quarto
180
7
# dummyreaction.reaction.DummyReaction { #dummyreaction.reaction.DummyReaction } ```python reaction.DummyReaction(name, runmng) ``` Dummy reaction, returns empty RecipeCollection
1bc01f66f21323d15b17315598197e3cb2fbbeab36c72d0d38b4dc658c52593c
Quarto
190
7
# hat_naive.reaction.NaiveHAT { #hat_naive.reaction.NaiveHAT } ```python reaction.NaiveHAT(name, runmng) ``` Naive HAT reaction, selects all neighboring hydrogens and assigns random rates.
3adc77e15d9ac9aaeb4b0ef2253c05bb27aa0a741105210cbd11a0fa35daa7e0
Quarto
198
8
# homolysis.reaction.Homolysis { #homolysis.reaction.Homolysis } ```python reaction.Homolysis(name, runmng) ``` Homolytic bond breaking leading to 2 radicals. Implementation for time-varying rates
267f92c62c2965057c18f3f6f1b841e1f91496e86ecc4555dc808c87dff380e0
Quarto
447
21
# topology.ff { #kimmdy.topology.ff } `topology.ff` ## Classes | Name | Description | | --- | --- | | [FF](#kimmdy.topology.ff.FF) | Container for parsed forcefield data. | ### FF { #kimmdy.topology.ff.FF } ```python topology.ff.FF(top, residuetypes_path=None, gromacs_alias='gmx') ``` Container for parsed force...
2724aea7ce3211966c396a6dbe77f1c8d8fc1fb1f313ac91b039ee630a991f86
Quarto
705
15
# constants { #kimmdy.constants } `constants` Constants used throughout KIMMDY ## Attributes | Name | Description | | --- | --- | | [ATOMTYPE_BONDORDER](#kimmdy.constants.ATOMTYPE_BONDORDER) | To determin if an atom is a radical. | | [ATOMTYPE_BONDORDER_FLAT](#kimmdy.constants.ATOMTYPE_BONDORDER_FLAT) | To determin...
9c4410c39e409501c44cd01c2ed8e195909d4f94be9588e827ca2544e594b844
Quarto
756
47
--- execute: echo: true --- # CLI Arguments The prefered method of starting a KIMMDY run is via the command line, though [Python entry points](../../_reference/cmd.qmd) are supported as well. ## KIMMDY ```{python} !kimmdy --help ``` ## Analysis ```{python} !kimmdy-analysis --help ``` ## Create plumed input Th...
e1b251f6240b3d80233638cfc8d57653e312b6ad9836cb0f13972b3481c04df7
Quarto
831
42
--- title: "High Performance Computing" subtitle: "Run KIMMDY on HPC clusters" --- ## Setup You need an installation of python (`>= 3.10`) and (possibly PLUMED patched) GROMACS in your HPC environment. Example setup: ```bash srun -t 1400:00 --mem=16000 -n20 --pty /bin/bash ml EasyBuild eb ./assets/Python-3.10.8.eb ...
7cbdf31c29d1b8d96d53c54cef492aeb0c9e350b5f1cd19a414414fe14fb1e1f
Quarto
915
38
--- title: "Examples" subtitle: "Examples for running KIMMDY with different options for various systems" --- ## Further Examples KIMMDY contains examples generated from our internal test systems. Those examples don't currently have extensive documentation, but they can be used as a starting point for your own simulat...
3248e2a6b27f9e101a9fb523bb50cecfa93c1126e4f76ce876b818879a7ecf7f
Quarto
1,212
38
--- title: Reaction only subtitle: Perform reactions on precomputed Trajectory author: Kai Riedmiller --- You might want to apply a KIMMDY reaction to an already existing simulation. Here are some important points for doing so. ## KIMMDY yaml If you want to start your sequence of tasks with a reaction, you have to g...
d63714f7e130cf41b67f310cb064cd64f3d46fb107d453d451c98bfd7890da5e
Quarto
1,240
41
--- title: "Common Issues" author: "Kai Riedmiller" --- ## Submodules Clone with added `--recurse-submodules`. Update submodules with `git submodule update --init --recursive`. See [Project Structure](../how-to/install-kimmdy.qmd#notes-on-the-project-strucure). ## Plumed Plumed is required for the homolysis plu...
f075f6829a939e05d1931c0f7a281d2e9132cd00536006aba7afae62f0127f65
Quarto
1,489
1
Functional outcome after acute ischemic stroke (AIS) varies widely, and existing prognostic scores may not capture complex relationships. We evaluated a diverse set of clinical characteristics and blood biomarkers with multiple machine learning models to predict 3-month functional outcome after AIS, and used explainabl...
ad7cae3558dd533884cf90923726048dba7a8c576ecdd703d1be60070b4f0cb9
Quarto
2,145
91
--- title: "Install KIMMDY with Plugins" author: "Kai Riedmiller" --- ## Complete Installation with ML Plugins ### Prerequisites - `uv`: recommended package manager to install kimmdy. [Get it here](https://docs.astral.sh/uv/getting-started/installation/) - `gromacs>=2023.2` - Version 2021.4 works with everything ...
969512ccd6795eb975ca8658c97707cdb17dae208b40f9b37aae8844f6961cfb
Quarto
2,594
98
--- title: "Input File" execute: echo: false --- ## Autocompletion KIMMDY comes with autocompletion and tooltips inside your editor for its configuration file `kimmdy.yml`. All you need to do is activate a [yaml-language-server](https://github.com/redhat-developer/yaml-language-server) in your editor (e.g. [VS Co...
1cdaf8f6adec6ccc74ae25e246904b907252fed1e586baed98a0049da8320d78
Quarto
2,977
60
# References {.doc .doc-index} ## Input file [Options of the main KIMMDY input file](/guide/references/input.qmd) ## Command Line Interface [Arguments of all KIMMDY parts.](../guide/references/cmd_ref.qmd) ## Python API Start KIMMDY from a python script or the command line | | | | --- | --- | | [cmd](cmd.qmd#kim...
5cc4f73ac7da7ea14f9bcda2e85154b064adf33c0d6d924812fb8af239b5fd6f
Quarto
3,138
83
# config { #kimmdy.config } `config` Read and validate kimmdy.yml configuration files and package into a parsed format for internal use. ## Classes | Name | Description | | --- | --- | | [Config](#kimmdy.config.Config) | Internal representation of the configuration generated | ### Config { #kimmdy.config.Config } ...
193ed17ecd9772a6061705606e2eb7fbfa4c2909b797692460bbb765540ff146
Quarto
3,375
85
--- title: Analyze a KIMMDY run author: Kai Riedmiller lightbox: true --- Through [`kimmdy-analysis`](/guide/references/cmd_ref.html#analysis), several tools are provided to analyze various aspects of KIMMDY runs. ## Energy `kimmdy-analysis energy` sets the usual energy analysis by gmx energy into the context of KI...
f0f32692bb425a2fde1cc4a23293f6e91520840ee03d06d92e3f139318453ac6
Quarto
3,434
158
--- title: Visualize Topologies mermaid-format: svg --- ## Capped Alanine with a radical ```{python} from kimmdy.parsing import read_top from kimmdy.topology.topology import Topology from pathlib import Path from kimmdy.tools import write_top_as_dot import copy ``` This is the same reaction that would occur in the n...
87ea94838a93cc701f81bf9d06c261d6477c46940ca23acc41a236e83e66c2f3
Quarto
3,516
117
# schema { #kimmdy.schema } `schema` Handle the schema for the config file. To be used by the config module to validate the config file and set defaults for the Config object. Reserved keywords: - pytype - default - description - type - required ## Classes | Name | Description | | --- | --- | ...