sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
f24b52e9e6c6ef942df3ca492114d60b7e52e69c8aaaceb0e15212d4699dbe8e
Python
70
5
from setuptools import setup if __name__ == "__main__": setup()
152ee9857f7cdb8fb41e44a9c94ec1dfec2f44c6fd9b68387f4c8753e2df94d9
Python
71
3
from .adapterremoval import MultiqcModule __all__ = ["MultiqcModule"]
975cb7600549139adb594bbb9a29ef6f7dfa4661cb24965194153bd458af16b4
Python
71
3
from .damageprofiler import MultiqcModule __all__ = ["MultiqcModule"]
e82f78eda4b866b85204072751aed334753fb97307d424cafba884af0f95d327
Python
71
3
from .cellranger_arc import MultiqcModule __all__ = ["MultiqcModule"]
e8f651dee58f56384d0a9fbbc4573cf3cd7360668961d37974ecd722e3ad7bcc
Python
71
1
"""Schema Generator Agent for creating sophisticated LinkML schemas."""
491f75429fca08250a1ec7ef0c4ce68a2d6616c6dbca504a7d659f510f1639d0
Python
72
1
"""Aggregator Agent for combining results from multiple other agents."""
6f6db4c5029a6235f42f137563af755584f3e664fac26ad4e5774418d7bdde04
Python
72
5
from .fetchers import fetch_hcpl2k8 from .generators import gen_cube
772d7a81221e01fccc85dd529a4665ffdec067ee44c56bf5bf03a73735f29dbd
Python
72
3
from .goleft_indexcov import MultiqcModule __all__ = ["MultiqcModule"]
8f22153a24620213a1a36c014e94ac641b1ff55f6a7fa9a50107fbd88cf70299
Python
72
4
import os this_directory = os.path.dirname(os.path.realpath(__file__))
baa6e1fac95e00356d052f1e60731aa86a7b148c2910e4462f002ccda663e550
Python
72
3
from .prinseqplusplus import MultiqcModule __all__ = ["MultiqcModule"]
4eb5cda4ad8a0d48f1a24e270ae85ea553c61f846f00b3992685e30f84be8b58
Python
73
3
""" Phenopackets agent module for working with phenopacket databases. """
6e5de5dbf3587a8267148ce824d90cdb133b0fcf680ae9525ded97a0de726876
Python
73
3
from .multivcfanalyzer import MultiqcModule __all__ = ["MultiqcModule"]
a6e10481710c7e589f59358eaef6dfa951c8e5c0a27889e227d4d22ada358d42
Python
74
3
from importlib.metadata import version __version__ = version("pontibus")
4a514af1089cc83be93d16a8bd711997bf769fabb979b8b66cff5cdb1ad37551
Python
75
3
import sys sys.setrecursionlimit(5000) print("Recursion limit hook active")
65346b6e848da02c671c4029e6ad00b46a2f5521eddc18f69e53d4ea76ee1d0d
Python
77
3
from .phantompeakqualtools import MultiqcModule __all__ = ["MultiqcModule"]
838b4e8afc7098c6b2b49a0087142a01f23d7d8f4b5916a0c0e6882f3fca15c5
Python
79
4
from .datasets import CustomDGLDataset __all__ = [ 'CustomDGLDataset' ]
8372530bc029c4f19ad7564a19cb8c51c3b8d54d0693b5234c1574b723b3091d
Python
80
3
from .eigenstratdatabasetools import MultiqcModule __all__ = ["MultiqcModule"]
8d32b23502318d027070daf1be78d33330ce36e5ce17f53912c0d71731feb1a3
Python
81
7
#!/usr/bin/env python3 import sys __version__ = '1.0.1' VERSION = __version__
0bbb177df1d35ccdcffa268b3cf7ea7e60e8c4e7e540c24b70cede77da778da9
Python
82
4
from .more import * # noqa from .recipes import * # noqa __version__ = '8.8.0'
3d081258e096e178c08282d96cd017b97eaadd1b07c1308d0625c6b925473b49
Python
83
5
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': pass
8e37c812269e61201bba4b72bbee6ca7fefe446f7b72d9b8d3ec8b642a4379fd
Python
83
3
from pathlib import Path ROBOT_ONTOLOGY_AGENT_CONTENTS_DIR = Path(__file__).parent
88ce84c9f017d3d5bf1e41dfd3e0528cff89630a9ba6445306ac9c250718d1d0
Python
87
3
from multiqc.modules.ngsbits.ngsbits import MultiqcModule __all__ = ["MultiqcModule"]
a1e6b19b82ca638f88de1d7879c4572659764bccb0cf5790472737b0000aebe1
Python
88
3
""" Talisman agent package for advanced gene analysis using UniProt and NCBI Entrez. """
87af8fdb8c7ddba1d64db6f9a4241b6aceaa51c4005c461ebc203e6d35537482
Python
89
3
""" AmiGO agent module for interacting with GO KnowledgeBase via AmiGO solr endpoint. """
bd7cede9556ab1646faa5c35d9a7871c495fb1c3cc7466d1fafc529257afaeb8
Python
89
6
from . import ( lambdaprotocol, multistate, relative, topologyhelpers, )
d3bdebb6b1ea35ab8e7dd14af32919f11ae630ab9154d4c84f839397b98b2bf6
Python
89
2
from .fused_act import FusedLeakyReLU, fused_leaky_relu from .upfirdn2d import upfirdn2d
279ee10af65a4f3a4dba045c52f9027c3179b0609ff124f5ba2ce6070f4b29c3
Python
92
2
__all__ = ['graphs', 'files', 'df_processing', 'wiki', 'plotting', 'obo_processing', 'ml']
e4e1cab62d485b2355614b6ff88befd3f2da6b54d61e2effb41b6327fe80b21a
Python
93
3
from . import input_validation from . import plan_rbfe_network from . import results_cleanup
1fb4fbd1bb96c14ae3c646e7aaf8154b2c30618dacc65981136539e2377a225a
Python
94
3
"""Hi-Compass: Cell-type-specific chromatin interaction prediction.""" __version__ = '1.0.5'
450aff27364c7467e9be162e5dbd4c9b21287c9167d7045e1a0cf3489104dae9
Python
94
3
"""Hi-Compass: Cell-type-specific chromatin interaction prediction.""" __version__ = '1.0.1'
566ae119fa1e8ab2ec0ac7c41a686e020b963d843824f3b3560d25f19c32f322
Python
98
6
from pydantic import BaseModel class DatasetRow(BaseModel): prompt: str completion: str
faea162119557c188da5beabb6bd0959412f060c302bffc6d63837e86fe57c28
Python
98
3
# Versioneer boilerplate. from . import _version __version__ = _version.get_versions()['version']
7060dc5abb6bd23f46d5d703b3255316a529ef0db28feae7edfc43923ed415a4
Python
100
3
from .plotting import plot_fc from .plotting import plot_timeseries from .plotting import plot_psd
f0463f8f82567f931ba30bfa9b3504e932e9921c2b6cd652293f8d107eb92a95
Python
101
3
""" Literature agent module for working with scientific literature, publications, and references. """
336daa4a1895e6fc801cdfa2dc0ac2575ea546531ade8ebf7127db5b4dc5c529
Python
103
4
# !/usr/bin/env python # -*-coding:utf-8 -*- # @Time : 2022/05/28 21:19 # @Author : Liangdi.Ma
5e4fdfadfe2166fcb34b93e7bc0cbcae09aeb0bbf7b0a96a8e414e1529f6aa59
Python
103
4
# !/usr/bin/env python # -*-coding:utf-8 -*- # @Time : 2022/05/25 20:40 # @Author : Liangdi.Ma
a65c38938bce3b743274e66e9d1ac021d996c6694f7e009ef5b45a67569d53b3
Python
103
4
# !/usr/bin/env python # -*-coding:utf-8 -*- # @Time : 2022/05/25 15:47 # @Author : Liangdi.Ma
c47795630c6827c70f85e317ec90e7dbcc4d2ce2534c9b6d6f00d102c7b3d3c7
Python
103
4
# !/usr/bin/env python # -*-coding:utf-8 -*- # @Time : 2022/05/28 21:16 # @Author : Liangdi.Ma
32b7b39779eac646248c26292319a3861838011f21822e1065d1189a4f88ed1f
Python
104
6
import setuptools setuptools.setup( name="my-test-package", version="1.0", zip_safe=True, )
54315ef9f8ccf55281c8d1c3cd1faac81515c5f9e03c0bd9b602a2f00851acec
Python
108
5
"""Torsion-specific models.""" from yammbs.torsion._store import TorsionStore __all__ = ("TorsionStore",)
8206d67df73a9a39c3dbd93f3290cd652262cf25397952810901ded27d2768a2
Python
108
2
from manipulations import manipulations, manip_strs, default_manipulation from conditions import conditions
9ea7e03bdd74df6f411152794f8a6c57042d8ddda2272117436f97f1cd58c705
Python
109
5
from __future__ import absolute_import, division, unicode_literals from .py import Trie __all__ = ["Trie"]
6d616c6c21638d98ba2bb108c194bef9068aeae562792c29aa1400544afe85f5
Python
111
4
import gl gl.resetdefaults() gl.meshload('AICHAhr_left') gl.atlas2node('/Users/chris/afni/pial/mynodes.node');
53aab7b78d36b2ecb2046cd8aa3a60fb08c93fc5810c43adb52e860ba8257e18
Python
112
5
from .extended_solvent_component import ExtendedSolventComponent __all__ = [ "ExtendedSolventComponent", ]
b6522578b5ffef3245c10bb09ea3fd7c9d27417743d6e03e97cb97f30e0a50a3
Python
112
3
""" Empty init file in case you choose a package besides PyTest such as Nose which may look for such a file """
9d128f5ac4db074db96c945f5fa64e65ac8155732cdc731d77f25750fa635a70
Python
113
3
""" Empty init file in case you choose a package besides PyTest such as Nose which may look for such a file. """
9f9f6da1acb41ec478c6770a11c1943f79fcaa67e76b91192bb54a87f65db897
Python
115
4
""" Utilities package for ethopy control. Contains setup, configuration, and database initialization utilities. """
1e6fdb71c8e66a48ba28ad7d429d099b4a6b5a07c88a88b926fcdd67d7578a56
Python
116
4
from .base import IRI from .vprofile import timeprofile, geoprofile __all__ = ["IRI", "timeprofile", "geoprofile"]
2e7b61b1dc0f5ce4d5b20911677b0ae6349a20ae21e88c9d9e3e47bd2a09bc44
Python
121
5
import functools from torch.testing import assert_close assert_equal = functools.partial(assert_close, rtol=0, atol=0)
f50b5afaf189a853e5f440ef6d93c27d9bb3c65173c4bc5f0f980b6441893335
Python
122
5
from pathlib import Path THIS_DIR = Path(__file__).parent INPUT_DIR = THIS_DIR / "input" OUTPUT_DIR = THIS_DIR / "output"
50d7b197dbe241172c178d6471ee36840421631fd3f765254a79e0d4ab35f454
Python
125
3
from .model_fitting import ModelFitting from .custom_fitting import FittingFNGFPG from .batch_fitting import FittingBatch
61defb2a2c65ff6ff88e1c94f8893092606b442cae4bcf32cd29a8124e952b4d
Python
125
4
from custom_time import now,now2 from logs import setup_logging from tcpip import TCPIP from notifications import email_alert
b71ab49e468f8c10a2dfa33023ee685f8ce0460fdf2e2a38fb12a6d78d6e0411
Python
126
8
from .paretoexp import paretoexp from .gengamma import gengamma from .lognorm import lognorm from .weibull import weibull
12176b029ae2697e7a85c21cad5e6fdfb278dbb8af9f4669b9bbb65a46e85b66
Python
129
4
#!/usr/bin/env python # -*- coding: utf-8 -*- from .surface import * from .smooth import ScalarValuedMesh, ValueSpecificSmoother
798dd25a027531983e15be6e3d22e704be898184cadc4c6a416e245082e9a9e7
Python
129
7
from .sakepp import SAKEPP from .dgn import DGN, DGNLinearFusion __all__ = [ 'SAKEPP', 'DGN', 'DGNLinearFusion' ]
f1814d1bc1b124181a74b03ba16c61124f6e354175b3a9d5582dde67e2dadde9
Python
129
7
from setuptools import setup setup( name="CANDO", version="2.2.1", packages=['cando'], license='BSD-3-Clause', )
9a3bbd7a51472c4509db7ad4e59a5d8fc9d139d634563ddba78660bc14ece9b8
Python
130
6
"""Wrappers to build Python packages using PEP 517 hooks """ __version__ = '0.10.0' from .wrappers import * # noqa: F401, F403
5cc4bde3f27ff8081249f2838803c3679a06dc0e2262e5a461838a8d84c8c7c5
Python
135
2
# This code is part of kartograf and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/kartograf
41b3c1e2a8f9514a974f76c4b16ba78258d8e0a2dfc21a694c0d2a9f7821a712
Python
136
5
"""Exceptions used within YAMMBS.""" class DatabaseExistsError(Exception): """A database with this (file) name already exists."""
889b6ccebd8b74bb3d9f2f871866c3a590a4ac2955585dd43daeb181d78a2bc2
Python
138
7
#!/usr/bin/env python3 import sys from scripts_of.__main__ import main if __name__ == "__main__": args = sys.argv[1:] main(args)
ba0ac1ef619c4d3d4aa8eaf7f3a3800006e5ee8fab7e3557f9164d24a7cbdfdc
Python
140
4
def cluster_warning(node_iri: str | None, message: str) -> str: if node_iri: return f"{node_iri}: {message}" return message
55a210444cc93dd5c049fd0e1cac35a46a2b342342c8b7024ade5b9547f4cf24
Python
142
6
__all__ = ['model', 'spatial', 'arrangements', 'emissions', 'evaluation', 'full_model']
74e6e655dc2b64f7fc34efeb2aef6cd4b535abd5e6a8a4bdffa2d559f2400327
Python
142
6
"""Analysis components for TimeFlies.""" from .eda import EDAHandler from .visuals import Visualizer __all__ = ["EDAHandler", "Visualizer"]
6fe9257e37b46e85bbedcd63cf75b5f3dae2b08aa203ef98e8a1c45a047956a1
Python
145
4
import marshall_intrinsic_units marshall_intrinsic_units.run_minimal_macro_example() marshall_intrinsic_units.summarize_minimal_macro_example()
9fba28324e1589e0fb5f3defebba65f8a098416525362a08eb8943028ab0cafb
Python
145
4
import marshall_intrinsic_units marshall_intrinsic_units.run_minimal_micro_example() marshall_intrinsic_units.summarize_minimal_micro_example()
b2fb4f8061a4dc00b0af5e1c6d1c84830ea0fe7b85bff980a81d9f9eb5cf8aa5
Python
146
6
import numpy as np def receive_noise_input(n_samples, latent_dim): noise = np.random.normal(0, 1, (n_samples, latent_dim)) return noise
cac29983d2c85e48c75869acdc7d3d655fa463a3f6e90e8e95707295cbe557e5
Python
147
4
import marshall_intrinsic_units marshall_intrinsic_units.run_blackbox_macro_example() marshall_intrinsic_units.summarize_blackbox_macro_example()
fd7341b0f46be70f506d7afcaa39d23a5489dd990d4e9aad498141f0955565e1
Python
149
4
import pandas as pd df = pd.read_csv(snakemake.input.sv, sep="\t") df.loc[df["chrom"] != "chrY"].to_csv(snakemake.output[0], sep="\t", index=False)
449f1d0d7ca1e8f2de2c39de294c9fcff5ed6ae3148bcd616962680b4a5ba944
Python
151
3
print("This isn't the package you are looking for") print("Please install kartograf from conda-forge") print("conda install -c conda-forge kartograf")
b8a62985ef4c681ef718d7b23d4f8da02e5c6837302cb8b938b6ea75e714b27e
Python
152
6
from openai import BaseModel from pydantic import ConfigDict class TsBaseModel(BaseModel): model_config = ConfigDict(strict=True, extra="forbid")
942bd89ea567f6e8ca591fc3424493c929234cc597d991b45bc42f66fd19e982
Python
153
4
import marshall_intrinsic_units marshall_intrinsic_units.run_coarsegrain_macro_example() marshall_intrinsic_units.summarize_coarsegrain_macro_example()
d396ec87cd8c164ea0a265d6fdf40694f3944a71e913dbe674a77770fb7ae451
Python
153
4
import marshall_intrinsic_units marshall_intrinsic_units.run_coarsegrain_micro_example() marshall_intrinsic_units.summarize_coarsegrain_micro_example()
81ad2459a6dffde3cc6144c5ae636d07639bceeb2d3f87166b4b6f45b230015a
Python
154
6
from typing import Union from .batch import DGLMoleculeBatch from .molecule import DGLMolecule DGLMoleculeOrBatch = Union[DGLMolecule, DGLMoleculeBatch]
bb2f31519f8d0c4c3dd7ab6e8145e6f0783008688c3b47fe45c767a647d77ceb
Python
156
6
__all__ = ["Mapping", "Sequence"] try: from collections.abc import Mapping, Sequence except ImportError: from collections import Mapping, Sequence
f4fff8bced39ca3c29bb8862b2bcbadf9011c390151b888f96fe0c54bec2a97c
Python
156
8
import urllib.request try: urllib.request.urlopen('https://www.google.com') except: # -no-cov- HAS_INTERNET = False else: HAS_INTERNET = True
df244b17d3c3409710ed6d57201cf168eba300bae138c7b4b422d82121d2384f
Python
158
6
from .interface import AlchemiscaleClient from .models import Scope, ScopedKey from importlib.metadata import version __version__ = version("alchemiscale")
042dcf6ceb957be29cbe2f1149546982d9d5fae490d59f037fabec2fb4e5a807
Python
159
7
""" The project is configured in pyproject.toml. This script is left for the editable installation. """ from setuptools import setup # type: ignore setup()
3e659beb5718ac7197fd0e1779aa2d24f7d5b0f938bbf040da67c3f5a7b80312
Python
161
5
#!/usr/bin/env python # -*- coding: utf-8 -*- from .ome_tiff_writer import OmeTiffWriter # noqa: F401 from .ome_zarr_writer import OmeZarrWriter # noqa: F401
acd17b5deda44ff58b40ad58595b63cb6c1b612d534838b7af29fd8c53b3596d
Python
163
9
#!/usr/bin/env python from forcebalance.molecule import * M = Molecule('all.xyz') M.qm_energies = [float(l.split()[-1]) for l in M.comms] M.write('qdata.txt')
c44a399398b50045d645d49d3d38f33426c74cd07e3050e30ffc488e3063e5dc
Python
164
7
from pathlib import Path import yaml def load_config(path: str | Path) -> dict: with open(path, "r", encoding="utf-8") as f: return yaml.safe_load(f)
e51ccc2fc05de79c081f0c2c875b9f254865b1be1ca4cda9e493566557ec267a
Python
164
8
""" Data loading and preprocessing utilities """ from .loaders import DataLoader from .setup import DataSetupManager __all__ = ["DataLoader", "DataSetupManager"]
df60de449743ac7ba21e899087959acc585e2c5eeaaf6cf8a047273e00251eb1
Python
168
5
""" Copright © 2023 Howard Hughes Medical Institute, Authored by Carsen Stringer and Atika Syeda. """ name = "facemap" from facemap.version import version, version_str
4df387e481860dc8fedf8eddde21be5cdecf1ea6e34008853b10943fa6fad7bd
Python
169
5
import pandas as pd pd.concat([pd.read_csv(e) for e in sorted(list(snakemake.input))])[["prob1", "prob2"]].reset_index().to_csv( snakemake.output[0], index=False )
5af6336a3bb2d60fb80542b4822830763d4b643cd841e94ee701c8a7a6289171
Python
169
8
from os import listdir from os.path import dirname __all__ = [ i[:-3] for i in listdir(dirname(__file__)) if not i.startswith("__") and i.endswith(".py") ]
ab17892652f6e224587e1084b1d57ce2be743b2585251730618f502e1a124c86
Python
169
7
import sys from pathlib import Path PROJECT_ROOT = Path(__file__).resolve().parents[1] if str(PROJECT_ROOT) not in sys.path: sys.path.insert(0, str(PROJECT_ROOT))
bd20ce83ca5ffc331fab81390fb2aabe4c0096f31567f00794aebd48bf5f1346
Python
172
8
""" Shared data preprocessing utilities """ from .data_processor import DataPreprocessor from .gene_filter import GeneFilter __all__ = ["DataPreprocessor", "GeneFilter"]
d8d43379653ac0a8bca73f2e100a756f56747db06ef6fa28953bffbe1c11e21c
Python
172
6
from .interface import AlchemiscaleClient, ResultFormat from .models import Scope, ScopedKey from importlib.metadata import version __version__ = version("alchemiscale")
ea021e2772c67aa5057eee319deabab2e53a05bc625811fbc6f4e3dfa0a02723
Python
172
5
from ProtoCloud.data import scRNAdata from ProtoCloud.data.scRNAdata import (CustomDataset, EPS, scRNAData,) __all__ = ['CustomDataset', 'EPS', 'scRNAData', 'scRNAdata']
ad1c595a299ec9cd5dd5c309e58dbaa0c6954621de7354524588f14b13e064d6
Python
174
5
import importlib.resources data_directory = importlib.resources.files("openff.nagl") / "training" / "templates" JINJA_REPORT_TEMPLATE = data_directory / "jinja_report.html"
90c604b96b99ac21a8126dc1dee3a67c8349e1f8bd1b352eb15474db27b64d1d
Python
175
4
import marshall_intrinsic_units marshall_intrinsic_units.run_something_from_nothing_micro_example() marshall_intrinsic_units.summarize_something_from_nothing_micro_example()
449cb4b42ceccc7b6550951c2b6bc6c286d6857ae94ad029a34be566f24b51e6
Python
179
7
#from . import models #from . import optimization #from . import run #from . import datasets #from . import datatypes #from . import functions #from . import visualization
c13931a6a480c52519230a36afc2696a9d4c592a682ec4dbe5a9ec784dc5f5c0
Python
179
4
import marshall_intrinsic_units marshall_intrinsic_units.run_something_from_something_micro_example() marshall_intrinsic_units.summarize_something_from_something_micro_example()
082384c3e9fbfef5aaeba7ea8836d86e682cc34f0739403e2495f35fe31c8edc
Python
184
6
import pandas as pd df = pd.read_csv(snakemake.input.ploidy, sep="\t") df = df.groupby("#chrom")["ploidy_estimate"].describe() print(df) df.to_csv(snakemake.output.summary, sep="\t")
2edb267819e87e1662d9f5a5958d96cac4eb1365c56fd0d0094351a6be3f9dcf
Python
184
7
"""Multiplex segmentation application. Deprecated in favor of ``deepcell.applications.Mesmer`` instead. """ from deepcell.applications.mesmer import Mesmer as MultiplexSegmentation
d2d55c3641124ca6c5b42151d9e91860ab2684c3b917c760b98cb9b5271e86f6
Python
184
5
"""A cell tracking class capable of extending labels across sequential frames.""" from deepcell_tracking import CellTracker from deepcell_tracking import CellTracker as cell_tracker
e40db0ffe6fbc68bbdc058b7888868f5820821c418cdf7cd727a7183f5fa1b11
Python
185
6
"""Shared evaluation components for TimeFlies projects.""" from .interpreter import Interpreter from .metrics import EvaluationMetrics as Metrics __all__ = ["Interpreter", "Metrics"]
cd30e928abab4bef61f8955b7aac83c7eca0b83a960424684e80e22502166215
Python
187
8
#!/usr/bin/env python from forcebalance.molecule import * M = Molecule('all.gro') M1 = M.atom_select([i for i in range(M.na) if i%4 != 3]) M1[0].write('conf.pdb') M1.write('all.mdcrd')
364809615d14e46e9baa9c3ae38b6be06d8c4e0fad37c0f3843e68d9e726784d
Python
188
5
import gl gl.resetdefaults() gl.meshload('/Users/chris/afni/pial/lh.pial') gl.overlayload('/Users/chris/afni/pial/lh.HCP-MMP1.annot') gl.atlas2node('/Users/chris/afni/pial/mynodes.node');
3f0d72c78038db6854d9ca470e30ba073df808253655b7f409bba77c333840ed
Python
189
4
import marshall_intrinsic_units marshall_intrinsic_units.run_something_from_nearly_nothing_micro_example() marshall_intrinsic_units.summarize_something_from_nearly_nothing_micro_example()
494d6add0f047d537b1aec3e5daaff3bc78428c9104d988300bfce529e0aa6d4
Python
189
6
from PyInstaller.utils.hooks import collect_submodules from PyInstaller.utils.hooks import collect_data_files hiddenimports = collect_submodules("dipy") datas = collect_data_files("dipy")