Mercurial > repos > chemteam > mdanalysis_angle
diff hbonds.py @ 4:e7d0075052c9 draft
"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3b99f08f22b9e0c16c0a0adc82f8c16c1a25cedf"
author | chemteam |
---|---|
date | Mon, 07 Oct 2019 12:51:05 -0400 |
parents | ad135cf42274 |
children |
line wrap: on
line diff
--- a/hbonds.py Wed Apr 03 15:47:56 2019 -0400 +++ b/hbonds.py Mon Oct 07 12:51:05 2019 -0400 @@ -4,6 +4,7 @@ import csv import sys +import MDAnalysis as mda import MDAnalysis.analysis.hbonds import pandas as pd @@ -11,8 +12,10 @@ def parse_command_line(argv): parser = argparse.ArgumentParser() - parser.add_argument('--idcd', help='input dcd') - parser.add_argument('--ipdb', help='input pdb') + parser.add_argument('--itraj', help='input traj') + parser.add_argument('--istr', help='input str') + parser.add_argument('--itrajext', help='input traj ext') + parser.add_argument('--istrext', help='input str ext') parser.add_argument('--isegid1', help='segid 1') parser.add_argument('--isegid2', help='segid 2') parser.add_argument('--idistance', help='cutoff distance') @@ -31,8 +34,8 @@ distance = float(args.idistance) angle = float(args.iangle) -u = MDAnalysis.Universe( - args.ipdb, args.idcd, topology_format="PDB", format="DCD") +u = mda.Universe(args.istr, args.itraj, + topology_format=args.istrext, format=args.itrajext) h = MDAnalysis.analysis.hbonds.HydrogenBondAnalysis( u, selection1, selection2, distance=distance, angle=angle)