diff options
| author | pi coding agent <pi@localhost> | 2026-10-22 19:02:18 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-22 14:26:45 -0500 |
| commit | d3b7c7e43380fa86bbe1f539f6e25747aae0c999 (patch) | |
| tree | 7b11203bd5df1a330ea26a0185f88503c090c539 /uploader/scripts | |
| parent | a897ceca02b78a9426652ac3092c79278cdc681c (diff) | |
| download | gn-uploader-d3b7c7e43380fa86bbe1f539f6e25747aae0c999.tar.gz | |
Update references to the moved scripts package
The `scripts` package now lives under `uploader`, so update every reference from `scripts.<...>` to `uploader.scripts.<...>`: Python imports, `-m` command module strings, logging module names, test imports, CLI/gunicorn entry points, lint/guix paths and the WIP documentation. Note: the untracked `run-dev-flask.sh` and `run-dev-gunicorn.sh` helper scripts still need their entry-point module updated manually.
Diffstat (limited to 'uploader/scripts')
| -rw-r--r-- | uploader/scripts/compute_phenotype_means.py | 2 | ||||
| -rw-r--r-- | uploader/scripts/genotypes/preprocess_csv_collect_info.py | 6 | ||||
| -rw-r--r-- | uploader/scripts/load_phenotypes_to_db.py | 2 | ||||
| -rw-r--r-- | uploader/scripts/phenotypes/delete_phenotypes.py | 4 | ||||
| -rw-r--r-- | uploader/scripts/process_rqtl2_bundle.py | 8 | ||||
| -rw-r--r-- | uploader/scripts/qc_on_rqtl2_bundle.py | 6 | ||||
| -rw-r--r-- | uploader/scripts/rqtl2/entry.py | 2 | ||||
| -rw-r--r-- | uploader/scripts/rqtl2/install_genotypes.py | 6 | ||||
| -rw-r--r-- | uploader/scripts/rqtl2/install_phenos.py | 6 | ||||
| -rw-r--r-- | uploader/scripts/rqtl2/phenotypes_qc.py | 12 | ||||
| -rw-r--r-- | uploader/scripts/run_qtlreaper.py | 6 |
11 files changed, 30 insertions, 30 deletions
diff --git a/uploader/scripts/compute_phenotype_means.py b/uploader/scripts/compute_phenotype_means.py index 6d39ace..7a8de61 100644 --- a/uploader/scripts/compute_phenotype_means.py +++ b/uploader/scripts/compute_phenotype_means.py @@ -95,7 +95,7 @@ if __name__ == "__main__": """compute-phenotype-means: Entry-point function.""" args = parse_args() logger.setLevel(getattr(logging, args.log_level.upper())) - setup_modules_logging(logger, ("scripts.load_phenotypes_to_db",)) + setup_modules_logging(logger, ("uploader.scripts.load_phenotypes_to_db",)) return run(args) sys.exit(main()) diff --git a/uploader/scripts/genotypes/preprocess_csv_collect_info.py b/uploader/scripts/genotypes/preprocess_csv_collect_info.py index f8cdeed..4c91737 100644 --- a/uploader/scripts/genotypes/preprocess_csv_collect_info.py +++ b/uploader/scripts/genotypes/preprocess_csv_collect_info.py @@ -17,9 +17,9 @@ from uploader.csvprocessing import (is_blank_line, read_csv_file_headers, make_comment_line_checker) -from scripts.cli.options import add_logging -from scripts.cli.logging import setup_logging -from scripts.cli.validators import file_exists +from uploader.scripts.cli.options import add_logging +from uploader.scripts.cli.logging import setup_logging +from uploader.scripts.cli.validators import file_exists from .types import (FileStats, LineError, diff --git a/uploader/scripts/load_phenotypes_to_db.py b/uploader/scripts/load_phenotypes_to_db.py index addda99..aa3c731 100644 --- a/uploader/scripts/load_phenotypes_to_db.py +++ b/uploader/scripts/load_phenotypes_to_db.py @@ -28,7 +28,7 @@ from uploader.phenotypes.models import ( quick_save_phenotypes_data) from uploader.publications.models import fetch_publication_by_id -from scripts.rqtl2.bundleutils import build_line_joiner, build_line_splitter +from uploader.scripts.rqtl2.bundleutils import build_line_joiner, build_line_splitter from functional_tools import take diff --git a/uploader/scripts/phenotypes/delete_phenotypes.py b/uploader/scripts/phenotypes/delete_phenotypes.py index 461f3ec..3cbfa62 100644 --- a/uploader/scripts/phenotypes/delete_phenotypes.py +++ b/uploader/scripts/phenotypes/delete_phenotypes.py @@ -12,8 +12,8 @@ from MySQLdb.cursors import DictCursor, BaseCursor from gn_libs.mysqldb import database_connection from uploader.phenotypes.models import delete_phenotypes -from scripts.cli.logging import setup_logging -from scripts.cli.options import (add_logging, +from uploader.scripts.cli.logging import setup_logging +from uploader.scripts.cli.options import (add_logging, add_mariadb_uri, add_population_id) diff --git a/uploader/scripts/process_rqtl2_bundle.py b/uploader/scripts/process_rqtl2_bundle.py index e2ce420..573abc5 100644 --- a/uploader/scripts/process_rqtl2_bundle.py +++ b/uploader/scripts/process_rqtl2_bundle.py @@ -22,11 +22,11 @@ import r_qtl.exceptions as rqe from uploader import jobs from uploader.check_connections import check_db, check_redis -from scripts.cli_parser import init_cli_parser -from scripts.redis_logger import setup_redis_logger +from uploader.scripts.cli_parser import init_cli_parser +from uploader.scripts.redis_logger import setup_redis_logger -from scripts.rqtl2.install_phenos import install_pheno_files -from scripts.rqtl2.install_genotypes import install_genotypes +from uploader.scripts.rqtl2.install_phenos import install_pheno_files +from uploader.scripts.rqtl2.install_genotypes import install_genotypes def safe_json_decode(value: str) -> Any: """Safely decode the string values into JSON.""" diff --git a/uploader/scripts/qc_on_rqtl2_bundle.py b/uploader/scripts/qc_on_rqtl2_bundle.py index 4e6ef00..fb2d246 100644 --- a/uploader/scripts/qc_on_rqtl2_bundle.py +++ b/uploader/scripts/qc_on_rqtl2_bundle.py @@ -25,9 +25,9 @@ from r_qtl import r_qtl2_qc as rqc from r_qtl import exceptions as rqe from r_qtl import fileerrors as rqfe -from scripts.process_rqtl2_bundle import parse_job -from scripts.redis_logger import setup_redis_logger -from scripts.cli_parser import init_cli_parser, add_global_data_arguments +from uploader.scripts.process_rqtl2_bundle import parse_job +from uploader.scripts.redis_logger import setup_redis_logger +from uploader.scripts.cli_parser import init_cli_parser, add_global_data_arguments def dict2tuple(dct: dict) -> tuple: """Utility to convert items in dicts to pairs of tuples.""" diff --git a/uploader/scripts/rqtl2/entry.py b/uploader/scripts/rqtl2/entry.py index 7423a4b..639b09e 100644 --- a/uploader/scripts/rqtl2/entry.py +++ b/uploader/scripts/rqtl2/entry.py @@ -12,7 +12,7 @@ from gn_libs.mysqldb import database_connection from uploader import jobs from uploader.check_connections import check_db, check_redis -from scripts.redis_logger import setup_redis_logger +from uploader.scripts.redis_logger import setup_redis_logger def build_main( args: Namespace, diff --git a/uploader/scripts/rqtl2/install_genotypes.py b/uploader/scripts/rqtl2/install_genotypes.py index 5e6abb0..f8e2c18 100644 --- a/uploader/scripts/rqtl2/install_genotypes.py +++ b/uploader/scripts/rqtl2/install_genotypes.py @@ -16,9 +16,9 @@ from r_qtl import r_qtl2_qc as rqc from functional_tools import take -from scripts.rqtl2.entry import build_main -from scripts.rqtl2.cli_parser import add_common_arguments -from scripts.cli_parser import init_cli_parser, add_global_data_arguments +from uploader.scripts.rqtl2.entry import build_main +from uploader.scripts.rqtl2.cli_parser import add_common_arguments +from uploader.scripts.cli_parser import init_cli_parser, add_global_data_arguments logger = getLogger(__name__) diff --git a/uploader/scripts/rqtl2/install_phenos.py b/uploader/scripts/rqtl2/install_phenos.py index 11ac8a4..5e2625a 100644 --- a/uploader/scripts/rqtl2/install_phenos.py +++ b/uploader/scripts/rqtl2/install_phenos.py @@ -10,9 +10,9 @@ from redis import Redis import MySQLdb as mdb from MySQLdb.cursors import DictCursor -from scripts.rqtl2.entry import build_main -from scripts.rqtl2.cli_parser import add_common_arguments -from scripts.cli_parser import init_cli_parser, add_global_data_arguments +from uploader.scripts.rqtl2.entry import build_main +from uploader.scripts.rqtl2.cli_parser import add_common_arguments +from uploader.scripts.cli_parser import init_cli_parser, add_global_data_arguments from r_qtl import r_qtl2 as rqtl2 from r_qtl import r_qtl2_qc as rqc diff --git a/uploader/scripts/rqtl2/phenotypes_qc.py b/uploader/scripts/rqtl2/phenotypes_qc.py index 943cd68..77ae266 100644 --- a/uploader/scripts/rqtl2/phenotypes_qc.py +++ b/uploader/scripts/rqtl2/phenotypes_qc.py @@ -30,13 +30,13 @@ from uploader.csvprocessing import read_csv_file from uploader.files import sha256_digest_over_file from uploader.samples.models import samples_by_species_and_population -from scripts.rqtl2.entry import build_main -from scripts.redis_logger import RedisMessageListHandler -from scripts.rqtl2.cli_parser import add_bundle_argument -from scripts.cli_parser import init_cli_parser, add_global_data_arguments -from scripts.rqtl2.bundleutils import build_line_joiner, build_line_splitter +from uploader.scripts.rqtl2.entry import build_main +from uploader.scripts.redis_logger import RedisMessageListHandler +from uploader.scripts.rqtl2.cli_parser import add_bundle_argument +from uploader.scripts.cli_parser import init_cli_parser, add_global_data_arguments +from uploader.scripts.rqtl2.bundleutils import build_line_joiner, build_line_splitter -__MODULE__ = "scripts.rqtl2.phenotypes_qc" +__MODULE__ = "uploader.scripts.rqtl2.phenotypes_qc" logging.basicConfig( format=("%(asctime)s - %(levelname)s %(name)s: " "(%(pathname)s: %(lineno)d) %(message)s")) diff --git a/uploader/scripts/run_qtlreaper.py b/uploader/scripts/run_qtlreaper.py index a461d9a..d4738bd 100644 --- a/uploader/scripts/run_qtlreaper.py +++ b/uploader/scripts/run_qtlreaper.py @@ -18,9 +18,9 @@ from uploader.phenotypes.models import phenotypes_vector_data from uploader.population.models import population_by_species_and_id from uploader.samples.models import samples_by_species_and_population -from scripts.cli.logging import setup_logging -from scripts.cli.validators import directory_exists -from scripts.cli.options import add_logging, add_mariadb_uri, add_population_id +from uploader.scripts.cli.logging import setup_logging +from uploader.scripts.cli.validators import directory_exists +from uploader.scripts.cli.options import add_logging, add_mariadb_uri, add_population_id logger = logging.getLogger(__name__) |
