Skip to content
Snippets Groups Projects
Commit 0a9794c2 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Fix string of index.

parent bf27b99b
Branches
Tags
1 merge request!12Resolve "Pool and Pseudoreplication"
Pipeline #1131 failed with stage
in 1 hour, 51 minutes, and 29 seconds
......@@ -124,13 +124,14 @@ def self_psuedoreplication(tag_file, prefix, paired):
# Convert read pairs to reads into standard tagAlign file
for i, string(index) in enumerate([0, 1]):
steps = ['cat %s' % (splits_prefix + index)]
for i, index in enumerate([0, 1]):
string_index = str(index)
steps = ['cat %s' % (splits_prefix + string_index)]
if paired:
steps.extend([r"""awk 'BEGIN{OFS="\t"}{printf "%s\t%s\t%s\tN\t1000\t%s\n%s\t%s\t%s\tN\t1000\t%s\n",$1,$2,$3,$9,$4,$5,$6,$10}'"""])
steps.extend(['gzip -cn'])
out, err = utils.run_pipe(steps, outfile=pseudoreplicate_dict[i])
os.remove(splits_prefix + index)
os.remove(splits_prefix + string_index)
return pseudoreplicate_dict
......
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