Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…zfin_genotype_to_phenotype in all files (using vscode)
  • Loading branch information
AO33 committed May 24, 2024
1 parent 40d5149 commit f9e3086
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"__project_url": "https://github.com/monarch-initiative/zfin-genotype-to-phenotype-ingest",
"ingest_source": "https://zfin.org/downloads",
"ingest_type": "genotype_to_phenotype",
"__ingest_name": "https://zfin.org/downloads_genotype_to_phenotype",
"__ingest_name": "zfin_genotype_to_phenotype",
"min_python_version": "3.10",
"full_name": "Aaron Odell",
"email": "[email protected]",
Expand Down
8 changes: 4 additions & 4 deletions scripts/generate-rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
from kgx.cli.cli_utils import transform as kgx_transform
from loguru import logger

logger.info(f"Creating rdf output: output/https://zfin.org/downloads_genotype_to_phenotype.nt.gz ...")
logger.info(f"Creating rdf output: output/zfin_genotype_to_phenotype.nt.gz ...")

src_files = []
src_nodes = f"output/https://zfin.org/downloads_genotype_to_phenotype_nodes.tsv"
src_edges = f"output/https://zfin.org/downloads_genotype_to_phenotype_edges.tsv"
src_nodes = f"output/zfin_genotype_to_phenotype_nodes.tsv"
src_edges = f"output/zfin_genotype_to_phenotype_edges.tsv"

if Path(src_nodes).is_file():
src_files.append(src_nodes)
Expand All @@ -18,7 +18,7 @@
inputs=src_files,
input_format="tsv",
stream=True,
output=f"output/https://zfin.org/downloads_genotype_to_phenotype.nt.gz",
output=f"output/zfin_genotype_to_phenotype.nt.gz",
output_format="nt",
output_compression="gz",
)
8 changes: 4 additions & 4 deletions scripts/generate-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import duckdb

nodes_file = "output/https://zfin.org/downloads_genotype_to_phenotype_nodes.tsv"
edges_file = "output/https://zfin.org/downloads_genotype_to_phenotype_edges.tsv"
nodes_file = "output/zfin_genotype_to_phenotype_nodes.tsv"
edges_file = "output/zfin_genotype_to_phenotype_edges.tsv"


# Nodes
Expand All @@ -14,7 +14,7 @@
GROUP BY all
ORDER BY all
"""
duckdb.sql(f"copy ({query}) to 'output/https://zfin.org/downloads_genotype_to_phenotype_nodes_report.tsv' (header, delimiter '\t')")
duckdb.sql(f"copy ({query}) to 'output/zfin_genotype_to_phenotype_nodes_report.tsv' (header, delimiter '\t')")

# Edges
if Path(edges_file).exists():
Expand All @@ -25,4 +25,4 @@
GROUP BY all
ORDER BY all
"""
duckdb.sql(f"copy ({query}) to 'output/https://zfin.org/downloads_genotype_to_phenotype_edges_report.tsv' (header, delimiter '\t')")
duckdb.sql(f"copy ({query}) to 'output/zfin_genotype_to_phenotype_edges_report.tsv' (header, delimiter '\t')")
2 changes: 1 addition & 1 deletion src/zfin_genotype_to_phenotype_ingest/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# See metadata properties at https://koza.monarchinitiative.org/Ingests/source_config/

id: 'CURIE for the project'
name: 'https://zfin.org/downloads_genotype_to_phenotype'
name: 'zfin_genotype_to_phenotype'
ingest_title: 'zfin_genotype_to_phenotype_ingest'
ingest_url: 'https://github.com/monarch-initiative/zfin-genotype-to-phenotype-ingest'
description: 'Zebrafish genotype to phenotype ingest'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from koza.utils.testing_utils import mock_koza

# Define the ingest name and transform script path
INGEST_NAME = "https://zfin.org/downloads_genotype_to_phenotype"
INGEST_NAME = "zfin_genotype_to_phenotype"
TRANSFORM_SCRIPT = "./src/zfin_genotype_to_phenotype_ingest/transform.py"


Expand Down

0 comments on commit f9e3086

Please sign in to comment.