Skip to content

Commit

Permalink
Merge pull request #12 from ncats/apply_parameters
Browse files Browse the repository at this point in the history
Create the ability to pass parameters to a ChemicalImplFactory class
  • Loading branch information
ChemMitch authored May 9, 2024
2 parents ad468a0 + 5918f6d commit cddbf47
Show file tree
Hide file tree
Showing 85 changed files with 95 additions and 89 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
witch.iml
molwitch.iml
/target/

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 ncats
Copyright 2024 ncats

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--
~ NCATS-MOLWITCH
~
~ Copyright 2023 NIH/NCATS
~ Copyright 2024 NIH/NCATS
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand All @@ -24,7 +24,7 @@

<groupId>gov.nih.ncats</groupId>
<artifactId>molwitch</artifactId>
<version>0.6.6</version>
<version>0.6.7</version>

<name>ncats-molwitch</name>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/Atom.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/AtomCoordinates.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/Bond.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/BondTable.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/Chemical.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/ChemicalBuilder.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/ChemicalSource.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/Chirality.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/ElementData.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/FileSource.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/GraphInvariant.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/ImplUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/MolWitch.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/PathVisitor.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/SGroup.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/SmartsSource.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/SmilesSource.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/Stereocenter.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/gov/nih/ncats/molwitch/inchi/Inchi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -163,13 +163,13 @@ public static Chemical toChemical(String inchi) throws IOException{
}
Throwable throwable = null;
for(InchiImplFactory impl : implLoaders.get()) {

try {
Chemical result = impl.parseInchi(input);
if (result != null) {
return result;
}
}catch(Throwable t){
System.err.printf("Error running impl: %s\n", t.getMessage());
throwable = t;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/inchi/InchiKey.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gov/nih/ncats/molwitch/inchi/InchiUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* NCATS-MOLWITCH
*
* Copyright 2023 NIH/NCATS
* Copyright 2024 NIH/NCATS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit cddbf47

Please sign in to comment.