-
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.
added template code for calling identify interactions function with D…
…IALECT w/o implementation yet
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import logging | ||
|
||
from dialect.utils.helpers import * | ||
|
||
# ---------------------------------------------------------------------------- # | ||
# Helper Functions # | ||
# ---------------------------------------------------------------------------- # | ||
|
||
|
||
# ---------------------------------------------------------------------------- # | ||
# Main Function # | ||
# ---------------------------------------------------------------------------- # | ||
def identify_pairwise_interactions(maf, bmr, out, k): | ||
""" | ||
Main function to identify pairwise interactions between genetic drivers in tumors using DIALECT. | ||
! Not Yet Implemented | ||
@param maf: Path to the input MAF (Mutation Annotation Format) file containing mutation data. | ||
@param bmr: Path to the file with background mutation rate (BMR) distributions. | ||
@param out: Directory where outputs will be saved. | ||
@param k: Top k genes according to count of mutations will be used. | ||
""" | ||
check_file_exists(maf) | ||
check_file_exists(bmr) | ||
if k <= 0: | ||
logging.error("k must be a positive integer") | ||
raise ValueError("k must be a positive integer") | ||
logging.info("Identifying pairwise interactions using DIALECT") | ||
logging.info("Functionality not yet implemented") |