Skip to content

Commit

Permalink
add script
Browse files Browse the repository at this point in the history
  • Loading branch information
raquellewei committed Oct 3, 2023
1 parent 1140319 commit 8d76ec5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fununifrac/reproducibility/assign_branch_lengths.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

#assigning branch lengths to using randomized method and deterministic method, using pw distance scaled 10 k 5
#current dir = reproducibility

kegg_tree_no_lengths="data/kegg_trees/kegg_ko00001_no_edge_lengths_filtered.txt"
ko_dm_file="data/pairwise_distances/KOs_sketched_scaled_10_k_5"
label_file="data/pairwise_distances/KOs_sketched_scaled_10_k_5.labels.txt"
out_dir="data/kegg_trees"
deterministic_output="data/kegg_trees/kegg_ko00001_scaled_10_k_5_assigned_positivity_enforced.txt"
A_matrix="data/kegg_trees/fununifrac_A.npz"
rand_output="data/kegg_trees/kegg_ko00001_randomized_method.txt"

#deterministic method
#python real_data_branch_assignment.py -e $kegg_tree_no_lengths -dm $ko_dm_file -l $label_file -s $deterministic_output

#randomized method
#python ../create_edge_matrix.py -e $kegg_tree_no_lengths -d $ko_dm_file -o $out_dir -b ko00001
python ../create_edge_lengths.py -d "../../fununifrac/reproducibility/"$ko_dm_file -e "d../../fununifrac/reproducibility/$kegg_tree_no_lengths" "../../fununifrac/reproducibility/$A_matrix" -b ko00001 -o "../../fununifrac/reproducibility/data/$rand_output" --force --distance

0 comments on commit 8d76ec5

Please sign in to comment.