<commit_before># Makefile for generating track hub directory
# Requires setting BIGBEDS to a directory of .bb files with hg19/hg38 somewhere in the filename

HUBROOT=./hubroot
YAMLROOT=./yaml
PYTHON=python

.PHONY: hubroot

all: hubroot hub genomes tracks bigbeds

hubroot:
	mkdir -p $(HUBROOT)
	mkdir -p $(HUBROOT)/hg19
	mkdir -p $(HUBROOT)/hg38

hub: hubroot $(HUBROOT)/hub.txt
genomes: hubroot $(HUBROOT)/genomes.txt
tracks: hubroot $(HUBROOT)/hg19/trackDb.txt $(HUBROOT)/hg38/trackDb.txt

# Writing explicit rules here since make < 3.81 can't figure out which to use

$(HUBROOT)/hub.txt:
	$(PYTHON) python/render/render.py $(YAMLROOT)/hub/hub.yaml hub > $@

$(HUBROOT)/genomes.txt:
	$(PYTHON) python/render/render.py $(YAMLROOT)/genomes/genomes.yaml genomes > $@

$(HUBROOT)/%/trackDb.txt:
	$(PYTHON) python/render/render_tracks.py --assembly $* $(YAMLROOT)/tracks/tracks.yaml > $@

bigbeds:
	cp $(BIGBEDS)/*hg19*.bb $(HUBROOT)/hg19
	cp $(BIGBEDS)/*hg38*.bb $(HUBROOT)/hg38

clean:
	rm -rf $(HUBROOT)<commit_msg>Change BIGBEDS to DATA for consistency with previous version<commit_after># Makefile for generating track hub directory
# Requires setting BIGBEDS to a directory of .bb files with hg19/hg38 somewhere in the filename

HUBROOT=./hubroot
YAMLROOT=./yaml
PYTHON=python

.PHONY: hubroot

all: hubroot hub genomes tracks bigbeds

hubroot:
	mkdir -p $(HUBROOT)
	mkdir -p $(HUBROOT)/hg19
	mkdir -p $(HUBROOT)/hg38

hub: hubroot $(HUBROOT)/hub.txt
genomes: hubroot $(HUBROOT)/genomes.txt
tracks: hubroot $(HUBROOT)/hg19/trackDb.txt $(HUBROOT)/hg38/trackDb.txt

# Writing explicit rules here since make < 3.81 can't figure out which to use

$(HUBROOT)/hub.txt:
	$(PYTHON) python/render/render.py $(YAMLROOT)/hub/hub.yaml hub > $@

$(HUBROOT)/genomes.txt:
	$(PYTHON) python/render/render.py $(YAMLROOT)/genomes/genomes.yaml genomes > $@

$(HUBROOT)/%/trackDb.txt:
	$(PYTHON) python/render/render_tracks.py --assembly $* $(YAMLROOT)/tracks/tracks.yaml > $@

bigbeds:
	cp $(DATA)/*hg19*.bb $(HUBROOT)/hg19
	cp $(DATA)/*hg38*.bb $(HUBROOT)/hg38

clean:
	rm -rf $(HUBROOT)
{'fraction_non_alphanumeric': 0.15243608297153882, 'fraction_numerical': 0.02219006271104679, 'mean_word_length': 4.682191780821918, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '577809', 'n_tokens_mistral': 867, 'n_tokens_neox': 830, 'n_words': 191}