-
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.
flushes out the summary stats calcs and starts evo hx
- Loading branch information
Showing
20 changed files
with
69 additions
and
4 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 |
---|---|---|
@@ -1 +1,4 @@ | ||
Next, the pipeline uses the SFS(s) created for fastsimcoal analyses, as well as a user-generated parameter `yaml` file, to feed into a fastsimcoal wrapper (citation here) that generates thousands of random coalescent models. This was run on a cluster. The wrapper identified the best model and parameters, ran a bootstrap analysis, and generated images. The results of the best model are included here in the `results/fastsimcoal` folder. | ||
After the summary statistics were generated, we used the SFS(s) created for fastsimcoal analyses from statMix, as well as a user-generated parameter `yaml` file, to feed into CoalMiner (citation here), a random coalescent topology generate to create 1000 coalescent models. This was run on a cluster. The wrapper identified the best model and parameters, ran a bootstrap analysis, and generated images. The results of the best model are included here in the `results/fastsimcoal` folder. | ||
|
||
First, we ran CoalMiner. The output can be found at `/data/output/evolutionary_history/coalminer_output` | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
Submodule supercomputer_scripts
updated
from 000000 to 8eb62c
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,40 @@ | ||
import os | ||
|
||
from utilities import basic_utilities | ||
|
||
def generate_models_with_coalminer(): | ||
# define paths | ||
project_path = "/home/raya/Documents/Projects/hops_pipeline" | ||
coalminer_path = os.path.join(project_path, "evolutionary_history/CoalMiner") | ||
coalminer_input_folder_path = os.path.join(project_path, "data/input/evolutionary_history/coal_miner_input_files") | ||
coalminer_input_yml = "user_input_hops_k4.yml" | ||
|
||
# copy observed SFS and .yml into the CoalMiner project | ||
copy_sfs_cmd = [ | ||
"cp", | ||
"-r", | ||
coalminer_input_folder_path, | ||
coalminer_path | ||
] | ||
basic_utilities.execute_command(copy_sfs_cmd) | ||
|
||
# run coalminer | ||
# change into the coalminer dir | ||
os.chdir(coalminer_path) | ||
run_coalminer_cmd = [ | ||
"python3", | ||
"coalminer.py", | ||
coalminer_input_yml | ||
] | ||
basic_utilities.execute_command(run_coalminer_cmd) | ||
|
||
|
||
def run_models_on_cluster(): | ||
print("cluster") | ||
|
||
def find_best_model(): | ||
print("best") | ||
|
||
def run_bootstrap(): | ||
print("boot") | ||
# @ARUN |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
import os | ||
|
||
def execute_command(command_list): | ||
command = " ".join(command_list) | ||
print(command) | ||
result = os.system(command) | ||
if result != 0: | ||
print("Command Failed to Execute") | ||
else: | ||
print("Command Successfully Executed") | ||
|
||
def create_directory(dir_path): | ||
if not os.path.exists(dir_path): | ||
os.makedirs(dir_path) |
File renamed without changes.
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