Skip to content

Commit 723e182

Browse files
author
gitliver
committed
scripts/sam2fastq.py: undo Ioan edit and add "/1" after the read id in host_sep for single end reads bc Trinity 2.8.5 throws an error without it
1 parent 87c5ccf commit 723e182

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/sam2fastq.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
if (args_single):
5151
# Ioan: Removing the '/1' read specification before the first '\n' character
5252
# possibly a source of formatting errors running Trinity with the --single flag
53-
f.write('@' + id + '\n' + myread + '\n' + '+\n' + qual + '\n')
53+
# oe: putting this back in: Trinity 2.8.5 throws an error without it!
54+
f.write('@' + id + '/1\n' + myread + '\n' + '+\n' + qual + '\n')
5455
else:
5556
# get the binary value of the flag and bitwise AND with 64 ( i.e, int('1000000',2) )
5657
# and then shift 6 bits to look at the 7th bit, which tells us if mate 1 (refer to key).

0 commit comments

Comments
 (0)