Skip to content

Commit f0aa0c0

Browse files
committed
Remove Mismatch WARNING in editing existed sequence
1 parent 6a27a58 commit f0aa0c0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

reform.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,7 @@ def read_fasta(in_arg, index, prev_fasta_path):
212212
f"and command line parameter ({in_arg.new_chrom[index]}).")
213213
print(f"Using command line chromosome name: {in_arg.new_chrom[index]}")
214214
# The actual override happens in add_new_chrom_seq where a new SeqRecord is created
215-
elif hasattr(in_arg, 'chrom') and in_arg.chrom is not None:
216-
if record.id != in_arg.chrom:
217-
print(f"** WARNING: Mismatch detected between chromosome name in input FASTA ({record.id}) "
218-
f"and command line parameter ({in_arg.chrom}).")
219-
print(f"Using command line chromosome name: {in_arg.chrom}")
220-
# The actual override happens in modify_existing_chrom_seq where the existing sequence is modified
215+
221216
except IndexError:
222217
raise ValueError(f"Error: {filename_fa} is not a valid FASTA file.")
223218
except Exception as e:

0 commit comments

Comments
 (0)