Skip to content

Commit

Permalink
Update SampleSheet.py
Browse files Browse the repository at this point in the history
updating this script to recognize new SC_DLP name so the sample sheet can split correctly
  • Loading branch information
darrelln32 committed Jun 10, 2024
1 parent 8dcb8c2 commit 6b08ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SampleSheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def split_sample_sheet(self):
if "SC_DLP" in self.recipe_set and len(self.recipe_set) > 1:
print("Copying all DLP samples to a new sample sheet")
# copy all DLP rows to a new sample sheet
dlp_data = self.df_ss_data[self.df_ss_data["Sample_Well"].str.match("DLP") == True].copy()
dlp_data = self.df_ss_data[self.df_ss_data["Sample_Well"].str.match("SC_DLP") == True].copy()
# and remove DLP samples from the main sample sheet
self.df_ss_data= self.df_ss_data[self.df_ss_data["Sample_Well"].str.match("DLP") == False].copy()
self.df_ss_data= self.df_ss_data[self.df_ss_data["Sample_Well"].str.match("SC_DLP") == False].copy()
# rename DLP sample sheet w/"_DLP.csv"
dlp_path = os.path.splitext(self.path)[0]+'_DLP.csv'
header_copy = self.df_ss_header.copy(deep=True)
Expand Down

0 comments on commit 6b08ed7

Please sign in to comment.