Commit ea749116 authored by khalid's avatar khalid
Browse files

debug SAMPLES access

parent bfbf7c33
......@@ -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()
......
Supports Markdown
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