much development
This commit is contained in:
parent
4639688922
commit
c2f9ca62a9
5 changed files with 266 additions and 89 deletions
|
@ -51,7 +51,7 @@ def format_mcsm_na_output(mcsm_na_output_tsv):
|
|||
print('Assigning meaningful colnames'
|
||||
, '\n=======================================================')
|
||||
my_colnames_dict = {'PDB_FILE': 'pdb_file' # relevant info from this col will be extracted and the column discarded
|
||||
, 'CHAIN': 'chain' # {wild_type}<position>{mutant_type}
|
||||
, 'CHAIN': 'chain'
|
||||
, 'WILD_RES': 'wild_type' # one letter amino acid code
|
||||
, 'RES_POS': 'position' # number
|
||||
, 'MUT_RES': 'mutant_type' # one letter amino acid code
|
||||
|
@ -65,8 +65,8 @@ def format_mcsm_na_output(mcsm_na_output_tsv):
|
|||
#############
|
||||
# create mutationinformation column
|
||||
#############
|
||||
mcsm_na_data['mutationinformation'] = mcsm_na_data['wild_type'] + mcsm_na_data.position.map(str) + mcsm_na_data['mutant_type']
|
||||
|
||||
#mcsm_na_data['mutationinformation'] = mcsm_na_data['wild_type'] + mcsm_na_data.position.map(str) + mcsm_na_data['mutant_type']
|
||||
mcsm_na_data['mutationinformation'] = mcsm_na_data.loc[:,'wild_type'] + mcsm_na_data.loc[:,'position'].astype(int).apply(str) + mcsm_na_data.loc[:,'mutant_type']
|
||||
#%%=====================================================================
|
||||
#############
|
||||
# Create col: mcsm_na_outcome
|
||||
|
@ -131,5 +131,4 @@ def format_mcsm_na_output(mcsm_na_output_tsv):
|
|||
, 'chain'
|
||||
, 'pdb_file']]
|
||||
return(mcsm_na_dataf)
|
||||
#%%#####################################################################
|
||||
|
||||
#%%#####################################################################
|
Loading…
Add table
Add a link
Reference in a new issue