-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prepare for v7.4 release * remove bazelversion restriction * fix c++ tests
- Loading branch information
Showing
784 changed files
with
156,130 additions
and
87,447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# frozen_string_literal: true | ||
|
||
# Alogp class for gfp_make | ||
|
||
require_relative 'lib/fp_common' | ||
|
||
# Class for Alogp fingerprints. | ||
class ALOGP | ||
attr_reader :description | ||
|
||
def initialize | ||
@rx = Regexp.new('^ALOGP') | ||
@description = 'AlogP fingerprint' | ||
@executable = 'alogp' | ||
end | ||
|
||
def match?(fp) # rubocop:disable Naming/MethodParameterName | ||
@rx.match?(fp) | ||
end | ||
|
||
def expand(fp, first_in_pipeline:, extra_qualifiers:) # rubocop:disable Naming/MethodParameterName | ||
m = /^ALOGP(\d+)*/.match(fp) | ||
raise "Unrecognized ALOGP fp form '#{fp}'" unless m | ||
|
||
cmd = FpCommon.initial_command_stem(@executable, first_in_pipeline: first_in_pipeline, | ||
extra_qualifiers: extra_qualifiers) | ||
replicates, atype, fixed = FpCommon.parse_fp_token(fp[5..]) | ||
|
||
# fixed is the default, and non colliding does not work with iwfp. | ||
cmd << ' -J NCALOGP -Y alcacid -Y RDKIT.N+ -Y quiet' | ||
cmd << " -p #{replicates}" if replicates | ||
cmd | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# frozen_string_literal: true | ||
|
||
# AP class for gfp_make | ||
|
||
require_relative 'lib/fp_common' | ||
|
||
# Atom pair class. | ||
class AP | ||
attr_reader :description | ||
|
||
def initialize | ||
@rx = Regexp.new('^M*AP') | ||
@description = 'Atom pair fingerprints' | ||
@executable = 'atom_pair_fingerprint' | ||
end | ||
|
||
def match?(fp) # rubocop:disable Naming/MethodParameterName | ||
@rx.match?(fp) | ||
end | ||
|
||
def expand(fp, first_in_pipeline:, extra_qualifiers:) # rubocop:disable Naming/MethodParameterName | ||
m = /^M*AP(\d+)*/.match(fp) | ||
raise "Unrecognized AP fp form '#{fp}'" unless m | ||
|
||
cmd = FpCommon.initial_command_stem(@executable, first_in_pipeline: first_in_pipeline, | ||
extra_qualifiers: extra_qualifiers) | ||
path_length, atype, fixed = FpCommon.parse_fp_token(fp.gsub(/^M*AP/, '')) | ||
$stderr << "path_length #{path_length} atype #{atype} fixed #{fixed}\n" | ||
|
||
if fp.match(/:fixed/) | ||
cmd << ' -J fixed -J FPAP' | ||
else | ||
cmd << ' -J NCAP' | ||
end | ||
cmd << "#{path_length} -R #{path_length}" if path_length | ||
cmd << " -P #{atype}" if atype | ||
cmd | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# CATS class for gfp_make | ||
|
||
require_relative 'lib/fp_common' | ||
|
||
# Class for CATS fingerprints. | ||
class CATS | ||
attr_reader :description | ||
|
||
def initialize | ||
@rx = Regexp.new('^CATSP*') | ||
@description = 'CATS pharmacaphore fingerprint' | ||
@executable = 'jwcats.sh' | ||
end | ||
|
||
def match?(fp) # rubocop:disable Naming/MethodParameterName | ||
@rx.match?(fp) | ||
end | ||
|
||
def expand(fp, first_in_pipeline:, extra_qualifiers:) # rubocop:disable Naming/MethodParameterName | ||
m = /^CATSP*(\d+)*/.match(fp) | ||
raise "Unrecognized CATS fp form '#{fp}'" unless m | ||
|
||
cmd = FpCommon.initial_command_stem(@executable, first_in_pipeline: first_in_pipeline, | ||
extra_qualifiers: extra_qualifiers) | ||
tag = "NCCATS" | ||
if /^CATSP(\d+)*/.match(fp) | ||
path_length, atype, fixed = FpCommon.parse_fp_token(fp[5..]) | ||
tag << 'P' | ||
cmd << ' -p' | ||
else | ||
path_length, atype, fixed = FpCommon.parse_fp_token(fp[4..]) | ||
end | ||
|
||
if path_length | ||
tag << path_length.to_s | ||
end | ||
|
||
cmd << " -J #{tag}" | ||
cmd << " -m #{path_length}" if path_length | ||
|
||
cmd | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# frozen_string_literal: true | ||
|
||
# iwdescr fingerprint class for gfp_make | ||
|
||
require_relative 'lib/fp_common' | ||
|
||
# Class for descriptor based fingerprints. | ||
class DSC | ||
attr_reader :description | ||
|
||
def initialize | ||
@rx = Regexp.new('^DSC') | ||
@description = 'Descriptor based fingerprint' | ||
@executable = 'iwdescr' | ||
end | ||
|
||
def match?(fp) # rubocop:disable Naming/MethodParameterName | ||
@rx.match?(fp) | ||
end | ||
|
||
def expand(fp, first_in_pipeline:, extra_qualifiers:) # rubocop:disable Naming/MethodParameterName | ||
m = /^DSC(\d+)*/.match(fp) | ||
raise "Unrecognized DSC fp form '#{fp}'" unless m | ||
|
||
cmd = FpCommon.initial_command_stem(@executable, first_in_pipeline: first_in_pipeline, | ||
extra_qualifiers: extra_qualifiers) | ||
# iwdescr already has a -f option that does something different. | ||
cmd = cmd.gsub(/-f/, '-G FILTER') unless first_in_pipeline | ||
cmd << ' -O dm -O complex' | ||
# TODO: ianwatson Figure out donor/acceptor things... | ||
cmd | ||
end | ||
end |
Oops, something went wrong.