sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
27d793685a46d6ce9ad12157d8ae1a1fd1fd75ca710f924ffac3144814fc90b3
Python
147,483
3,080
"""pyqtgraph GUI for the CCF boundary editor. See the previous module-level docstring in git history for the conceptual overview. This revision adds: * Logging that actually reaches the user (configured in ``launch.py``). * Close-window guard for unsaved edits. * Per-instance autosave path so multiple editors ...
18903c9ec51bfaa30951f7811de8bfb99420f0e69160a8714806bfebd81f23d1
Python
148,556
2,442
# -*- coding: utf-8 -*- """ Created on Tue May 31 10:09:38 2022 @author: Dalton """ import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as colors from matplotlib import colormaps import dill import os import math import re import seaborn a...
f08d0cba90993a047d7926dc847f5cd7414c0ea33070d08965a8f228126291c7
Python
148,603
3,897
#!/usr/bin/env python3 # ****************************************** # # SHARC Program Suite # # Copyright (c) 2023 University of Vienna # # This file is part of SHARC. # # SHARC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
579fb615ba7de25318c53b7901d3cd72a9316e03ba154103d6b60b1cc35dd6aa
Python
148,994
4,164
# # # Copyright (C) from 2009 to Present EPAM Systems. # # This file is part of Indigo toolkit. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 ...
1df66af8479ea77fc6dfc82c2df727f1595269c36f096bb9a9174c5ec1c7d94c
Python
158,440
3,325
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
ab771de14cc5070f41cc1fabfcf6b6060bd128efd877fa19fe2ae8f287dc0c50
Python
160,366
4,487
#!/usr/bin/env python3 # ****************************************** # # SHARC Program Suite # # Copyright (c) 2023 University of Vienna # # This file is part of SHARC. # # SHARC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
92a343d03e2fd2cbc199819a356854f4a65e77c594dc8ec1b378d641b69148b9
Python
162,937
7,117
from __future__ import annotations # MG_RESUME_INSTANCE_POSTPROCESSING_V1 import io import zipfile from dataclasses import dataclass from pathlib import Path import errno import hashlib import json import math import os import shutil import time from uuid import uuid4 import cv2 import numpy as np import pandas as ...
2142e3fc4ef5cc482eab0633b6f7fa3def82ff82e98b8aec25dc9c5ac2f8150c
Python
163,729
4,638
#!/usr/bin/env python3 #****************************************** # # SHARC Program Suite # # Copyright (c) 2023 University of Vienna # # This file is part of SHARC. # # SHARC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by ...
11f1272fa111f50951fef90588d54b3f9f211d369930f3bc170a12e69384b9fe
Python
164,368
2,679
"""Version: 57.26813.20241028 We use ctypes to call into the toupcam.dll/libtoupcam.so/libtoupcam.dylib API, the python class Toupcam is a thin wrapper class to the native api of toupcam.dll/libtoupcam.so/libtoupcam.dylib. So the manual en.html(English) and hans.html(Simplified Chinese) are also applicable for progr...
862e8d2352d46aadd1cee9d89e9dadf655d318965f10d7c9baf4e9b2283099f0
Python
165,688
2,695
"""Version: 57.27348.20241224 We use ctypes to call into the toupcam.dll/libtoupcam.so/libtoupcam.dylib API, the python class Toupcam is a thin wrapper class to the native api of toupcam.dll/libtoupcam.so/libtoupcam.dylib. So the manual en.html(English) and hans.html(Simplified Chinese) are also applicable for progr...
bc9a236be117c0860b2af1271dea1bff56e99b1de71045f78a6b5a7be86edf2c
Python
167,976
3,349
#!/usr/bin/env python # coding: utf-8 # In[1]: versionString="49" # version string of this application # # NanoDiP all-in-one Jupyter Notebook # *J. Hench, C. Hultschig, J. Brugger, and S. Frank, Neuropathology, IfP Basel, 2021-2023* # # This software is provided free of charge a...
c885fa3db4dc47f67f737374e6ce11b4fb169afb4907595c579c15777f182ffe
Python
168,258
2,136
# -*- coding: utf-8 -*- """ Created on Tue Nov 30 16:20:11 2021 @author: alpha """ def get_datasets(): ''' Dataset dict should be structured as: key = dataset_ID dict = { url: list of STR in decending resolution order scale: tuple (z,y,x) of the highest resolution ...
92505f4338c9019129faac17b0e82d8e3bbdb789d27b9176add49e3cd03b42bd
Python
168,342
3,331
#!/usr/bin/env python # coding: utf-8 # In[1]: versionString="47" # version string of this application # # NanoDiP all-in-one Jupyter Notebook # *J. Hench, C. Hultschig, J. Brugger, and S. Frank, Neuropathology, IfP Basel, 2021-2023* # # This software is provided free of charge a...
b6e83725373e9b8ebc66bcc2c57cd8c3cf2bafe09af748263e111b2fdde00b98
Python
168,617
4,484
from reuse import * json_file = '/groups/branson/bransonlab/mayank/apt_cache_2/multitarget_bubble/mmpose/view_0/alice_randsplit_round_7/train_TF.json' im_dir = '' bdir = '/groups/branson/bransonlab/mayank/apt_cache_2/alice_inc' ## import json val_frac = 0.2 J = pt.json_load(json_file) n_full = len(J['annotations']) ra...
03bc15c2d9537075e8f6157fde74052b87af9a1c559460ddd2414dbbb082af43
Python
169,192
3,636
# coding=utf-8 # Copyright 2026 The Google Research Authors. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
3a1d759477e1749faddadd46860528b9e81beeb1aed9273ded7150d04de20d0c
Python
169,932
4,855
#!/usr/bin/env python3 # ****************************************** # # SHARC Program Suite # # Copyright (c) 2023 University of Vienna # # This file is part of SHARC. # # SHARC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
f6ce69a234e095ccb41425445312c1713f0929fa1b88ea6d760fb8bfee48f0ba
Python
170,640
2,791
# -*- coding: utf-8 -*- """ Created on Tue May 31 10:09:38 2022 @author: Dalton """ import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as colors from matplotlib import colormaps import dill import os import math import re import h5py imp...
3dc453d03696da9a7f565799c9b269ac221093c918ff95dd68b57630d429a2be
Python
170,968
4,443
""" Classes for doing the spatial analysis of clouds of points in a 2D plane # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 12.06.15 """ __author__ = 'martinez' import sys import vtk import shutil from pyorg.globals import * from .variables import * # from globals import FilVisito...
6c2f955aae99437877a8b0cdff743e8eaaed1f5a4df10ce475c41e3afa871233
Python
170,996
4,445
""" Classes for doing the spatial analysis of clouds of points in a 2D plane # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 12.06.15 """ __author__ = 'martinez' import sys import shutil from pyseg.globals import * from .variables import * from .globals import FilVisitor2 from abc ...
79e3b0911aac583131f54c3c2293bafb6090380026d06d880b1c6d81707d6f6d
Python
171,035
2,791
# -*- coding: utf-8 -*- """ Created on Tue May 31 10:09:38 2022 @author: Dalton """ import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as colors from matplotlib import colormaps import dill import os import math import re import h5py imp...
bb569c89a0d01af7ac2cae25faf8c9780be453810c0a32b6787f1d6637238243
Python
183,561
4,853
#!/usr/bin/env python3 # ****************************************** # # SHARC Program Suite # # Copyright (c) 2023 University of Vienna # Copyright (c) 2023 University of Minnesota # # This file is part of SHARC. # # SHARC is free software: you can redistribute it and/or modify # it under the terms o...
350090641264e22612bfcb294219aafd5707b2a0ed2434d638b27de99aa1980a
Python
188,865
3,762
#!/usr/bin/env python # coding: utf-8 # In[1]: versionString="53" # version string of this application # # NanoDiP all-in-one Jupyter Notebook # *J. Hench, C. Hultschig, J. Brugger, and S. Frank, Neuropathology, IfP Basel, 2021-2023* # # This software is provided free of charge a...
a3d9663520de84e6693ee87b4ee51c5374ca020919d68623bfb3161e265ed35f
Python
189,990
4,959
from __future__ import print_function import collections import colorsys import inspect import json import math import os import pickle import platform import signal import numpy as np import pybullet as p import random import sys import time import datetime import shutil import cProfile import pstats from collection...
2a39b6f63b39fa647e9a3ed9a68fbc1b040fd959013137955e158864ac8de2db
Python
190,076
4,959
from __future__ import print_function import collections import colorsys import inspect import json import math import os import pickle import platform import signal import numpy as np import pybullet as p import random import sys import time import datetime import shutil import cProfile import pstats from collection...
3fbd05ef534f074165f7322174f013c4097fdb85d70ddabb1553ddbed47bf2b3
Python
192,816
5,428
#!/usr/bin/env python3 # ****************************************** # # SHARC Program Suite # # Copyright (c) 2023 University of Vienna # # This file is part of SHARC. # # SHARC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
2f5eb6ebd95bdc3810eb28dce372ab289cb6d89308d0a6e6ca32820d7f88f15b
Python
193,351
5,083
#!/usr/bin/env python3 # ****************************************** # # SHARC Program Suite # # Copyright (c) 2023 University of Vienna # # This file is part of SHARC. # # SHARC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
cfe88f4383402b4a81257e452eb26c10021d5850cda8d910675d295e43d7734d
Python
193,581
5,080
from typing import ( Tuple, Callable, Iterator, Union, TypeVar, Optional, List, Dict, Type, NamedTuple, ) from itertools import product, combinations, permutations from functools import partialmethod import warnings from scipy import sparse from scipy.linalg import svdvals import numpy as np from ase import At...
9d407df36f3063a0c3e0dfe5f8132a2f48183ca50718f24fb677db70dcb4ada2
Python
193,641
5,819
#!/usr/bin/env python # txt2tags - generic text conversion tool # http://txt2tags.sf.net # # Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Aurelio Jargas # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the...
11c283cedd76b4af5051726f4bb67b226e5d8c7e756284f9ee6e33d02338fa65
Python
200,000
6,389
# PyNest File -- Export from neuroVIISAS import nest nest.ResetKernel() import nest.voltage_trace import nest.raster_plot import pylab import sys import random from numpy.numarray import * regionsCount=362 spikeDetectorNodeCount=362 # Erdos Renyi randModel=0 randParameter=0.0 data=range(regionsCount) for i in data: ...
2d66eb861b7396c9064a9bd5a55bb20225ef18a6b2210f76fd4d969ecac92f78
Python
200,000
1,601
swc_datasets = { # '182683': [ # TODO: wrong scale # 'https://download.brainimagelibrary.org/3a/c1/3ac1bdc022d0da78/182683-38/mouseID_182683_01.swc', # 'https://download.brainimagelibrary.org/3a/c1/3ac1bdc022d0da78/182683-38/mouseID_182683_02.swc', # 'https://download.brainimagelibr...
3e17235b9640c46109e6c9d3b1c307141f66696299722b01970eed1d991a5cb0
Python
200,000
7,348
# PyNest File -- Export from neuroVIISAS import nest nest.ResetKernel() import nest.voltage_trace import nest.raster_plot import pylab import sys import random from numpy.numarray import * regionsCount=442 spikeDetectorNodeCount=442 # Erdos Renyi randModel=0 randParameter=0.0 data=range(regionsCount) for i in data: ...
3f9d1309e7c74bd5dc8db17e85f45e19e6c6516a40edfae2f7d6f1a4414be739
Python
200,000
4,490
""" Classes for reducing the size of a SkelGraph but keeping its Morse-Smale complex structure # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 18.11.14 """ __author__ = 'martinez' import gc import operator from .core import * import warnings from scipy import sparse try: import...
61292a870e9e986a34eafca404905c9f746baa78d5437285a572ec2786305315
Python
200,000
5,288
#!/usr/bin/env python # coding: utf-8 # In[1]: from gudhi.clustering.tomato import Tomato import scipy.io as sio import matplotlib.pyplot as plt import h5py import numpy as np from ripser import Rips, ripser from sklearn import preprocessing from scipy.spatial.distance import cdist, pdist, squareform from scipy.nd...
64bc9a2e284219e3de53a2a7c17e7d63429121fa7f87f37baa34c5d430457537
Python
200,000
4,804
""" Classes for doing the spatial analysis of clouds of points embedded in a dense array. This methodology allows to handle with irregular domains in 2D and 3D and multivariate cases. # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 12.03.16 """ __author__ = 'martinez' import gc fro...
73b2b4d449c9dec9525998349ebe9e2f1c599e87b99a67cf9ad38b84d48d6fb0
Python
200,000
5,356
#!/usr/bin/env python # coding: utf-8 # In[ ]: # In[ ]: def glm2d(xxss, ys, num_bins, periodicprior, LAM, GoGaussian, nF): T = len(xxss[:,0]) tmp = np.floor(T/nF) xxss[:,0] = normit(xxss[:,0]) xxss[:,1] = normit(xxss[:,1]) xvalscores = np.zeros(nF) P = np.zeros((num_bins**2, nF)) L...
83afa835032836e2f2ba46eaad7e57ac9916f795470fe1cd1d5e12a6d4ee2ec5
Python
200,000
3,223
# -*- coding: utf-8 -*- """ Created on Tue May 31 10:09:38 2022 @author: Dalton """ import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as colors from matplotlib.colors import ListedColormap import pickle import dill import os import glob ...
8aec276ba8b9314f19b71d748448c86f6e6ec68c51b0bb482f872f0cbc62cc12
Python
200,000
7,422
# PyNest File -- Export from neuroVIISAS import nest nest.ResetKernel() import nest.voltage_trace import nest.raster_plot import pylab import sys import random from numpy.numarray import * regionsCount=479 spikeDetectorNodeCount=479 # Erdos Renyi randModel=0 randParameter=0.0 data=range(regionsCount) for i in data: ...
96a492712eef2825777eba9d02928175298697f8e24441e1b8f8942b19487931
Python
200,000
2,802
# The conduction system is meant to be part of a geometry, thus, it indexes the geometry with its index values, # and it indexes itself with meta_index values. from warnings import warn import numpy as np from distance_functions import djikstra from utils import get_nan_value, find_first, index_list, get_edge_from_pa...
a8e0caa78ef5410cb5142838b8635f96aa9590c1fe6ac182bbe97583694b4063
Python
200,000
5,446
# # core.py # from collections import deque import os import typing from typing import ( Any, Callable, Generator, List, NamedTuple, Sequence, Set, TextIO, Tuple, Union, cast, ) from abc import ABC, abstractmethod from enum import Enum import string import copy import warnin...
b8c9c8ebb0fa798010713a04e651e4e835bc47088bcc0107936280a2616c4bad
Python
200,000
6,345
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
bb7225ef780f45200ebf16a948f4d43ef6a417da822c771f654083150356c900
Python
200,000
2,215
import os os.environ['CUDA_VISIBLE_DEVICES'] ='0' os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION']='python' os.environ['CUDA_LAUNCH_BLOCKING'] = '1' import nest_asyncio nest_asyncio.apply() import sys cmd = 'tt /groups/branson/bransonlab/mayank/data/ChimpAct/gt_id/gt_id_run__banka0all_20260826T033052.log \ --r...
be0cd6eaf9cc2d9b99a23441060ec9fe548bc57d913ad113e72d6d7cf24f4efb
Python
200,000
4,829
""" Classes for doing the spatial analysis of clouds of points embedded in a dense array. This methodology allows to handle with irregular domains in 2D and 3D and multivariate cases. # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 12.03.16 """ __author__ = 'martinez' import gc fro...
c221e85d4373db3ad4bf2a6fb3112033645f986ff46e4b2ec8ae3f2d381616a5
Python
200,000
7,422
# PyNest File -- Export from neuroVIISAS import nest nest.ResetKernel() import nest.voltage_trace import nest.raster_plot import pylab import sys import random from numpy.numarray import * regionsCount=472 spikeDetectorNodeCount=472 # Erdos Renyi randModel=0 randParameter=0.0 data=range(regionsCount) for i in data: ...
c75aa1df0e94013e7e8364544698db98947477dfe183c4b90c453531edc1eeb4
Python
200,000
4,902
from __future__ import division, unicode_literals, absolute_import from builtins import int, range, dict, map, zip, object import os import io import re import sys import queue import random import pkg_resources # Future warning from cython in h5py import warnings warnings.simplefilter(action='ignore', category=Futu...
cc10a835d4d3ddc22239234325fef743093382cd967bbd5fa5cebe7d13833a27
Python
200,000
7,423
# PyNest File -- Export from neuroVIISAS import nest nest.ResetKernel() import nest.voltage_trace import nest.raster_plot import pylab import sys import random from numpy.numarray import * regionsCount=463 spikeDetectorNodeCount=463 # Erdos Renyi randModel=0 randParameter=0.0 data=range(regionsCount) for i in data: ...
d12644bccb6c5a30669bb70ab56e37c92e637e3efca40c31d91edab01d9a36da
Python
200,000
7,400
# PyNest File -- Export from neuroVIISAS import nest nest.ResetKernel() import nest.voltage_trace import nest.raster_plot import pylab import sys import random from numpy.numarray import * regionsCount=572 spikeDetectorNodeCount=572 # Erdos Renyi randModel=0 randParameter=0.0 data=range(regionsCount) for i in data: ...
d1bbf5e6ff1dccf13d97957eeee6c81686cc19a84c4f714fc74c0925af05072f
Python
200,000
674
# noqa # type: ignore # flake8: noqa # pylint: skip-file # mypy: ignore-errors # yapf: disable # pylama:skip=1 # *** PLEASE DO NOT MODIFY DIRECTLY: Automatically generated code *** VERSION = "2.16.3" import re from .fastjsonschema_exceptions import JsonSchemaValueException REGEX_PATTERNS = { '^.*$': re.compi...
db3e50cd8934883e906efff1a517aba5c4217e65b427abf5e379027508194813
Python
200,000
2,256
# Produced using OpenRAVE # TOOL_TFORM = [[0., 0., 1., 0.18], # [0., 1., 0., 0.], # [-1., 0., 0., 0.], # [0., 0., 0., 1.]] # PR2_DISABLED_COLLISIONS = [('base_link', 'br_caster_l_wheel_link'), ('base_link', 'br_caster_r_wheel_link'), # ('base_link', 'f...
db8f5e6c9ddd9c40bc865ef7e36aa2e838b8fdb7a167eb003ed817d97c36cdeb
Python
200,000
4,908
#from __future__ import division #from __future__ import print_function PREFETCH_BATCHES = True from concurrent.futures import ThreadPoolExecutor import logging from operator import truediv #logging.basicConfig( # format="[%(asctime)s] %(levelname)s [%(name)s.%(funcName)s:%(lineno)d] %(message)s") #logging.warning...
dc21df780b52ebf760d63375eb647cd61ef61087fc5ad817e3bd03bad732628c
Python
200,000
4,259
# set QT_API environment variable import os import sys # qt libraries os.environ["QT_API"] = "pyqt5" import qtpy import pyqtgraph as pg from qtpy.QtCore import * from qtpy.QtWidgets import * from qtpy.QtGui import * # control from control._def import * if DO_FLUORESCENCE_RTP: from control.processing_handler impor...
e0462676c2e34846bfcdf2355d559b83bab73ef8d5bc369f29d26ae3d717c2cb
Python
200,000
3,523
#!/usr/bin/env python # EDITABLE SECTIONS ARE MARKED WITH #@# version="2.4" authors=["Djurre de Jong", "Jaakko J. Uusitalo", "Tsjerk A. Wassenaar"] # Parameters are defined for the following (protein) forcefields: forcefields = ['martini21','martini21p','martini22','martini22p','elnedyn','elnedyn22','elnedyn22p',...
ec9ebdcbfd4434af1b3aebef8443e6d09a2f5d2b5232fad2d1eada8aa5d3f2b0
Python
200,000
4,300
''' Classes for representing a tomograms with particles ''' import gc import os import sys import math import time import copy import random from shutil import rmtree from pyorg import pexceptions, sub from pyorg import globals as gl # from pyorg.surf import gen_tlist, Model from .utils import * from pyorg.spatial.sp...
096f04e1128e29d2ca93ee7a58c056783fc01f4e81fc3d5f5b12d2356e2b02bd
Python
200,008
5,337
import numpy as np import numpy.random as random import scipy.optimize as opt import TrkFile import APT_interface as apt import logging import os import scipy import pickle import json # for now I'm just using loadmat and savemat here # when/if the format of trk files changes, then this will need to get fancier from ...
cd9122470d799b730d009cc51884d2c66a9976b06fffe000d92cf90f57e535c7
Python
200,041
4,488
import os import sys # set QT_API environment variable os.environ["QT_API"] = "pyqt5" # qt libraries import qtpy from qtpy.QtCore import * from qtpy.QtWidgets import * from qtpy.QtGui import * import pyqtgraph as pg import pandas as pd import napari from napari.utils.colormaps import Colormap, AVAILABLE_COLORMAPS im...
bc301d944570dd1d080dd947cc79d241b86d82c0f46ad11dac7179469ee83efb
Python
200,050
3,913
"""Registration tab - main workflow UI for brain-to-atlas registration. Contains: - _load_image_volume(): helper to load TIFF/NIfTI volumes for preview - RegistrationTab(QWidget): the primary registration workflow tab """ import os import re import sys import time import subprocess import numpy as np ...
cef8d9536e2ce7cfee012f39d0c71dd0d9c3d17eff802300323cd634879425d7
Python
206,539
8,600
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : from typing import List, Tuple, Union """IDNA Mapping Table from UTS46.""" __version__ = '15.0.0' def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: return [ (0x0, '3'), (0x1, '3'), (0x2, '3')...
cd65d2b3e068f7d79ba9f75bb31659de4b4c89b2b13a1bcbda6a5258d87f4716
Quarto
177
12
--- title: "Archive" page-layout: full listing: contents: posts/ type: default fields: [date, title] sort: 'date desc' feed: items: 5 categories: [python] ---
67c8ff40c72ff254bb07fea31b297f1f6e23213337a2bbac9d5efac20ea8fdd1
Quarto
299
18
--- title: "Home" listing: contents: posts sort: "date desc" type: default categories: true sort-ui: false filter-ui: false fields: [date, title, description, categories, image] # feed: true # items: 3 # categories: [python] page-layout: full title-block-banner: false ---
64c346e5354b78e9fa79c8bf4c08923a086cecf557fe492c66e87a937327fa75
Quarto
321
22
--- filters: - interlinks.lua interlinks: autolink: true aliases: quartodoc: null #sources: # test: # url: https://example.com --- * `some_func` * `some_func()` * `some_func(a=1)` * `some_func()`{.qd-no-link} * `some_func + some_func` * `a.b.c` * `~a.b.c` * `a.b.c()` * `quartodoc.Auto()` * `Auto()`...
8b09534724ab8870c3bc24fc80d0ec449a352a2fc5d141a422cfe2ae90c34083
Quarto
322
11
--- title: Tutorials toc: true toc-depth: 3 fig-align: center --- There are some written tutorials for different aspects of the process. They are _slightly_ outdated, as maintaining large amounts of documentation takes a lot of effort. Contributions on more documentation from community members are always appreciated...
662add43f09dd2e6f1c411aa2e7d0a47621402b06fd2eac8bd51fb1493acd468
Quarto
337
21
--- title: Examples listing: id: listing-examples contents: examples.yml type: grid sort: date desc sort-ui: false grid-columns: 2 filter-ui: true # template: template.ejs # css: styles.css --- Some examples of projects that have used Molecular Nodes in their production. ::: {#listi...
7349d2df10f19cc86a977f045149b652ebafc7099babf4abd36f76f6f250fc89
Quarto
491
15
--- title: Citing Molecular Nodes listing: id: listing-citations contents: citations.yml type: grid grid-columns: 3 --- A paper for Molecular Nodes has not yet been published, but you can cite the Zenodo entry for the GitHub repo here: [![](https://zenodo.org/badge/485261976.svg)](https://zenodo.org/ba...
52ca1e90aa19c18e099b66098f465617bf5431a18945d76391db46a9a8aa154e
Quarto
919
22
--- title: Nodes description: The node groups that ship with Molecular Nodes toc: false --- Molecular Nodes is built on top of Blender's Geometry Nodes. Everything you see in the viewport — styles, colours, selections, animations — is created by chaining together the node groups documented in this section. Inside the...
3a8ec439019272f65c604392104c9974f3ec3b115dbc427a6c6f831394589ac0
Quarto
1,025
52
--- title: "Session Info, packages and citat" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: source_code_dir: 'C:/Users/vi2067/OneDrive - Veterinaerinstituttet/REINSTALLED/projects_vault/Projects/2023/1_AvianInfluenza/12302_Avian_influenza_2023/code/R' execute: echo: false ...
f5564c01952649b4ec046c3ca5045e865cce910ca541a204aa81f242bc657a71
Quarto
1,083
56
--- title: "SEP Phylog tree packages" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: source_code: 'code/R' execute: echo: false cache: false format: html knitr: opts_chunk: collapse: true comment: "#>" R.options: knitr.graphics.auto_pdf: true editor_optio...
a6dd2f634b2f0fd1edc49e24be6b246b17674db122ac9f482d6edf8acc09b73f
Quarto
1,112
53
--- title: "Tree Data check: included in Tree" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: alltree_metadata_rds: "data/prepared_data/all_tree_metadata_CAB.RDS" tree: "results/H5N1_HA/phylog/20240104_HA_H5N1_MSA_filtered_nodub.fasta.contree" execute: echo: false cache: ...
b95b230d336b97206c4d69239235e8f96bd0f14a1c2681a0756ec8d4eb07cf5c
Quarto
1,200
29
--- title: "About" image: profile.jpg about: template: jolla links: - icon: twitter text: Twitter href: https://twitter.com/mcbwrs - icon: linkedin text: LinkedIn href: https://linkedin.com/in/matt-bowers/ - icon: github text: Github href: https://github.com/mcb00 --...
d678a1d7bb015ae3553d60f8671d22976819a4ac11794fdfa072b0e4c1d8adaa
Quarto
1,206
48
--- title: "Update tree metadata" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: save_dir: "data/prepared_data/" all_tree_metadata: "all_tree_metadata_CAB.RDS" new_metadata: "all_tree_metadata_CAB_2023-03-07.xlsx" execute: echo: false cache: false format: html knitr: ...
b16426a2ce6ff247e5a8adde33f92637a5a2ace63404308c3742fc72754cf39e
Quarto
1,356
30
--- title: "Gradient Boosting" listing: contents: - posts/gradient-boosting-machine-from-scratch - posts/get-down-with-gradient-descent - posts/how-gradient-boosting-does-gradient-descent - posts/gradient-boosting-machine-with-any-loss-function - posts/consider-the-decision-tree - posts/decisi...
eb3d75b1f5e4b5b4c8ea8901ba08a19e635f3bf274319d69f5e9ce807f48891d
Quarto
2,395
63
--- title: "Electrostatics" description: "Colour a molecular surface by an electrostatic potential from APBS." execute: daemon: false --- [APBS](https://www.poissonboltzmann.org/) solves the Poisson-Boltzmann equation for a molecule in solvent and writes the electrostatic potential on a grid, usually as a `.dx` file...
98594e793a0625798c67b0d4b16034843c27b4e813cf760ee71a0045e5f707c4
Quarto
2,531
131
--- toc: true toc-depth: 3 fig-align: center --- # Data Tables The different lookup tables that are used to conver strings to integers in Molecular Nodes. Code for this can be found on the [GitHub Page](https://github.com/BradyAJohnston/MolecularNodes/blob/main/molecularnodes/assets/data.py) ### Residue Names | Nam...
73c5f770daea12793c2c259522c06671133ef8157c9db3aeedcd37ca643f41df
Quarto
2,554
77
--- title: Small Molecules from PubChem description: "Fetching 3D conformers of small molecules from PubChem" jupyter: python3 execute: daemon: false --- Small molecules can be fetched from [PubChem](https://pubchem.ncbi.nlm.nih.gov/) with [](`~mn.Molecule.fetch`) and `database="pubchem"`. The code is either a compo...
b94f8950f072209561cbc659a7e2b32ec96191cbcd3aad463fae0c32d2414853
Quarto
2,592
69
--- title: "README_WORKFLOW" date: "`r format(Sys.time(), '%d %B, %Y')`" author: "Eve Zeyl Fiskebeck" format: html editor: visual params: --- # Workflow scripts 1. Metadata and aknowledgments: `PRE_collate_raw_metata_aknowlegments.qmd` - collates metadata for isolates - link to previously collated metadata fo...
773de5dc9ad714225f7763ec6a06dcaa5f5f65947698c6b872c675df339bf5c3
Quarto
3,021
35
--- title: Random Realizations Resurrected date: 2023-08-02 description: The world's favorite data science blog is back. categories: blogging image: thumbnail.jpg image-alt: Christ the Redeemer towers into an empty blue sky toc: false draft: false comments: utterances: repo: mcb00/blog issue-term: title --- ...
1355a1b24ecdf3f1beb5b4399edca39fc6c5b133506fd7d3602d53ddaa94a15c
Quarto
3,039
135
--- title: "Collate Metadata - Aknowledgments" date: "`r format(Sys.time(), '%d %B, %Y')`" author: "Eve Zeyl Fiskebeck" format: html editor: visual params: metadata_files_dir: "data/raw_metadata/metadata" metadata_rds: "data/raw_metadata/collated_metadata.RDS" acknowledgments_files_dir: "data/raw_metadata/ac...
ba68761ec30b8264c5b33b06d388a9e2624deb4889c5e13cf78cf9be83c2dd07
Quarto
3,101
76
--- title: "Installation" aliases: - ../installation.html --- ::: callout-warning # Blender 4.2 For Blender 4.2, we no longer have to download anything externally. Molecular Nodes can be installed and updated from _within_ Blender, using the new [`extensions`](https://https://extensions.blender.org/) platform. The i...
d945bcbb9722122327e09880d1d8184d3ab4d35be0b8007fcf821348ebe96d8a
Quarto
3,492
80
--- title: Selections author: Brady Johnston aliases: - "02_selections.html" --- Selections power every part of Molecular Visualisation. You are probably used to using selections via manually pointing and clicking with your mouse, or typing long strings of complex selection algebra. ## A Simple Example To create a...
7819fe4be6e8275076f77a34cc0f6256db3264348aa47c42ec67d39becbf9123
Quarto
3,768
64
--- title: CryoEM Maps author: Brady Johnston aliases: - "04_cryoem.html" --- ![](https://imgur.com/4W1dxyJ) We can import CryoEM maps, which are imported into Blender as a 'volume' object. As Blender is designed to work with data for movies and TV shows, this is implemented in a way to emulate smoke or gas. We ar...
da735b8c741f6c4fb30da5ddb6866137fdd7d0ab4eec6052433185cce7580bde
Quarto
3,871
115
--- title: "Rendering" description: "Rendering images and animations with the Canvas." execute: daemon: false --- The [](`~mn.Canvas`) is used to render images and animations of any [](`~mn.Molecule`), whether it is a single static structure or a multi-frame trajectory. Annotations can be attached to the molecule an...
a61837b906efe8e4e145e041fdd31184b8dd5695bb0f309da7fb7201ed28019f
Quarto
3,936
134
--- title: "Materials" jupyter: python3 fig-align: center --- MolecularNodes ships a small set of pre-built materials, available as classes in `mn.material`. Instantiating one creates a new, independent Blender material — starting values are set through the constructor, and every parameter remains tweakable on the ins...
25fda9bbbcd5043c5b59fcc94ac5a33f4cf9b827d56e7eba9f458340c417af3a
Quarto
3,993
110
--- title: "Examples" number-sections: true number-depth: 3 --- ## Animating ATP Synthase ![](https://github.com/BradyAJohnston/MolecularNodes/raw/main/img/atp-animation-demo.gif) To create the animation of ATP synthase you can morph between separate states of ATP synthase and export them from your favourite molecul...
12d9ba7dc4288ea685c405ba336bc16e46511ec29845591c0fe5e16a95db2905
Quarto
4,216
62
--- title: Streaming Trajectories subtitle: Load and stream a currently running simulation using MDanalysis and IMDClient. author: Brady Johnston fig-align: center --- With the MDAnalysis [2.10 release](https://www.mdanalysis.org/2025/10/26/release-2.10.0/) we can now stream information (positions, velocities etc) fro...
24e22081aec5950f95b8a86da3e7fa5f64761ea75bf44f604302584ba3dc97c3
Quarto
4,322
57
--- toc: false title: Hello World! And Why I'm Inspired to Start a Blog date: "11/22/2020" description: A reflection on what inspired me to start a blog and three reasons I think it could be a good idea. categories: blogging image: thumbnail.jpg image-alt: Matt raises his arms in joy at the world. --- ![Matt raises h...
bbb40f8e33fb0237b72632ef82e57af8536740aef6bbe53c171bfda38a82dcc6
Quarto
4,559
195
--- title: "Solvent Density" description: "An example for visualizing solvent density." execute: daemon: false --- This example follows the [Calculating the solvent density around a protein](https://userguide.mdanalysis.org/stable/examples/analysis/volumetric/density_analysis.html) example from the MDAnalysis user g...
5c636b173a20b0950d161966251365bb8a203f14c859179921ba5bb3f593c609
Quarto
4,586
173
--- title: "Manually assigning regulators" format: html: fig-width: 7 fig-height: 4 fig-dpi: 100 --- ```{r} #| include: false knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ``` The purpose of this vignette is to show how to manually configure the `is_regulator` vector, e.g. when you want t...
3544c9aa3bbaaab4368fcb29d2f8c379d488dece13ac7fb83907b2d71cd56ae0
Quarto
5,329
240
--- title: Density description: "Examples of using the Density entity API" jupyter: python3 execute: daemon: false --- The Density entity can be used to load density grids into Blender. It uses MDAnalysis [`GridDataFormats`](https://www.mdanalysis.org/GridDataFormats/) library and supports a wide variety of [formats...
2c13ba6461d2ff630137257897f5290b9ca354abbd95c57edadb83741838d762
Quarto
6,088
149
--- title: Python API description: Introduction to the API and the quirks of programming in Blender jupyter: python3 --- ::: {.callout-warning} # The API is Experimental Molecular Nodes was first built as an add-on for Blender, intended to be used through the GUI. A lot of improvements have been made to now allow a ...
a3bf8f6df4dfe21c8badafbd3bc8789bf0373f79893ca37439d72191f179bb59
Quarto
6,377
249
--- title: "Check stats datasets" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: prepdata_dir: "data/prepared_data" results_dir: "results" execute: echo: false cache: false format: html knitr: opts_chunk: collapse: true comment: "#>" R.options: knitr.gra...
f292b9242f7f3a3826fb326d012a2768b72c01e183aeda6faceaa2bfe738019c
Quarto
6,380
236
--- title: Node Trees subtitle: Using `nodebpy` to create and edit node trees --- Molecular Nodes uses `nodebpy` for creating and changing the node trees - Geometry, Shader and Compositor. This allows for replicating the node-based workflows from the GUI, enabling the full power of Geometry Nodes (GN) and the other n...
ef24ee4ede39d0df67ea28666512dc2a6dd8f9ec694b1f5070b0a848c794bc75
Quarto
6,440
68
--- title: "About" toc: false page-layout: article --- <img src="images/logo.png" align="right" style = "height:250px;"/> [![Lint](https://github.com/BradyAJohnston/MolecularNodes/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/BradyAJohnston/MolecularNodes/actions/workflows/lint.yml) [![Build...
7c59508e55d3a3a0b9456127ef14c3cfdbe961d3067ea45ea7677e1acb7f6f6d
Quarto
6,464
102
--- title: "Simulation" subtitle: "Running simple simulations using Molecular Nodes" author: Brady Johnston date: "20250409" toc-depth: 3 --- ![{{< pdb 9I2R >}} Simulated with the elastic network created from alpha carbons and some gentle brownian motion.](https://imgur.com/NCIYxg0.mp4){autoplay=true loop=true muted=t...
1a65bfcfaccaac42c1b02e67b71f020d62152036940430802346e7cb757dfebd
Quarto
6,622
123
--- title: Trajectories subtitle: Importing Molecular Dynamics data author: Brady Johnston bibliography: references.bib fig-align: center aliases: - "03_molecular_dynamics.html" --- ::: {#fig-md-example-render} ![](https://imgur.com/S42CNVJ.mp4){autoplay="true" loop="true"} The protein adenylate kinase (AdK) underg...
9ade50d4debe35fa0f9f7cf0afe4aef7f8348032416bc90a395bddbe3e3681e9
Quarto
6,872
250
--- title: "SEP H5N1 NA Phylogenetic tree" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: strain: "H5N1" segment: "HA" all_tree_metadata: "data/prepared_data/all_tree_metadata_CAB.RDS" tree: "results/H5N1_NA/prerun/iqtree/SEP_NA_H5N1_MSA_nonamedub.fasta.contree" sav...
462de9287763c0e86f095d738ef8fa7ca14e46bd282abc24d669658eed75fea4
Quarto
7,207
214
--- title: "Demonstration of workflow" format: html: fig-width: 7 fig-height: 4 fig-dpi: 100 --- ```{r} #| include: false knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) rlang::local_options(lifecycle_verbosity = "quiet") ``` The methods below are described in our article > Larsson, Held, ...
2d6acbc060c3f5172d29aa061252fee9ade543176a33b919459c6a82be02c361
Quarto
7,288
222
--- title: Trajectories description: "Working with multi-frame molecules and molecular dynamics data" jupyter: python3 --- A trajectory is not a special class — it is simply a [](`~mn.Molecule`) whose underlying [](`MDAnalysis.Universe`) has more than one frame. Loading, styling and rendering all work exactly as they ...
50849726d2b1e9a9cefbf3863b51d24d4f235e02dd6953c0a0d355e6ad6c9bcc
Quarto
7,521
243
--- title: Styles description: "Adding styles and representations to molecules" jupyter: python3 execute: daemon: false --- Styles (or *representations*) are how we turn the raw atomic data of a [](`~mn.Molecule`) into something we can actually see. Every `Molecule` is styled the same way, whether it is a single sta...
9368139a943bcdef5b9ce5e753979b8c8806ce5cd93e3322718e2f26f474e71e
Quarto
9,141
363
--- title: "Preparation Article Aknkowledgments" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: aknowledgments_dir: "data/raw_metadata/acknowledge" metadata_dir: "data/raw_metadata/metadata" save_dir: "data/prepared_data" execute: echo: false cache: false format: html knitr...
ed50511273a28b69d5540af9b28724b5631c773086ffd2b36559dcd6f1f2b103
Quarto
9,354
129
--- title: Blender's Interface alasses: - "00_interface.html" --- Blender has a _very_ overwhelming interface. There is no getting around this. Blender can do _practically anything_, and it is sometimes hard to do simple things. ### A New File Starting a new file, you are greeted by the splash screen. You can clic...
27546f85ff6d62104b4e0453b36ee4ea90a986a2889010d871a33d7c6ce8ddfc
Quarto
10,063
144
--- title: Fetch from the PDB fig-align: center aliases: - "01_importing.html" --- Molecules, simulations and other file formats can all be imported via the `Molecular Nodes` subpanel. This panel can be found under the `Scene Properties` panel. This is the small cone and spheres icon on the right. This contains all ...
104e381819f7def0816b9856085f43379cdc87bfc1a120b17427f9ce01c76880
Quarto
14,004
495
--- title: "Sampling distribution check" author: "Eve Zeyl Fiskebeck" date: "`r format(Sys.time(), '%d %B, %Y')`" params: sampling_data: "data/raw_metadata/HPAI_all_samples20201001_20230815_dev.xlsx" save_dir: "results" source_code: 'code/R' execute: echo: false cache: false format: html knitr: opts_...