Skip to content

Commit

Permalink
Also read .fna files
Browse files Browse the repository at this point in the history
  • Loading branch information
finngl committed Dec 18, 2023
1 parent acce430 commit 081e88f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bifrost_chewbbaca/run_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ def run_pipeline(self):

# Check that we do not get too long sample names!
for child in input_dir.iterdir():
if child.is_file() and child.name.endswith('.fasta'):
if child.is_file() and (child.name.endswith('.fasta') or child.name.endswith('.fna')):
sample_name = child.name[:-6]
if len(sample_name) > 30:
print(f"File name too long: {child.name}")
sys.exit()

for child in input_dir.iterdir():
if child.is_file() and child.name.endswith('.fasta'):
if child.is_file() and (child.name.endswith('.fasta') or child.name.endswith('.fna')):
sample_count += 1
if os.path.isdir(self.output_dir):
shutil.rmtree(self.output_dir)
Expand Down

0 comments on commit 081e88f

Please sign in to comment.