Skip to content

Commit 6151927

Browse files
author
conchoecia
committed
deleting some files
1 parent 9bd3502 commit 6151927

File tree

9 files changed

+24
-5508
lines changed

9 files changed

+24
-5508
lines changed

meta_scripts/GAP_hicanu_pt1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ rule assemble:
4040
genomeSize={params.genome_size} \
4141
-pacbio-hifi {params.LR_string}
4242
"""
43+

meta_scripts/GAP_hifiasm_pt1

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ for x in check_these:
1212
if x not in config:
1313
raise IOError("The option '{}' must be in the config".format(x))
1414

15+
if "hifiasm_options" not in config:
16+
config["hifiasm_options"] = ""
17+
1518
rule all:
1619
# genome assem
1720
input:
18-
"step1_hifiasm_hic/" + config["prefix"] + ".hic.hap1.p_ctg.gfa",
19-
"step1_hifiasm_hic/" + config["prefix"] + ".hic.hap2.p_ctg.gfa"
21+
expand("step1_hifiasm_hic/" + config["prefix"] + ".hic.hap{hap}.p_ctg.fasta",
22+
hap = ["1", "2"])
23+
2024

2125
rule assemble:
2226
input:
@@ -31,6 +35,7 @@ rule assemble:
3135
hic_R1_string = ",".join([config["HiC"][lib]["R1"] for lib in config["HiC"]]),
3236
hic_R2_string = ",".join([config["HiC"][lib]["R2"] for lib in config["HiC"]]),
3337
LR_string = " ".join(config["LR"]),
38+
hifiasm_opts = config["hifiasm_options"],
3439
prefix = config["prefix"]
3540
shell:
3641
"""
@@ -41,6 +46,20 @@ rule assemble:
4146
--h1 {params.hic_R1_string} \
4247
--h2 {params.hic_R2_string} \
4348
--n-weight 5 \
44-
{params.LR_string}
49+
{params.hifiasm_opts} \
50+
{params.LR_string}
4551
cd ..
4652
"""
53+
54+
rule gfa_to_fasta:
55+
input:
56+
gfa = "step1_hifiasm_hic/" + config["prefix"] + ".hic.hap{hap}.p_ctg.gfa",
57+
output:
58+
gfa = "step1_hifiasm_hic/" + config["prefix"] + ".hic.hap{hap}.p_ctg.fasta",
59+
threads: 1
60+
shell:
61+
"""
62+
cat {input.gfa} | \
63+
awk '{{if ($1 == "S"){{printf(">%s\\n%s\\n", $2, $3)}} }}' | \
64+
fold -60 > {output.gfa}
65+
"""

snakefiles/GAP_hic_map5_justhic

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)