Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xyzedit command line arguments #109

Closed
eneas77 opened this issue May 26, 2022 · 4 comments
Closed

xyzedit command line arguments #109

eneas77 opened this issue May 26, 2022 · 4 comments

Comments

@eneas77
Copy link

eneas77 commented May 26, 2022

Hi,

I´d like to concatenate a large list of protein+ligand xyz files and it is not intuitive from the Tinker manual how to run in a single line of code from command line with xyzedit.

Any hints of how to use option 22 together with 2.xyz and 2.key files invoking xyzedit with appropiate arguments?

Something like xyzedit first.xyz 22 second.xyz

Thanks a lot

E77

@pren
Copy link
Member

pren commented May 26, 2022 via email

@zjing7
Copy link
Collaborator

zjing7 commented May 26, 2022 via email

@jayponder
Copy link
Member

jayponder commented May 26, 2022

I think what you may be asking (?) is simply how to get the XYZEDIT program to exit after you run:

 xyzedit first.xyz 22 second.xyz

If you just enter that command in a terminal, then the program will be waiting for you to enter the next XYZEDIT option that you want to apply. A way to get it to exit when running from the command line is to enter "0" for the next option. This allows the program to drop through and quit. So you should use something like:

 xyzedit first.xyz 22 second.xyz 0

Then the program will exit correctly, and the merged and renumbered coordinates will be written to the file "first.xyz_2".

@eneas77
Copy link
Author

eneas77 commented Jun 28, 2022

Thanks a lot, it worked!!

E77

@eneas77 eneas77 closed this as completed Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants