File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import json
2-
2+ import hashlib
3+ import subprocess
34import os .path
45import sys
56
67from Bio import SeqIO
78from Bio .Seq import Seq
89from Bio .SeqRecord import SeqRecord
9- import subprocess
1010
1111from docx import Document
1212from docx .shared import Pt , Inches
1313from docx .enum .text import WD_COLOR_INDEX
1414from docx .oxml .ns import qn
1515
16- import hashlib
17-
1816
1917def prepare_seq (seqs : dict , output_file_name : str ):
2018 if "." in output_file_name :
@@ -260,6 +258,9 @@ def num_sequences():
260258 # compute markings for DNA sequence
261259 matches = mark_sequences (text , search_word , skip_spaces , separate_marking_colors )
262260
261+ matches_num = len (matches )
262+ print (f"{ matches_num if matches_num != 0 else "No" } matches of \" { search_word } \" found." )
263+
263264 # create word document with markings
264265 create_word_document_and_mark (word_filename , text , marks = matches )
265266
You can’t perform that action at this time.
0 commit comments