Skip to content

Commit

Permalink
Merged development
Browse files Browse the repository at this point in the history
  • Loading branch information
apetkau committed May 31, 2022
2 parents 3b6abec + 30dbe1b commit f0b29eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staramr/results/AMRDetectionSummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def __init__(self, files, resfinder_dataframe: DataFrame, quality_module_datafra

def _compile_results(self, resistance_frame: DataFrame) -> DataFrame:
df_summary = resistance_frame.sort_values(by=['Gene']).groupby(['Isolate ID']).aggregate(
lambda x: {'Gene': (self.SEPARATOR + ' ').join(x.get('Gene'))})
{'Gene': lambda x: (self.SEPARATOR + ' ').join(x)})
return df_summary[['Gene']].copy()

def _compile_plasmids(self, plasmid_frame: DataFrame) -> DataFrame:
ds_summary = plasmid_frame.sort_values(by=['Gene']).groupby(['Isolate ID']).aggregate(
lambda x: {'Gene': (self.SEPARATOR + ' ').join(x.get('Gene'))})
{'Gene': lambda x: (self.SEPARATOR + ' ').join(x)})

ds_frame = ds_summary[['Gene']].copy()

Expand Down

0 comments on commit f0b29eb

Please sign in to comment.