Skip to content

Commit

Permalink
Update Occlusion_map_v3_HydRa2_0.py
Browse files Browse the repository at this point in the history
Fix the unmatched number of arguments.
  • Loading branch information
Wenhao-Jin authored May 31, 2024
1 parent e1528b2 commit 7f34715
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions HydRa/predictions/Occlusion_map_v3_HydRa2_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,9 +1591,13 @@ def main(args):
###### Generate score statistics from reference dataset
if use_Zscore==True and ref_seq_dir!=None and out_dir2!=None:
### Run zscore normalization, zscore integration and p-value calcuation for reference data.
HydRa_score_whole_df=pd.read_table(reference_all_score_file, index_col=0)
if reference_all_score_file.endswith('.csv'):
HydRa_score_whole_df=pd.read_csv(reference_all_score_file, index_col=0)
else:
HydRa_score_whole_df=pd.read_table(reference_all_score_file, index_col=0)

if not ("Protein_length" in HydRa_score_whole_df.columns):
HydRa_score_whole_df['Protein_length']=list(map(lambda x: get_protein_length(x, ref_seq_dir), HydRa_score_whole_df.index))
HydRa_score_whole_df['Protein_length']=list(map(lambda x: get_protein_length(os.path.join(ref_seq_dir, x+'.fasta')), HydRa_score_whole_df.index))

prot_len_dic0=HydRa_score_whole_df['Protein_length'].to_dict()
## get reference score dict for deltaSVM and deltaDNN
Expand Down

0 comments on commit 7f34715

Please sign in to comment.