takaram / kofam_scan

CLI tool to annotate genes with KOfam
https://www.genome.jp/tools/kofamkoala/
MIT License
66 stars 11 forks source link

The exec_annotaion can run on the directory that it belong instead of other directory #23

Open honghh2018 opened 2 years ago

honghh2018 commented 2 years ago

Hi guy, Thank to develop the great tools for kegg annotation. But i was so confusion about the exec_annotation shell script, on account of the exec_annotation only can be run on the folder that it belong. if i hope execute it in other directory with the absolute path in exec_annotation, it was complaint about below error:

:1:in `require': cannot load such file -- rubygems.rb (LoadError) from :1:in `' I had try to modifed the exec_annotation with below code, although it was error like above: #!/usr/bin/env /Data/software/ruby-2.7.1/bin/ruby # frozen_string_literal: true #require_relative 'lib/kofam_scan' require_relative '/Data/software/kofam_scan-1.3.0/lib/kofam_scan' #require 'kofam_scan/cli' require '/Data/software/kofam_scan-1.3.0/lib/kofam_scan/cli' KofamScan::CLI.run(ARGV) What should i do for this issue? In addition, i want to exec it in everywhere by using the absolute path of exec_annotation. how can i configure it ? Best, Hanhuihong