Commit 747a0c8c authored by peguerin's avatar peguerin
Browse files

fix SettingWithCopyWarning pandas dataframe

parent 6688a0b5
...@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. ...@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
* all worklows are merged into a single one * all worklows are merged into a single one
* results subfolders are generated automatically * results subfolders are generated automatically
* unique scripts, rules and envs folders * unique scripts, rules and envs folders
* Fix SettingWithCopyWarning pandas dataframe
### Removed ### Removed
......
...@@ -221,7 +221,7 @@ listChunks = [*range(1,(config['illuminapairedend']['nb_chunk']+1))] ...@@ -221,7 +221,7 @@ listChunks = [*range(1,(config['illuminapairedend']['nb_chunk']+1))]
## keep only marker and run information for demultiplexing ## keep only marker and run information for demultiplexing
dfRunMarker=dfrm[['marker','run']] dfRunMarker=dfrm.loc[:, ( 'marker','run')]
dfRunMarker['runMarker']=str_join(dfrm, '/', 'marker', 'run') dfRunMarker['runMarker']=str_join(dfrm, '/', 'marker', 'run')
dfRunMarker['projMarker']=str_join(dfrm, '/', 'projet', 'marker') dfRunMarker['projMarker']=str_join(dfrm, '/', 'projet', 'marker')
dfRunMarker=dfRunMarker.drop_duplicates() dfRunMarker=dfRunMarker.drop_duplicates()
...@@ -259,7 +259,7 @@ for projmarkerrun in dfRunMarker['projMarkRun'].unique(): ...@@ -259,7 +259,7 @@ for projmarkerrun in dfRunMarker['projMarkRun'].unique():
dfRunMarker['dat'] = ["results/04_demultiplex_dat/"+ele.replace('/','_')+".tsv" for ele in dfRunMarker['projMarkRun']] dfRunMarker['dat'] = ["results/04_demultiplex_dat/"+ele.replace('/','_')+".tsv" for ele in dfRunMarker['projMarkRun']]
projetMarkerRuns = dfMulti[['projmarkrun','marker','projet']].drop_duplicates() projetMarkerRuns = dfMulti.loc[:, ('projmarkrun','marker','projet')].drop_duplicates()
dfpmr = projetMarkerRuns dfpmr = projetMarkerRuns
## attribute sample description files to each row with corresponding `marker` ## attribute sample description files to each row with corresponding `marker`
if config['format'] == "CLASSIC": if config['format'] == "CLASSIC":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment