Skip to content

Commit

Permalink
Update documentation in README and add SPDX-Identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk committed Jan 12, 2021
1 parent 75a047e commit d38202c
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,51 @@ You can run the projects testsuite with
meson test -C _build --print-errorlogs
```

If the testsuite passes you can install with

```
meson configure _build --prefix=/path/to/install
meson install -C _build
```

This might require administrator access depending on the chosen install prefix.
Now you are ready to use ``mctc-rmsd``.


## Usage

To calculate the RMSD between two structures use the [``mctc-rmsd(1)``](man/mctc-rmsd.1.adoc) program with

```
mctc-rmsd struc-a.xyz struc-b.xyz
```

The RMSD is calculated relative to the first provided structure.
Multiple structures can be provided to perform additional RMSD calculations,

```
mctc-rmsd coord conf-1.xyz conf-2.xyz conf-3.xyz
```

To select a subset of atoms use a filter

```
mctc-rmsd xrd.pdb opt.pdb --filter heavy
```

The heavy atom RMSD (excluding all H atoms) is built-in by default.
New filter can be defined in the ``mctc.toml`` configuration file in the current directory or in your home directory with:

```toml
[rmsd.filter]
# Definition of the built-in heavy atom filter
heavy.exclude = ["H", "h"]
# Include all carbon, nitrogen and oxygen atoms
organic.include = [6, 7, 8]
```

For more details look up [the manual page](man/mctc-rmsd.1.adoc).


## License

Expand Down
1 change: 1 addition & 0 deletions app/main.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! This file is part of mctc-rmsd.
! SPDX-Identifier: LGPL-3.0-or-later
!
! mctc-rmsd is free software: you can redistribute it and/or modify it under
! the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions app/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is part of mctc-rmsd.
# SPDX-Identifier: LGPL-3.0-or-later
#
# mctc-rmsd is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions app/targ.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
! SPDX-Identifier: LGPL-3.0-or-later
module targ
use tomlf
implicit none
Expand Down
1 change: 1 addition & 0 deletions config/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is part of mctc-rmsd.
# SPDX-Identifier: LGPL-3.0-or-later
#
# mctc-rmsd is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is part of mctc-rmsd.
# SPDX-Identifier: LGPL-3.0-or-later
#
# mctc-rmsd is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is part of mctc-rmsd.
# SPDX-Identifier: LGPL-3.0-or-later
#
# mctc-rmsd is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions src/rmsd.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! This file is part of mctc-rmsd.
! SPDX-Identifier: LGPL-3.0-or-later
!
! mctc-rmsd is free software: you can redistribute it and/or modify it under
! the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions src/rmsd/config.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! This file is part of mctc-rmsd.
! SPDX-Identifier: LGPL-3.0-or-later
!
! mctc-rmsd is free software: you can redistribute it and/or modify it under
! the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions src/rmsd/filter.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! This file is part of mctc-rmsd.
! SPDX-Identifier: LGPL-3.0-or-later
!
! mctc-rmsd is free software: you can redistribute it and/or modify it under
! the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions src/rmsd/ls.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! This file is part of mctc-rmsd.
! SPDX-Identifier: LGPL-3.0-or-later
!
! Copyright (C) 2004, 2005 Chaok Seok, Evangelos Coutsias and Ken Dill
! UCSF, Univeristy of New Mexico, Seoul National University
Expand Down
1 change: 1 addition & 0 deletions src/rmsd/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is part of mctc-rmsd.
# SPDX-Identifier: LGPL-3.0-or-later
#
# mctc-rmsd is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions src/rmsd/toml.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! This file is part of mctc-rmsd.
! SPDX-Identifier: LGPL-3.0-or-later
!
! mctc-rmsd is free software: you can redistribute it and/or modify it under
! the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions src/rmsd/version.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! This file is part of mctc-rmsd.
! SPDX-Identifier: LGPL-3.0-or-later
!
! mctc-rmsd is free software: you can redistribute it and/or modify it under
! the terms of the GNU Lesser General Public License as published by
Expand Down
1 change: 1 addition & 0 deletions test/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is part of mctc-rmsd.
# SPDX-Identifier: LGPL-3.0-or-later
#
# mctc-rmsd is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
Expand Down

0 comments on commit d38202c

Please sign in to comment.