mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-27 19:50:25 +08:00
Update and rename faralog.py to gappiness.py
This commit is contained in:
parent
25b41672b3
commit
c655354a42
@ -38,7 +38,7 @@ def faralog_gaps():
|
|||||||
split = []
|
split = []
|
||||||
#reading the fasta files with Biopython (looping each sequence in a file and populating the empty name and seq lists).
|
#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"):
|
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)
|
name.append(x.id)
|
||||||
seq.append(x.seq)
|
seq.append(x.seq)
|
||||||
seq_len.append(len(x.seq))
|
seq_len.append(len(x.seq))
|
||||||
Loading…
x
Reference in New Issue
Block a user