Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having bin in installation path #172

Open
jbh-cas opened this issue Jan 7, 2025 · 1 comment
Open

Having bin in installation path #172

jbh-cas opened this issue Jan 7, 2025 · 1 comment

Comments

@jbh-cas
Copy link

jbh-cas commented Jan 7, 2025

We employ the conda -p option to install programs for several of us to use instead of installation in a user conda env directory. The directory in which we install is named /ccg/bin and this causes a couple of problems.

This bin in the directory path before the bin directory in the earlGrey install is replaced by the sed commands in the getRepeatMaskerFasta bash function.

Modifying them in the following way seems to work without loss of generality, original lines 91 and 96 in the earlGrey file commented:

        if [[ $(which RepeatMasker) == *"bin"* ]]; then
#               libpath="$(which RepeatMasker | sed 's|bin.*|share/RepeatMasker/Libraries/RepeatMaskerLib.h5|g')"
                libpath="$(which RepeatMasker | sed 's|bin/RepeatMasker|share/RepeatMasker/Libraries/RepeatMaskerLib.h5|')"
        else
                libpath="$(which RepeatMasker | sed 's|/[^/]*$||g')/Libraries/RepeatMaskerLib.h5"
        fi
        if [[ $(which RepeatMasker) == *"bin"* ]]; then
#               PATH=$PATH:"$(which RepeatMasker | sed 's|bin.*|share/RepeatMasker/|g')"
                PATH=$PATH:"$(which RepeatMasker | sed 's|bin/RepeatMasker|share/RepeatMasker/|')"
        fi

The same lines occur in earlGreyLibConstruct too.

Thanks for the program. Looking forward to seeing it results on a couple of Squamata genomes.

best,
Jim Henderson

@jbh-cas
Copy link
Author

jbh-cas commented Jan 10, 2025

With the above sed line changes and copying the .pm files from the install share/RepeatMasker dir to the install bin/ dir, things ran to completion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant