Skip to content

Commit

Permalink
Account for uncompressed fq in filterReads.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dfupa authored Dec 12, 2023
1 parent bf76e48 commit 043ef7d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bin/filterReads.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,15 @@ def rawtrimmer(infile, minlen, maxlen, limit, minqual, qual64offset, qseq, strip
continue
name, seq, quals = read

#Reformat to string instead of byte
name = name.decode('utf-8')
seq = seq.decode('utf-8')
quals = quals.decode('utf-8')
#Reformat to string instead of byte. Add exception in case it is fq instead of fq.gz
try:
name = name.decode('utf-8')
seq = seq.decode('utf-8')
quals = quals.decode('utf-8')
except:
name = name
seq = seq
quals = quals


## Clip seq & quals @ N ( unknown base )
Expand Down

1 comment on commit 043ef7d

@Dfupa
Copy link
Contributor Author

@Dfupa Dfupa commented on 043ef7d Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In reference to #107

Please sign in to comment.