Skip to content

Commit

Permalink
Add production change
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cowart committed Jul 3, 2024
1 parent 76bbdde commit 4057406
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sequence_processing_pipeline/Pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,13 +705,19 @@ def get_project_info(self, short_names=False):
results = []

if self.mapping_file is not None:
if 'contains_replicates' in self.mapping_file:
contains_replicates = True
else:
contains_replicates = False

sample_project_map = {pn: _df.sample_name.values for pn, _df in
self.mapping_file.groupby('project_name')}

for project in sample_project_map:
p_name, q_id = self._parse_project_name(project, short_names)
results.append(
{'project_name': p_name, 'qiita_id': q_id})
{'project_name': p_name, 'qiita_id': q_id,
'contains_replicates': contains_replicates})
else:
bioinformatics = self.sample_sheet.Bioinformatics
for res in bioinformatics.to_dict('records'):
Expand Down

0 comments on commit 4057406

Please sign in to comment.