Fixed "all" property check.
This commit is contained in:
parent
42d73270b3
commit
9c8dd08188
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -11,7 +11,7 @@
|
||||
"program": "fasta_filter.py",
|
||||
"args": [
|
||||
"reference_standards.fas",
|
||||
"reference_stasndards_filtered.fas",
|
||||
"reference_standards_filtered.fas",
|
||||
"-c", "rt"
|
||||
],
|
||||
"console": "integratedTerminal",
|
||||
|
@ -14,8 +14,8 @@ def main(args):
|
||||
kept_records.append(s_record)
|
||||
elif args.property == "all" and not (
|
||||
args.contains in s_record.id
|
||||
and args.contains in s_record.name
|
||||
and args.contains in s_record.description):
|
||||
or args.contains in s_record.name
|
||||
or args.contains in s_record.description):
|
||||
kept_records.append(s_record)
|
||||
SeqIO.write(
|
||||
kept_records,
|
||||
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
Bio==1.5.6
|
Loading…
x
Reference in New Issue
Block a user