Skip to content

Commit

Permalink
bcftbx/mock: in MockIlluminaRun, get completion files from 'platforms…
Browse files Browse the repository at this point in the history
…' module.
  • Loading branch information
pjbriggs committed Dec 20, 2023
1 parent b051aff commit a898c23
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bcftbx/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from .IlluminaData import IlluminaFastq
from .IlluminaData import SampleSheet
from .TabFile import TabFile
from .platforms import get_run_completion_files
from .utils import OrderedDictionary
from .utils import mkdir

Expand Down Expand Up @@ -801,7 +802,7 @@ def __init__(self,name,platform,top_dir=None,
self._include_sample_sheet = False
self._flowcell_mode = None
self._rta_version = "2.11.4.0"
self._completion_files = ("RTAComplete.txt",)
self._completion_files = get_run_completion_files("miniseq")
elif self._platform == "miseq":
# MISeq
self._nlanes = 1
Expand All @@ -817,7 +818,7 @@ def __init__(self,name,platform,top_dir=None,
self._include_sample_sheet = True
self._flowcell_mode = None
self._rta_version = "2.11.4.0"
self._completion_files = ("RTAComplete.txt",)
self._completion_files = get_run_completion_files("miseq")
elif self._platform == "hiseq":
# HISeq
self._nlanes = 8
Expand All @@ -833,7 +834,7 @@ def __init__(self,name,platform,top_dir=None,
self._include_sample_sheet = True
self._flowcell_mode = None
self._rta_version = "2.11.4.0"
self._completion_files = None
self._completion_files = get_run_completion_files("hiseq")
elif self._platform == "nextseq":
# NextSeq
self._nlanes = 4
Expand All @@ -849,8 +850,7 @@ def __init__(self,name,platform,top_dir=None,
self._include_sample_sheet = False
self._flowcell_mode = None
self._rta_version = "2.11.4.0"
self._completion_files = ("CopyComplete.txt",
"RTAComplete.txt",)
self._completion_files = get_run_completion_files("nextseq")
elif self._platform == "novaseq":
# NovaSeq
self._nlanes = 2
Expand All @@ -866,9 +866,7 @@ def __init__(self,name,platform,top_dir=None,
self._include_sample_sheet = False
self._flowcell_mode = 'SP'
self._rta_version = "v3.4.4"
self._completion_files = ("CopyComplete.txt",
"RTAComplete.txt",
"SequenceComplete.txt")
self._completion_files = get_run_completion_files("novaseq6000")
else:
raise Exception("Unrecognised platform: %s" %
self._platform)
Expand Down

0 comments on commit a898c23

Please sign in to comment.