Skip to content

Commit

Permalink
issue #70 - remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Sep 3, 2024
1 parent d8a21ef commit 55ffefa
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions generate_transcript_data/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ for annotation_consortium, builds in config["config"].items():
genome_build_list.append(gb)
all_urls.update(urls_dict)

#for name, url in urls.items():
# print(f"{name} : {url}")

def get_url_from_name(wildcards):
#print(f"get_url_from_name")
#for key, value in wildcards.items():
# print(f"{key}={value}")
return all_urls[wildcards.name]


Expand All @@ -40,24 +36,18 @@ def get_urls(wildcards):


def get_cdot_command(wildcards):
#print(f"get_cdot_command: {wildcards}")
url = all_urls[wildcards.name]
# gffs can end with 'gff.gz' or 'gff3.gz', gtfs always end with 'gtf.gz'
cdot_command = "gtf_to_json" if url.endswith(".gtf.gz") else "gff3_to_json"
return cdot_command

def get_build_input_files(wildcards):
#print(f"get_build_input_files")
#for key, value in wildcards.items():
# print(f"{key}={value}")

def get_build_input_files(wildcards):
urls = config["config"][wildcards.annotation_consortium][wildcards.genome_build]
#print(f"urls: {urls}")
prefix = f"{wildcards.annotation_consortium}/{wildcards.genome_build}/cdot-{cdot_data_version}"
return expand(prefix + "-{name}.json.gz", name=urls)



rule all:
input:
gene_info_json_filename,
Expand Down Expand Up @@ -105,6 +95,7 @@ rule cdot_gff_json:
--gene-info-json="{input.gene_info_json}"
"""


rule download_gff_files:
output:
# Don't re-download if snakemake script changes
Expand All @@ -129,6 +120,7 @@ rule process_gene_info_json:
--email [email protected]
"""


rule download_gene_info:
output:
protected(gene_info_download_filename)
Expand Down

0 comments on commit 55ffefa

Please sign in to comment.