Skip to content

Commit

Permalink
Fix #40 deprecate fileinput usage in fasta
Browse files Browse the repository at this point in the history
  • Loading branch information
kcha committed Oct 23, 2020
1 parent c7ea04c commit 86d7201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions qapa/fasta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fileinput
import sys
from Bio import SeqIO
import pybedtools
Expand All @@ -18,7 +17,7 @@ def filter_sequences(fasta_file, min_length=100, fout=sys.stdout):
seqs = set()
ids = set()
skipped = 0
handle = fileinput.input(fasta_file)
handle = open(fasta_file, 'r')

for record in SeqIO.parse(handle, "fasta"):
sequence = str(record.seq)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
install_requires=['setuptools',
'pandas >= 0.24',
'numpy >= 1.10.0',
'biopython >= 1.66',
'biopython >= 1.76',
'pybedtools >= 0.7.9'
],
entry_points={
Expand Down

0 comments on commit 86d7201

Please sign in to comment.