Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
edna
snakemake_rapidrun_obitools
Commits
747a0c8c
Commit
747a0c8c
authored
Feb 11, 2021
by
peguerin
Browse files
fix SettingWithCopyWarning pandas dataframe
parent
6688a0b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
747a0c8c
...
@@ -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
...
...
Snakefile
View file @
747a0c8c
...
@@ -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":
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment