# HG changeset patch # User Bjoern Gruening # Date 1370109784 -7200 # Node ID 7c84cfa515e015ab9072a6d981c12727597efaf3 # Parent 21d29a7f13d8c84abf7bec44fbd5c71ad26ff221 ChemicalToolBoX update. diff -r 21d29a7f13d8 -r 7c84cfa515e0 chemfp_clustering/butina_clustering.xml --- a/chemfp_clustering/butina_clustering.xml Fri May 31 22:31:45 2013 +0200 +++ b/chemfp_clustering/butina_clustering.xml Sat Jun 01 20:03:04 2013 +0200 @@ -1,4 +1,4 @@ - + of molecular fingerprints chemfp diff -r 21d29a7f13d8 -r 7c84cfa515e0 chemfp_clustering/nxn_clustering.py --- a/chemfp_clustering/nxn_clustering.py Fri May 31 22:31:45 2013 +0200 +++ b/chemfp_clustering/nxn_clustering.py Sat Jun 01 20:03:04 2013 +0200 @@ -12,6 +12,7 @@ import scipy.cluster.hierarchy as hcluster import pylab import numpy +import tempfile def distance_matrix(arena, tanimoto_threshold = 0.0): @@ -63,8 +64,13 @@ args = parser.parse_args() + # make sure that the file ending is fps + temp_file = tempfile.NamedTemporaryFile() + temp_link = "%s.%s" % (temp_file.name, 'fps') + temp_file.close() + os.symlink(args.input_path, temp_link) - arena = chemfp.load_fingerprints( args.input_path ) + arena = chemfp.load_fingerprints( temp_link ) distances = distance_matrix( arena, args.tanimoto_threshold ) linkage = hcluster.linkage( distances, method="single", metric="euclidean" ) diff -r 21d29a7f13d8 -r 7c84cfa515e0 chemfp_clustering/nxn_clustering.xml --- a/chemfp_clustering/nxn_clustering.xml Fri May 31 22:31:45 2013 +0200 +++ b/chemfp_clustering/nxn_clustering.xml Sat Jun 01 20:03:04 2013 +0200 @@ -1,10 +1,10 @@ - + of molecular fingerprints numpy chemfp matplotlib - scipy + scipy openbabel diff -r 21d29a7f13d8 -r 7c84cfa515e0 chemfp_sdf2fps/sdf2fps.xml --- a/chemfp_sdf2fps/sdf2fps.xml Fri May 31 22:31:45 2013 +0200 +++ b/chemfp_sdf2fps/sdf2fps.xml Sat Jun 01 20:03:04 2013 +0200 @@ -1,4 +1,4 @@ - + extract fingerprints from sdf files metadata diff -r 21d29a7f13d8 -r 7c84cfa515e0 tool_dependencies.xml --- a/tool_dependencies.xml Fri May 31 22:31:45 2013 +0200 +++ b/tool_dependencies.xml Sat Jun 01 20:03:04 2013 +0200 @@ -1,21 +1,21 @@ - + - + - + - + - + - + \ No newline at end of file