// We only merge things if there are multiple samples in the same group
merged_profiles = [os.path.join(self.dirs_dict["MERGE_DIR"], g, "PROFILE.db") \
for g in self.group_names if self.group_sizes[g] > 1]
target_files.extend(merged_profiles)
// for groups of size 1 we create a message file
message_file_for_groups_of_size_1 = [os.path.join(self.dirs_dict["MERGE_DIR"], g, "README.txt") \
for g in self.group_names if self.group_sizes[g] == 1]
After Change
self.samples_information.loc[self.samples_information["group"]==group,"sample"].values[0],
"PROFILE.db")
target_files.extend(list(self.profile_databases.values()))
// for groups of size 1 we create a message file
message_file_for_groups_of_size_1 = [os.path.join(self.dirs_dict["MERGE_DIR"], g, "README.txt") \