Skip to content

Commit

Permalink
fix(regex): Fixed the regex matching string to be in line with fasta …
Browse files Browse the repository at this point in the history
…file format standards
  • Loading branch information
nbtm-sh committed Oct 23, 2024
1 parent 9b60e19 commit dadc722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def read_fasta(fp, read_data=False, single_line=True):
logger.debug(f"Fasta content {lines}")

for fasta_line in lines:
if re.search("^.( ?).*$", fasta_line):
if re.search("^\>( ?).*$", fasta_line):
fasta_samples.append(Sample(fasta_line[1:].strip(), fp, None))
if single_line:
break
Expand Down

0 comments on commit dadc722

Please sign in to comment.