Skip to content

Commit

Permalink
show me the final prab
Browse files Browse the repository at this point in the history
  • Loading branch information
noahaus committed Jan 6, 2024
1 parent 6542ee5 commit 0e86968
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/mbov_virulence.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
#return only rows that have the gene name matching in the annotation!
filtered_list = []
for i in range(len(mbov_prab.index)):
print(mbov_prab.loc[i,"Gene"])
print(mbov_prab.loc[i,"Gene"].split("_"))
print(mbov_prab.loc[i,"Gene"].split("_")[0])
#print(mbov_prab.loc[i,"Gene"])
#print(mbov_prab.loc[i,"Gene"].split("_"))
#print(mbov_prab.loc[i,"Gene"].split("_")[0])
if mbov_prab.loc[i,"Gene"].split("_")[0] in virulent_gene_list:
filtered_list.append(i)
print("part of the list")
#filter the rows with the passing indicies
mbov_prab.iloc[filtered_list].to_csv("mbov_virulent_prab.csv",index=False)
mbov_prab
print("prab created successfully")

0 comments on commit 0e86968

Please sign in to comment.