Update and rename faralog.py to gappiness.py

This commit is contained in:
Auden Cote-L'Heureux 2023-12-19 13:28:40 -05:00 committed by GitHub
parent 25b41672b3
commit c655354a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ def faralog_gaps():
split = []
#reading the fasta files with Biopython (looping each sequence in a file and populating the empty name and seq lists).
for x in SeqIO.parse(args.alignment + '/' + file, "fasta"):
if x.id.startswith(args.code):
if (args.code != None and x.id.startswith(args.code)) or args.code == None:
name.append(x.id)
seq.append(x.seq)
seq_len.append(len(x.seq))