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

Mol2, SDF and XYZ File Parsers #418

Open
wants to merge 39 commits into
base: main
Choose a base branch
from

Commits on Aug 24, 2022

  1. XYZFile working with single model, some change with regards

    	to model in get_structure function needed.
    	MOL2File and SDFFile prepared now ...
    entropybit committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    fb47b92 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2022

  1. Configuration menu
    Copy the full SHA
    b0b811d View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2022

  1. Configuration menu
    Copy the full SHA
    a1e0699 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    68ca749 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2022

  1. Configuration menu
    Copy the full SHA
    9767d04 View commit details
    Browse the repository at this point in the history
  2. Added some small molecule files for testing, specifically

    	files with multiple models gained from conversion via
    	openbabel
    entropybit committed Aug 27, 2022
    Configuration menu
    Copy the full SHA
    977616a View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. Finally fucking (somewhat) finished the MOL2File class.

    	sybly atom types heuristic doesn't yet work though ...
    entropybit committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    34c9d4c View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

  1. mol2 tests working again

    entropybit committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    9d61326 View commit details
    Browse the repository at this point in the history
  2. Mol2File test expanded, charges and sybyl_atom type reading

    	now seems to work. Also covering all elements in sybyl_atom_type
    	now, although heuristic not fully working.
    entropybit committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    6103a1a View commit details
    Browse the repository at this point in the history
  3. forgot to commit changes on MOL2File before only pushed

    	changed tests ^^
    entropybit committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    7292457 View commit details
    Browse the repository at this point in the history
  4. Modified test_mol so that only pdbx residues are tested

    	for pdbx residue consistency
    entropybit committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    36e0645 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. all file formats somewhat working, at least reading works for

    	xyz and sdf files. For mol2 files it works as long as
    	the atom_name represents the element and not an atom_name like "CA"
    entropybit committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    fc81ec9 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. reading and writing of mol2 file now also works with atom_names

    	that are actual atom_names and not elements.
    	Specifically this works with amino acids where the
    	atom_names are written to the atom_name column. See
    	TYR.mol2 for example in test cases.
    entropybit committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    6f3b551 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. Mol test now passing without skipped for amino acids.

    	Before the logic for only doing that test when an amino acid
    	in file name did create an empty list.
    entropybit committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    a8db20a View commit details
    Browse the repository at this point in the history
  2. Small change in XYZFile and also added all docstrings for

    	public functions. Internal functions and members have been
    	made private.
    entropybit committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    e591fef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    88fd7e3 View commit details
    Browse the repository at this point in the history
  4. SD File read/write with AtomArray and AtomArrayStack,

            as well as meta_information dictionaries working.
            Reading of datetime from header working. But besides that
            problems with read/write of header. These seem to stem from
            the fact that programs such as openbabel to not adher to the
            Chemical table file standard ..
            Omitting this for now as one can in principle get the header
            by acessing lines[1]
    entropybit committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    9128b08 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fb530c9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1971241 View commit details
    Browse the repository at this point in the history
  7. removing get_header and set_header from test as apprently

    	warning causes test suite to interpret this as failure..
    entropybit committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    18479a8 View commit details
    Browse the repository at this point in the history
  8. Forgot to implement functionality in load_structure and

    	save_structure. Cleaned up tests, also precision in
    	XYZFiles did not match between loaded and stored.
    entropybit committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    4ddd8b1 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2022

  1. Update src/biotite/structure/io/ctab.py

    Co-authored-by: Patrick Kunzmann <padix.key@gmail.com>
    entropybit and padix-key committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    dd19716 View commit details
    Browse the repository at this point in the history
  2. Update src/biotite/structure/io/ctab.py

    Co-authored-by: Patrick Kunzmann <padix.key@gmail.com>
    entropybit and padix-key committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    040f9c3 View commit details
    Browse the repository at this point in the history
  3. Update src/biotite/structure/io/general.py

    Co-authored-by: Patrick Kunzmann <padix.key@gmail.com>
    entropybit and padix-key committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    d979cec View commit details
    Browse the repository at this point in the history
  4. Update src/biotite/structure/io/general.py

    Co-authored-by: Patrick Kunzmann <padix.key@gmail.com>
    entropybit and padix-key committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    ada8e76 View commit details
    Browse the repository at this point in the history
  5. Update src/biotite/structure/io/general.py

    Co-authored-by: Patrick Kunzmann <padix.key@gmail.com>
    entropybit and padix-key committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    d193ae7 View commit details
    Browse the repository at this point in the history
  6. Update src/biotite/structure/io/mol2/file.py

    Co-authored-by: Patrick Kunzmann <padix.key@gmail.com>
    entropybit and padix-key committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    882a5bf View commit details
    Browse the repository at this point in the history
  7. Bega pep8 checking + reformatting in file.py as well as

    	adding get_model_count function.
    entropybit committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    92a5aa7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fedc28a View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. PEP8 checking on file.py in xyz, also added myself

    	to contributors list
    entropybit committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    8e64067 View commit details
    Browse the repository at this point in the history
  2. Added test for get_model_count in XYZFiles, found

    	some missing functionality with this (was not working
    	properly before). Also made test_xyz.py conforming with
    	PEP8 codestyle.
    entropybit committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    a34a344 View commit details
    Browse the repository at this point in the history
  3. Forgot contrib as well as changes to xyz file.

    	Made some changes also in conver to expose header get/set
    	Also added tests for this.
    entropybit committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    a4e63a1 View commit details
    Browse the repository at this point in the history
  4. Retrieving file name from absolute path now done in a way

    	that it should also work with windows paths.
    entropybit committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    dd54098 View commit details
    Browse the repository at this point in the history
  5. Typo in retrieve_file_name_from_path, hopefully working now

    	with windows paths also...
    entropybit committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    501b07d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a0e05d7 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. Changes in test_mol2 (now also covers using model parameter

    	in get_structure for multi model files).
    	Some cleanup...
    entropybit committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    473f50b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8725b40 View commit details
    Browse the repository at this point in the history
  3. Changed warning when MOLFile reads timestamp entry and

    	datetime is not matching.
    	Tried to negelect this warning in the test but somehow
    	mark.filterwarnings has no effect.
    entropybit committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    9ee1b20 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. Configuration menu
    Copy the full SHA
    13c5810 View commit details
    Browse the repository at this point in the history