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

#3951 - Aromatizing causes NULL in export to MDL Molfile V2000 format file #5192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akulyakhtin
Copy link

Issue => 3951

How did you fix the issue?

When a molecule name is null we now don't print out 'null' but print an empty string instead.

This is in accordance with the specification https://www.nonlinear.com/progenesis/sdf-studio/v0.9/faq/sdf-file-format-guidance.aspx#:~:text=Molfiles%20are%20text%20files%20which,libraries%20of%20compound%20structure%20data. :
"A compound record contains several distinct sections. First, there is a three-line header block. These three lines may contain:

  1. The name of the molecule
  2. Details of the software used to generate the compound structure
  3. A comment

Alternatively, any (or all) of these lines may be left blank."

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

When a molecule name is null we now don't print out 'null' but print an empty string instead.

This is in accordance with the specification:
A compound record contains several distinct sections. First, there is a three-line header block. These three lines may contain:

The name of the molecule
Details of the software used to generate the compound structure
A comment
Alternatively, any (or all) of these lines may be left blank.
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

Successfully merging this pull request may close these issues.

1 participant