Skip to content

Commit 112cb72

Browse files
committed
fix readme and main
1 parent b0cd94e commit 112cb72

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,5 +200,5 @@ trj.frames[frame]
200200

201201
This is a dict that contains a dict for each sampled and analyzed frame, with the data computed during the analysis.
202202

203-
### Complete functionality
204-
An in deep review of morphoscanner functionalities can be found in the [morphoscanner_tutorial.ipynb](https://github.com/lillux/morphoscanner/blob/main/Tutorials/morphoscanner_tutorial.ipynb).
203+
### Complete functionalities
204+
An in deep review of `morphoscanner` functionalities can be found in the [morphoscanner tutorial](https://github.com/lillux/morphoscanner/blob/main/Tutorials/1_morphoscanner_tutorial.ipynb).

main.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,16 @@
1010
_xtc = get_xtc()
1111

1212
trj = trajectory(_gro, _xtc)
13+
trj.explore()
1314

14-
print('\nYour trajectory has %d frames' % trj.number_of_frames)
15-
print('Your trajectory has %d BB atoms\n' % trj.number_of_BB_atoms)
16-
print('Your simulation has the following number of peptides of a certain length:\n')
17-
print_peptides_length(trj.len_dict)
15+
interval = get_interval(sentence='\nSet the interval between sampled frames (int): ')
16+
trj.compose_database(sampling_interval=interval)
1817

19-
20-
peptide_length = peptide_length(sentence='Set the number of aminoacids in one peptide (int): ')
21-
interval = get_interval(sentence='Set the interval between sampled frames (int): ')
22-
start_from = start_from(sentence='Set the index from which you want to start.\n\n0 if you have a single simulation.\n0 if you are analyzing split1.\nlen(split1) if you are analyzing split2.\ninteger: ')
23-
24-
output_path, file_name = get_destination_dir_and_name()
25-
26-
27-
trj.compose_database(peptide_length=peptide_length, interval=interval)
2818
trj.analyze_inLoop()
2919
trj.get_data()
3020
trj.get_database()
3121

32-
22+
output_path, file_name = get_destination_dir_and_name()
3323

3424
trj.database.to_excel(output_path, sheet_name=file_name)
3525

0 commit comments

Comments
 (0)