<commit_before>#!/usr/bin/env julia

path = "http://localhost:8000/bam/"
bamList = readall(pipeline(`curl $path`, `awk '/.bam$/ {print $NF}'`))

list = split(bamList, '\n')

println(length(list)-1, " BAM files found!")


for i in list[1:end-1]
    println("new
genome hg19
load http://localhost:8000/bam/$i
snapshotDirectory /home/gnanavel/Work/GBM_NCV-Roadmap/Data/TCGA/mutations/PNG
goto chr18:27,984,924-27,984,924
sort position
snapshot")
end<commit_msg>	modified:   misc/igv_batch_gen.jl<commit_after>#!/usr/bin/env julia

path = "http://localhost:8000/bam/"
list = readall(pipeline(`curl $path`, `awk '/.bam$/ {print $NF}'`))

fH = ARGS[1]
wig = split(readall(fH), '\n')

bamList = split(list, '\n')

println(length(bamList)-1, " BAM files found!")
println(length(wig))

for f in wig
    println(f)
end

for i in bamList[1:end-1]
    for file in wig
        ln = open(file)
        lines = readall(ln)
        chr = split(file, '.')
        println(i, '\t', chr[1])
    end
end
        #=
    println("new
genome hg19
load http://localhost:8000/bam/$i
snapshotDirectory /home/gnanavel/Work/GBM_NCV-Roadmap/Data/TCGA/mutations/PNG
goto chr18:27,984,924-27,984,924
sort position
snapshot")
end
=#
{'fraction_non_alphanumeric': 0.1775, 'fraction_numerical': 0.05333333333333334, 'mean_word_length': 3.8821138211382116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1739506', 'n_tokens_mistral': 533, 'n_tokens_neox': 486, 'n_words': 98}