Skip to content

Commit

Permalink
Fix Input contains NaN error
Browse files Browse the repository at this point in the history
  • Loading branch information
chengjun109 committed Sep 5, 2021
1 parent 37514db commit 97cf8d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions modules/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def pileup(paf, genome_size):

elif flag == 1:
longdel_count = 0
arr[start_pos][base] += 1 #ex. 100bp ?ºA arr1[100][0] = 1
arr[start_pos][base] += 1 #arr1[100][0] = 1
coverage[start_pos] += 1
start_pos += 1 #?›ä?一bp
start_pos += 1
elif flag == 2:
# *gc
# -01
Expand All @@ -73,7 +73,8 @@ def pileup(paf, genome_size):
if mismatch != 1:
mismatch += 1
else:
arr[start_pos][base] += 1 #不å?mismatchç´€?? coverage[start_pos] += 1
arr[start_pos][base] += 1 #Mismatch position
coverage[start_pos] += 1
start_pos += 1

elif flag == 3:
Expand Down
1 change: 0 additions & 1 deletion modules/polish_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ def without_genus(out, assembly_name, output_dir_debug, mash_screen, assembly, m
'''
# download homologous
download_path = download_action(ncbi_id, contig_output_dir,contig_name)

# alignment
paf = alignment.align(contig_name, minimap_args, threads, download_path, contig_output_dir)

Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.3"
__version__ = "0.3.2"

0 comments on commit 97cf8d5

Please sign in to comment.