Skip to content

Commit

Permalink
Lanesplit samples (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
WardDeb authored Jan 11, 2024
2 parents 5a1cd78 + a6a4b46 commit 14602aa
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/dissectBCL/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,18 @@ def decideSplit(self):
laneSplitStatus = True
# Do we need lane splitting or not ?
# If there is at least one sample in more then 1 lane, we cannot split:
if sum(self.fullSS['Sample_Name'].value_counts() > 1) > 0:
logging.info(
"No lane splitting: >= 1 sample in multiple lanes."
)
laneSplitStatus = False
samples = list(self.fullSS['Sample_ID'].unique())
for _s in samples:
if len(
list(self.fullSS[
self.fullSS['Sample_ID'] == _s
]['Lane'].unique()
)
) > 1:
logging.info(
"No lane splitting: >= 1 sample in multiple lanes."
)
laneSplitStatus = False
# If one project is split over multiple lanes, we also don't split:
projects = list(self.fullSS['Sample_Project'].unique())
for project in projects:
Expand Down

0 comments on commit 14602aa

Please sign in to comment.