three_to_one = dict(res_codes)
def seq_add_x(sequence):
- if sequence[0] != 'G':
+ if sequence[0] != 'G' and sequence[0] != 'g':
sequence='X'+sequence
- if sequence[-1] != 'G':
+ if sequence[-1] != 'G' and sequence[-1] != 'g':
sequence=sequence+'X'
- set ='CDSQKIPTFNGHLRWAVEYMX'
+ set ='CDSQKIPTFNGHLRWAVEYMXcdsqkiptfnghlrwaveym'
sequence = ''.join([c for c in sequence if c in set])
return(sequence)
task.md_scal_fric=form.cleaned_data["md_scal_fric"]
task.md_mdpdb=form.cleaned_data["md_mdpdb"]
task.unres_ff=form.cleaned_data["unres_ff"]
+ task.md_respa=form.cleaned_data["md_respa"]
task.boxx=form.cleaned_data["boxx"]
task.boxy=form.cleaned_data["boxy"]
task.boxz=form.cleaned_data["boxz"]
task.remd_nstex=form.cleaned_data["remd_nstex"]
task.md_ntwx=form.cleaned_data["md_ntwx"]
task.md_ntwe=form.cleaned_data["md_ntwe"]
+ task.md_respa=form.cleaned_data["md_respa"]
# task.remd_traj1file=form.cleaned_data["remd_traj1file"]
# task.remd_rest1file=form.cleaned_data["remd_rest1file"]