Giter VIP home page Giter VIP logo

nodes4knime's Introduction

Maven Central build Bugs

The Chemistry Development Kit (CDK)

Copyright © 1997-2024 The CDK Development Team

License: LGPL v2, see LICENSE.txt

Home Page | JavaDoc | Wiki | Issues | Mailing List

Introduction

The CDK is an open-source Java library for cheminformatics and bioinformatics.

Key Features:

  • Molecule and reaction valence bond representation.
  • Read and write file formats: SMILES, SDF, InChI, Mol2, CML, and others.
  • Efficient molecule processing algorithms: Ring Finding, Kekulisation, Aromaticity.
  • Coordinate generation and rendering.
  • Canonical identifiers for fast exact searching.
  • Substructure and SMARTS pattern searching.
  • ECFP, Daylight, MACCS, and other fingerprint methods for similarity searching.
  • QSAR descriptor calculations

Install

The CDK is a class library intended to be used by other programs, it will not run as a stand-alone program.

The library is built with Apache Maven and currently requires Java 1.7 or later. From the root of the project run to build the JAR files for each module. The bundle/target/ directory contains the main JAR with all dependencies included:

$ mvn install

You can also download a pre-built library JAR from releases.

Include the main JAR on the Java classpath when compiling and running your code:

$ javac -cp cdk-2.9.jar MyClass.java
$ java -cp cdk-2.9.jar:. MyClass

If you are using Maven, you can use the uber cdk-bundle to grab everything, note it is much more efficient to use include the modules you need:

<dependency>
  <artifactId>cdk-bundle</artifactId>
  <groupId>org.openscience.cdk</groupId>
  <version>2.9</version>
</dependency>

If you are a Python user, the Cinfony project provides access via Jython. Noel O'Boyle's Cinfony provides a wrapper around the CDK and over toolkits exposing core functionality as a consistent API.

Further details on building the project in integrated development environments (IDEs) are available on the wiki:

Getting Help

The Toolkit-Rosetta Wiki Page provides some examples for common tasks. If you need help using the CDK and have questions please use the user mailing list, [email protected] (you must subscribe here first to post).

Acknowledgments

YourKit Logo

The CDK developers use YourKit to profile and optimise code.

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

nodes4knime's People

Contributors

egonw avatar gab1one avatar webbres avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nodes4knime's Issues

regression in testflows.trunk.cDK.cdkTestConnectivity

junit.framework.AssertionFailedError: Node 'Table Difference Checker 0:41' is not executed. Error message is: Execute failed: Wrong value in row 'Row0' and column 'Molecule': expected '[Na+]', got '[C@H]1(C(N2[C@@]1(SC([C@@H]2C([O-])=O)(C)C)[H])=O)NC(=O)[C@@H](c3ccc(cc3)O)N.[Na+]' in line 1 (using checker 'Strings')
	at org.knime.testing.core.ng.WorkflowExecuteTest.checkExecutionStatus(WorkflowExecuteTest.java:218)
	at org.knime.testing.core.ng.WorkflowExecuteTest.run(WorkflowExecuteTest.java:170)
	at org.knime.testing.core.ng.WorkflowTestSuite.run(WorkflowTestSuite.java:238)
	at org.knime.testing.core.ng.WorkflowTestSuite.runTest(WorkflowTestSuite.java:305)
	at org.knime.testing.core.ng.TestflowRunnerApplication.runAllTests(TestflowRunnerApplication.java:254)
	at org.knime.testing.core.ng.TestflowRunnerApplication.access$1(TestflowRunnerApplication.java:227)
	at org.knime.testing.core.ng.TestflowRunnerApplication$1.call(TestflowRunnerApplication.java:172)
	at org.knime.testing.core.ng.TestflowRunnerApplication$1.call(TestflowRunnerApplication.java:1)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

KNIME 3.6 build tests failing

CdkTestConnectivity test workflow appears to be failing

Node 'SDF Reader 0:3' has unexpected warning message: Cannot access 'knime://knime.workflow/../CdkTestData/Connectivity.sdf%20': /var/lib/jenkins/jobs/org.openscience.cdk.knime.update-3.6/workspace/tmp/knime_temp/KNIME Testflow63081/Testflows/3.6/CDK/CdkTestConnectivity/../CdkTestData/Connectivity.sdf (No such file or directory)

Having issues loading the SDF from the relative directory.

upgrade to CDK 2

This turns out to be a bit harder than expected, as it simultaneously needs updating of JChemPaint and AMBIT ...

Depiction node requires a column for atom highlights

The node dialog won't open unless a column compatible with the atom highlight/bond highlight is provided.

A user may not want highlighting and shouldn't be forced to provide this column.

This was an oversight when I wrote the node. I'll submit a pull request with an fix for this issue.

image

image

KNIME 4.6 node build fails dependency checker

Raising here for visibility.

KNIME community builds now have OWASP dependency checker run against them and fail on critical security issues.

Legacy CDK fails on:

The KNIME plugin has a bundled jar for CDK 1.5.13 so it's not possible to simply replace the libs provided.

For the reaction decoder tool integration I updated the dependencies (CDK 2.4 -> 2.7) and then had to update some of the CDK dependencies to work around security issues.

I'll try submit a fix for this, will need to make sure CDK 1.5 tests pass with updated JENA deps

CAS input doesn't work in Structure Sketcher node

Hi,

I suppose the issue is with the URLs in the getMoleculeFromCAS(String cas) method in InsertTextPanel.java. As NCBI switched to HTTPS, this method now returns null. I could get the method working with the following changes:

Edit 1:
String firstURL = "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=pccompound&term=" + cas;
(change to https)

Edit 2:
Pattern pattern = Pattern.compile("http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi\\?cid=(\\d*)");
(change the regex string to https://pubchem.ncbi.nlm.nih.gov/compound/(\\d*))

Edit 3:
String secondURL = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?tool=jcppubchem&db=pccompound&id=" + cid;
(change to https)

Edit 4:
pattern = Pattern.compile("<Item Name=\"CanonicalSmile\" Type=\"String\">([^\\s]*?)</Item>");
(change CanonicalSmile to CanonicalSmiles)

Is it possible to release a new version of jchempaint-hotfix-3.4.jar? I would like to use the sketcher panel in the development of a new KNIME node.

Thank you,
Vishal

review current code base

@sithmein, can you have a look at this too?

Checks needed:

  • is everything included to open this in Eclipse
  • does it compile
  • does it run in KNIME from within the SDK
  • does an export lead to proper installable product

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.