Skip to content

Commit

Permalink
wip, perform demux and increase test cov by 5%
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Apr 9, 2024
1 parent 1995320 commit 7d4f4df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taca/illumina/Standard_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def demultiplex_run(self):
f"started for run {os.path.basename(self.id)} on {datetime.now()}"
)

# Demutiplexing done for one mask type and scripts will continue
# Demultiplexing done for one mask type and scripts will continue
# Working with the next type. Command counter should increase by 1
bcl_cmd_counter += 1
return True
Expand Down
7 changes: 6 additions & 1 deletion tests/analysis/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def create_illumina_run_dir(
if os.path.exists(run_path):
shutil.rmtree(run_path)
os.makedirs(run_path)
os.makedirs(os.path.join(run_path, "Demultiplexing"))
# os.makedirs(os.path.join(run_path, "Demultiplexing")) TODO

# Set up files
if completed:
Expand Down Expand Up @@ -562,3 +562,8 @@ def test_get_runObj(create_dirs):
software = "bcl2fastq"

_run_obj = analysis.get_runObj(run_path, software)

_mock_upload_to_db = patch("taca.analysis.analysis._upload_to_statusdb").start()
with patch("subprocess.Popen") as mock_Popen:
mock_Popen.start()
analysis.run_preprocessing(run_path, software)
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def create_dirs():
│ ├── transfer_minion_qc.tsv
│ ├── transfer_minion.tsv
│ └── transfer_promethion.tsv
│ └── transfer.tsv
├── miarka
│ ├── minion
│ │ └── qc
Expand Down Expand Up @@ -85,6 +86,7 @@ def create_dirs():
open(f"{tmp.name}/log/transfer_promethion.tsv", "w").close()
open(f"{tmp.name}/log/transfer_minion.tsv", "w").close()
open(f"{tmp.name}/log/transfer_minion_qc.tsv", "w").close()
open(f"{tmp.name}/log/transfer.tsv", "w").close()

# Analysis server destination dirs
os.makedirs(f"{tmp.name}/miarka/promethion")
Expand Down

0 comments on commit 7d4f4df

Please sign in to comment.