In [ ]:
using JSON: parse

In [ ]:
PROJECT_JSON = parse(read("../project.json", String))

In [ ]:
using PyCall: @py_str, pyimport

In [ ]:
py"""
import sys

sys.path.insert(0, ".")
"""

PATH = pyimport("make_path_dict").make_path_dict(PROJECT_JSON)

In [ ]:
push!(LOAD_PATH, "/home/kwat/github/Kraft.jl/src")

In [ ]:
using Kraft: count_transcript

In [ ]:
for (sample_name, fastq_file_paths) in
    zip(PROJECT_JSON["sample_names"], PROJECT_JSON["fastq_file_paths"])

    count_transcript(
        abspath.(fastq_file_paths)...,
        abspath(PROJECT_JSON["reference_cdna_fasta_file_path"]),
        joinpath(PATH["count_transcript/"], sample_name),
        PROJECT_JSON["n_job"],
    )

end