Skip to content
Snippets Groups Projects
Commit d45ddcaf authored by Schneider Leo's avatar Schneider Leo
Browse files

fix : absolute path for image dataset and DLLs

parent f91aeb22
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,7 @@ def create_antibio_dataset(path='data/label_raw/230804_strain_peptides_antibiogr ...@@ -124,6 +124,7 @@ def create_antibio_dataset(path='data/label_raw/230804_strain_peptides_antibiogr
df[test] = df[test].map(lambda x :float(str(x).replace('>','').replace('<',''))) df[test] = df[test].map(lambda x :float(str(x).replace('>','').replace('<','')))
#categorise each antibioresistance according to AST breakpoints table #categorise each antibioresistance according to AST breakpoints table
df[test+' cat']= 'NA' df[test+' cat']= 'NA'
df=df.copy()
if 'mic' in test or 'vitek' in test : if 'mic' in test or 'vitek' in test :
try : try :
df.loc[df[test] <= antibiotic_enterrobacter_breakpoints[test]['S'], test+ ' cat'] = 'S' df.loc[df[test] <= antibiotic_enterrobacter_breakpoints[test]['S'], test+ ' cat'] = 'S'
...@@ -156,6 +157,8 @@ def create_antibio_dataset(path='data/label_raw/230804_strain_peptides_antibiogr ...@@ -156,6 +157,8 @@ def create_antibio_dataset(path='data/label_raw/230804_strain_peptides_antibiogr
df['path_ana'] = df['sample_name'].map(lambda x: create_fname(x,analyse='ANA')) df['path_ana'] = df['sample_name'].map(lambda x: create_fname(x,analyse='ANA'))
df['path_aer'] = df['sample_name'].map(lambda x: create_fname(x, analyse='AER')) df['path_aer'] = df['sample_name'].map(lambda x: create_fname(x, analyse='AER'))
print('Reference dataset extracted')
return df return df
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment