Removed Errors in Reading FastA Files

This commit is contained in:
HarshitGupta11 2019-06-05 13:51:31 +05:30 committed by GitHub
parent 0ec99556d1
commit d0e320059a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,6 +98,8 @@ def read_gene_sequences(df,lsy,data_dir,fname):
s=[x for x in gene_by_species_dict if len(gene_by_species_dict[x])!=0]#select those species only whose gene sequences we have to read. s=[x for x in gene_by_species_dict if len(gene_by_species_dict[x])!=0]#select those species only whose gene sequences we have to read.
s=[x.capitalize() for x in s] s=[x.capitalize() for x in s]
print(len(s))
data=read_gene_seq(data_dir,s,gene_by_species_dict) data=read_gene_seq(data_dir,s,gene_by_species_dict)
with open("processed/"+fname+".json","w") as file:#save the data with open("processed/"+fname+".json","w") as file:#save the data