lib/WingenderTFClass/motif_family_recognizer.rb in WingenderTFClass-0.1.0 vs lib/WingenderTFClass/motif_family_recognizer.rb in WingenderTFClass-0.1.1
- old
+ new
@@ -1,17 +1,9 @@
+require_relative 'local_paths'
require_relative 'obo/tf_classification'
require_relative 'uniprot_info'
module WingenderTFClass
- module FilePaths
- TFOntologyHuman = File.absolute_path('source_data/TFOntologies/TFClass_human.obo', __dir__)
- TFOntologyMouse = File.absolute_path('source_data/TFOntologies/TFClass_mouse.obo', __dir__)
-
- UniprotHuman = File.absolute_path('source_data/uniprot_infos/human.tsv', __dir__)
- UniprotMouse = File.absolute_path('source_data/uniprot_infos/mouse.tsv', __dir__)
- end
-
-
module ProteinFamilyRecognizers
def self.by_uniprot_id(deepness:, tf_classification_filename:, uniprot_infos_filename:)
tf_classification = OBO::TFClassification.from_file(tf_classification_filename)
ByUniprotID.new(
ByUniprotAC.new(tf_classification, deepness),