-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
utils/config.py
to define names of temporal directory
- Loading branch information
Showing
11 changed files
with
133 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
|
||
|
||
def create_temporal(TEMPDIR: Path, NAME: str, is_control=False) -> None: | ||
Path(TEMPDIR, "result").mkdir(parents=True, exist_ok=True) | ||
if is_control: | ||
SUBDIRS = ["fasta", "sam", "midsv", "mutation_loci", "clustering"] | ||
else: | ||
SUBDIRS = [ | ||
"fasta", | ||
"sam", | ||
"midsv", | ||
"mutation_loci", | ||
"knockin_loci", | ||
"classification", | ||
"clustering", | ||
"consensus", | ||
] | ||
for subdir in SUBDIRS: | ||
Path(TEMPDIR, NAME, subdir).mkdir(parents=True, exist_ok=True) | ||
|
||
|
||
def create_report(TEMPDIR: Path, NAME: str, is_control=False) -> None: | ||
if is_control: | ||
Path(TEMPDIR, "report", "BAM", NAME).mkdir(parents=True, exist_ok=True) | ||
return | ||
SUBDIRS_REPORT = ["HTML", "FASTA", "BAM", "MUTATION_INFO", ".igvjs"] | ||
for reportdir in SUBDIRS_REPORT: | ||
if reportdir == "MUTATION_INFO": | ||
Path(TEMPDIR, "report", reportdir).mkdir(parents=True, exist_ok=True) | ||
else: | ||
Path(TEMPDIR, "report", reportdir, NAME).mkdir(parents=True, exist_ok=True) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from pathlib import Path | ||
|
||
DAJIN_RESULTS_DIR = Path("DAJIN_Results") | ||
TEMP_ROOT_DIR = Path(DAJIN_RESULTS_DIR, ".tempdir") |
Oops, something went wrong.