Skip to content
Snippets Groups Projects
Commit b8eef73a authored by Larissa Glass's avatar Larissa Glass
Browse files

Display progress bar for main processing loop

parent 5e33bd56
Branches
Tags
1 merge request!9Display progress bar for main processing loop
...@@ -7,6 +7,7 @@ dependencies: ...@@ -7,6 +7,7 @@ dependencies:
- matplotlib - matplotlib
- pandas - pandas
- pip - pip
- tqdm
- flake8-docstrings - flake8-docstrings
- mypy - mypy
- flake8 - flake8
......
...@@ -12,6 +12,7 @@ requires-python = ">=3.7" ...@@ -12,6 +12,7 @@ requires-python = ">=3.7"
license = {text = "MIT"} license = {text = "MIT"}
dependencies = [ dependencies = [
"pandas", "pandas",
"tqdm",
] ]
[project.urls] [project.urls]
......
...@@ -2,6 +2,8 @@ import logging ...@@ -2,6 +2,8 @@ import logging
import numpy as np import numpy as np
import pandas as pd import pandas as pd
from tqdm import tqdm
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
...@@ -288,7 +290,7 @@ def sample_transcripts( ...@@ -288,7 +290,7 @@ def sample_transcripts(
# Set up output file, write header once and append data in loop # Set up output file, write header once and append data in loop
write_header(output_annotations_file) write_header(output_annotations_file)
for _, row in transcripts.iterrows(): for _, row in tqdm(transcripts.iterrows()):
transcript_id = row["id"] transcript_id = row["id"]
transcript_count = row["count"] transcript_count = row["count"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment