Skip to content

Error in merge with Hi-C data #99

Open
@Shokusei

Description

@Shokusei

Hello, @malonge
I tried to merge my 3 scaffolds obtained by command "ragtag.py scaffold" using corrected fasta.
Bam file of the hic was attached with the index.
And, that command was below.

ragtag.py merge ../correct/correct_At_Mc/ragtag.correct.fasta ../scaffold/scaffold_AT2/ragtag.scaffold.agp ../scaffold/scaffold_JC3/ragtag.scaffold.agp ../scaffold/scaffold_EU2/ragtag.scaffold.agp -b ../../Hi-C/Hi-C.bam -l 100000 -o merge_JC_EU_AT_220121 -u

please tell me which was wrong, and what command can solve this problem.
Thank you.

(base) [iceplant4561@gw1 merge_JC_EU_AT_220121]$ cat ragtag.merge.err
Fri Jan 21 09:41:03 2022 --- INFO: Computing raw Hi-C links from: /lustre7/home/iceplant4561/WGS/Hi-C/Hi-C.bam
Fri Jan 21 09:44:53 2022 --- INFO: Using the following restriction sites:
Sau3AI: GATC
Fri Jan 21 09:44:53 2022 --- INFO: Counting restriction sites
Fri Jan 21 09:44:59 2022 --- INFO: Normalizing raw Hi-C links
Traceback (most recent call last):
File "/home/iceplant4561/anaconda3/envs/Ragtag/bin/ragtag_create_links.py", line 242, in
main()
File "/home/iceplant4561/anaconda3/envs/Ragtag/bin/ragtag_create_links.py", line 237, in main
norm_links = normalize_links(raw_links, l_norm_factors, r_norm_factors)
File "/home/iceplant4561/anaconda3/envs/Ragtag/bin/ragtag_create_links.py", line 136, in normalize_links
norm_links[i][j] = raw_links[i][j] / (first_norm + second_norm)
ZeroDivisionError: division by zero
(base) [iceplant4561@gw1 merge_JC_EU_AT_220121]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions