Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
radseqref
Commits
ea749116
Commit
ea749116
authored
Mar 04, 2021
by
khalid
Browse files
debug SAMPLES access
parent
bfbf7c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/Snakefile
View file @
ea749116
...
...
@@ -16,15 +16,6 @@ OUTPUTS = config["outputs"]
PARAMS_INFO
=
config
[
"params_info"
]
config
=
config
[
"params"
]
def
get_individus
():
if
(
config
[
"demultiplexing"
]
==
"null"
):
return
SAMPLES
else
:
with
open
(
config
[
"process_radtags_barcode_file"
],
mode
=
"r"
)
as
infile
:
reader
=
csv
.
reader
(
infile
,
delimiter
=
'\t'
)
return
[
row
[-
1
]
for
row
in
reader
]
individus
=
get_individus
()
##########
#
Inputs
#
...
...
@@ -35,6 +26,16 @@ raw_reads = raw_reads(config['results_dir'], config['sample_dir'], config['SeOrP
config
.
update
(
raw_reads
)
SAMPLES
=
raw_reads
[
'samples'
]
def
get_individus
():
if
(
config
[
"demultiplexing"
]
==
"null"
):
return
SAMPLES
else
:
with
open
(
config
[
"process_radtags_barcode_file"
],
mode
=
"r"
)
as
infile
:
reader
=
csv
.
reader
(
infile
,
delimiter
=
'\t'
)
return
[
row
[-
1
]
for
row
in
reader
]
individus
=
get_individus
()
##
get
reads
def
reads
():
inputs
=
dict
()
...
...
Write
Preview
Supports
Markdown
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