Skip to content

Commit

Permalink
fixes ref-forward-slash / path problem
Browse files Browse the repository at this point in the history
  • Loading branch information
makeartandgames committed Jul 2, 2015
1 parent fb7456e commit f81acc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bio_pieces/group_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def get_seqs_by_ctg(outdir, rawtext):
fastq = "@{0}\n{1}\n+\n{2}".format
for group in contig_groups:
ref, reads = group[0], group[1]
ref = ref.replace('/', '_')
with open("{0}/{1}.group.fq".format(outdir, ref), 'w') as out:
map(out.writelines, '\n'.join(map(fastq, reads.QNAME, reads.SEQ, reads.QUAL)))
out.write('\n')
Expand Down

0 comments on commit f81acc6

Please sign in to comment.