Spaces:
Runtime error
Runtime error
syedislamuddin
commited on
Commit
·
db76fbc
1
Parent(s):
f239fbd
Upload app.py
Browse files
app.py
CHANGED
@@ -946,17 +946,17 @@ elif Calc=='Single/Multiple Guides':
|
|
946 |
#ref_listA.columns=['gene','guide_type','protospacer_A','protospacer_B']
|
947 |
#st.table(ref_listA)
|
948 |
res,res_mut,res_notfound,list_match,list_mutated,gflga1=get_lists(ref_listA,list_found,list_notfound)
|
949 |
-
dft_a=dft_a.append(ref_listA)
|
950 |
if res.shape[0]>0:
|
951 |
-
dft_resa=
|
952 |
if res_mut.shape[0]>0:
|
953 |
-
dft_res_muta=
|
954 |
if res_notfound.shape[0]>0:
|
955 |
-
dft_notfounda=
|
956 |
if list_match.shape[0]>0:
|
957 |
-
df_matched_guides_ref=
|
958 |
if list_mutated.shape[0]>0:
|
959 |
-
df_mutated_guides_ref=
|
960 |
|
961 |
#st.write('Selected Reference Guides for **Set A**')
|
962 |
#tbl_disp(dft_a,'All','ReferenceGuides',0)
|
@@ -1008,17 +1008,17 @@ elif Calc=='Single/Multiple Guides':
|
|
1008 |
|
1009 |
#ref_listB.columns=['gene','guide_type','protospacer_A','protospacer_B']
|
1010 |
res,res_mut,res_notfound,list_match,list_mutated,gflgb1=get_lists(ref_listB,list_found,list_notfound)
|
1011 |
-
dft_b=dft_b.append(ref_listB)
|
1012 |
if res.shape[0]>0:
|
1013 |
-
dft_resb=
|
1014 |
if res_mut.shape[0]>0:
|
1015 |
-
dft_res_mutb=
|
1016 |
if res_notfound.shape[0]>0:
|
1017 |
-
dft_notfoundb=
|
1018 |
if list_match.shape[0]>0:
|
1019 |
-
df_matched_guides_ref=
|
1020 |
if list_mutated.shape[0]>0:
|
1021 |
-
df_mutated_guides_ref=
|
1022 |
|
1023 |
#st.write('Selected Reference Guides for **Set B**')
|
1024 |
#tbl_disp(dft_b,'All','ReferenceGuides',0)
|
@@ -1054,8 +1054,8 @@ elif Calc=='Single/Multiple Guides':
|
|
1054 |
list_notfound=listC_notfound_ref
|
1055 |
else:
|
1056 |
|
1057 |
-
list_found=
|
1058 |
-
list_notfound=
|
1059 |
variant_set=get_table['sgID_AB']
|
1060 |
dft_c = pd.DataFrame(columns=['gene','guide_type','protospacer_A','protospacer_B'])
|
1061 |
dft_resc=pd.DataFrame(columns=['sgID_1', 'sgRNA_1', 'chr_sgRNA_1', 'position_sgRNA_1', 'sgID_2', 'sgRNA_2', 'chr_sgRNA_2', 'position_sgRNA_2', 'sgID_1_2'])
|
@@ -1071,17 +1071,17 @@ elif Calc=='Single/Multiple Guides':
|
|
1071 |
|
1072 |
#ref_listC.columns=['gene','guide_type','protospacer_A','protospacer_B']
|
1073 |
res,res_mut,res_notfound,list_match,list_mutated,gflgc1=get_lists(ref_listC,list_found,list_notfound)
|
1074 |
-
dft_c=dft_c.append(ref_listC)
|
1075 |
if res.shape[0]>0:
|
1076 |
-
dft_resc=
|
1077 |
if res_mut.shape[0]>0:
|
1078 |
-
dft_res_mutc=
|
1079 |
if res_notfound.shape[0]>0:
|
1080 |
-
dft_notfoundc=
|
1081 |
if list_match.shape[0]>0:
|
1082 |
-
df_matched_guides_ref=
|
1083 |
if list_mutated.shape[0]>0:
|
1084 |
-
df_mutated_guides_ref=
|
1085 |
|
1086 |
#st.write('Selected Reference Guides for **Set C**')
|
1087 |
#tbl_disp(dft_c,'All','ReferenceGuides',0)
|
|
|
946 |
#ref_listA.columns=['gene','guide_type','protospacer_A','protospacer_B']
|
947 |
#st.table(ref_listA)
|
948 |
res,res_mut,res_notfound,list_match,list_mutated,gflga1=get_lists(ref_listA,list_found,list_notfound)
|
949 |
+
#dft_a=dft_a.append(ref_listA)
|
950 |
if res.shape[0]>0:
|
951 |
+
dft_resa=pd.concat([dft_resa,res])
|
952 |
if res_mut.shape[0]>0:
|
953 |
+
dft_res_muta=pd.concat([dft_res_muta,res_mut])
|
954 |
if res_notfound.shape[0]>0:
|
955 |
+
dft_notfounda= pd.concat([dft_notfounda,res_notfound])
|
956 |
if list_match.shape[0]>0:
|
957 |
+
df_matched_guides_ref= pd.concat([df_matched_guides_ref,list_match])
|
958 |
if list_mutated.shape[0]>0:
|
959 |
+
df_mutated_guides_ref= pd.concat([df_mutated_guides_ref,list_mutated])
|
960 |
|
961 |
#st.write('Selected Reference Guides for **Set A**')
|
962 |
#tbl_disp(dft_a,'All','ReferenceGuides',0)
|
|
|
1008 |
|
1009 |
#ref_listB.columns=['gene','guide_type','protospacer_A','protospacer_B']
|
1010 |
res,res_mut,res_notfound,list_match,list_mutated,gflgb1=get_lists(ref_listB,list_found,list_notfound)
|
1011 |
+
#dft_b=dft_b.append(ref_listB)
|
1012 |
if res.shape[0]>0:
|
1013 |
+
dft_resb=pd.concat([dft_resb,res])
|
1014 |
if res_mut.shape[0]>0:
|
1015 |
+
dft_res_mutb=pd.concat([dft_res_mutb,res_mut])
|
1016 |
if res_notfound.shape[0]>0:
|
1017 |
+
dft_notfoundb= pd.concat([dft_notfoundb,res_notfound])
|
1018 |
if list_match.shape[0]>0:
|
1019 |
+
df_matched_guides_ref= pd.concat([df_matched_guides_ref,list_match])
|
1020 |
if list_mutated.shape[0]>0:
|
1021 |
+
df_mutated_guides_ref= pd.concat([df_mutated_guides_ref,list_mutated])
|
1022 |
|
1023 |
#st.write('Selected Reference Guides for **Set B**')
|
1024 |
#tbl_disp(dft_b,'All','ReferenceGuides',0)
|
|
|
1054 |
list_notfound=listC_notfound_ref
|
1055 |
else:
|
1056 |
|
1057 |
+
list_found=listC_found_lr
|
1058 |
+
list_notfound=listC_notfound_lr
|
1059 |
variant_set=get_table['sgID_AB']
|
1060 |
dft_c = pd.DataFrame(columns=['gene','guide_type','protospacer_A','protospacer_B'])
|
1061 |
dft_resc=pd.DataFrame(columns=['sgID_1', 'sgRNA_1', 'chr_sgRNA_1', 'position_sgRNA_1', 'sgID_2', 'sgRNA_2', 'chr_sgRNA_2', 'position_sgRNA_2', 'sgID_1_2'])
|
|
|
1071 |
|
1072 |
#ref_listC.columns=['gene','guide_type','protospacer_A','protospacer_B']
|
1073 |
res,res_mut,res_notfound,list_match,list_mutated,gflgc1=get_lists(ref_listC,list_found,list_notfound)
|
1074 |
+
#dft_c=dft_c.append(ref_listC)
|
1075 |
if res.shape[0]>0:
|
1076 |
+
dft_resc=pd.concat([dft_resc,res])
|
1077 |
if res_mut.shape[0]>0:
|
1078 |
+
dft_res_mutc=pd.concat([dft_res_mutc,res_mut])
|
1079 |
if res_notfound.shape[0]>0:
|
1080 |
+
dft_notfoundc= pd.concat([dft_notfoundc,res_notfound])
|
1081 |
if list_match.shape[0]>0:
|
1082 |
+
df_matched_guides_ref= pd.concat([df_matched_guides_ref,list_match])
|
1083 |
if list_mutated.shape[0]>0:
|
1084 |
+
df_mutated_guides_ref= pd.concat([df_mutated_guides_ref,list_mutated])
|
1085 |
|
1086 |
#st.write('Selected Reference Guides for **Set C**')
|
1087 |
#tbl_disp(dft_c,'All','ReferenceGuides',0)
|