| 1 |
rule all: |
| 2 |
input: |
| 3 |
"graph_plus.gfa" |
| 4 |
|
| 5 |
|
| 6 |
rule compact_paths: |
| 7 |
input: |
| 8 |
"phased_alleles_read_set_id_1.txt" |
| 9 |
output: |
| 10 |
temp("compacted_facts_int.txt") |
| 11 |
shell: |
| 12 |
"python3 /Users/ppeterlo/projets/phasing_disco/create_graph_fact/k3000/K3000.py {input} > {output}" |
| 13 |
|
| 14 |
rule GFA_construction: |
| 15 |
input: |
| 16 |
"compacted_facts_int.txt" |
| 17 |
output: |
| 18 |
temp("compacted_facts.gfa") |
| 19 |
shell: |
| 20 |
"python3 /Users/ppeterlo/projets/phasing_disco/create_graph_fact/k3000/K3000_facts_to_gfa.py {input} > {output}" |
| 21 |
|
| 22 |
rule enhance_graph: |
| 23 |
input: |
| 24 |
"phased_alleles_read_set_id_1.txt", |
| 25 |
"compacted_facts.gfa" |
| 26 |
output: |
| 27 |
temp("graph.gfa") |
| 28 |
shell: |
| 29 |
"python3 /Users/ppeterlo/projets/phasing_disco/create_graph_fact/k3000/enhance_gfa.py compacted_facts.gfa {input} > {output}" |
| 30 |
|
| 31 |
rule detect_snp_succesion: |
| 32 |
input: |
| 33 |
"graph.gfa", |
| 34 |
"discoRad_k_31_c_3_D_0_P_5_m_5_coherent_raw.fa" |
| 35 |
# "discoRes_k_31_c_2_D_0_P_3_b_2_coherent.fa" |
| 36 |
output: |
| 37 |
"graph_plus.gfa" |
| 38 |
shell: |
| 39 |
"python3 /Users/ppeterlo/projets/phasing_disco/create_graph_fact/k3000/find_unitig_connected_pairs_of_facts.py {input} > {output}" |