-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add jba executable to your Path #97
Comments
You don't have to clone the package if you are installing via If you want to use the package from within R, you'll need to first import the package to the R session using Regarding step four, you can append these lines:
to your |
Hello @shihabdider Thank you for your quick response. I am able to import the package to the R session using library("JaBbA"). However, I do have a test command to test this library. I aim to run jba executable in command line, use the test case described in step 5. $ which Rscript I replaced the above LibPath to be the R package location $HOME/JaBbA/R-pkgs, received the same error message. Thank you for help. |
OK you can try to set the If you want to test
Alternatively, if you're still having issues, you can try to load the package manually through the repo. To do this:
You should now be able to run JaBbA through the |
Hello @shihabdider: I tried both methods, unfortunately, both are not working. first method:
Second method: Go to /tmp directory, git clone code; cd to the cloned repo
I am not sure if this is just my test ends up this ... Thank you for your help. |
I was able to reproduce this error and am still working on debugging it. In the meantime, you can try using our recently released pipeline which starts from BAMs or FASTQs and runs all the way to the JaBbA output. Every tool in the pipeline is containerized so there should no issues with package installation. If you'd prefer to run JaBbA by itself, I recommend to try using our docker container instead. Note: you will need to add/install cplex to the container, the instructions are given here. |
For the test case try running the following code (taken from
|
@shihabdider Thank you for your patience to support! I tried the above test for two R versions. With JaBbA loaded successfully on both R sessions. Test on R/4.1.0, hit the error message: in R/4.3.1, hit the error message The source code was check out by The site I refer to is https://github.com/mskilab-org/JaBbA/ master branch. Thank you for help. |
Unfortunately, I'm not able to reproduce either error on my machine. To eliminate versioning as a cause of the issue, could you please run the test using R 4.0.2? You can download it here. |
Hello- thanks for the tool. I am facing the same problem. In R 4.0.2, The error in R 4.3.0 was the same as #94, so I tried using the segmentation file and got the same error as above. |
Hi, I was able to replicate your error and my best guess is that it is caused by an outdated |
As a follow up, the latest commit of gTrack should address both errors you experience. Please let us know if you still see the same error. |
Dear JaBbA authors:
I followed https://github.com/mskilab-org/JaBbA/tree/master to install JaBbA on R/4.1.0 on RHEL 7 server.
Section Installation from GitHub, I have trouble to understand step 4
4. For convenience, add jba executable to your PATH
the instruction is :
$ JABBA_PATH=$(Rscript -e 'cat(paste0(installed.packages()["JaBbA", "LibPath"], "/JaBbA/extdata/"))')
$ export PATH=${PATH}:${JABBA_PATH}
$ jba ## to see usage
The following is my installation:
1, check out JaBbA under $HOME https://github.com/mskilab-org/JaBbA.git
-- this creates JaBbA directory under $HOME (below /rsrch3/home/itops/ryao/), with the following contents:
codecov.yml configure configure.ac DESCRIPTION inst jba LICENSE NAMESPACE old.travis.yml R README.md R-pkgs rtdocs srcs tests
2, Installed all R package by devtools::install_github('mskilab/JaBbA') under $HOME/JaBbA/R-pkgs
-- this step is not straightforward. including many troubleshooting remove and reinstall packages.
3, there are 146 packages installed under $HOME/JaBbA/R-pkgs, including JaBbA, it has the following contents:
CITATION cmd.args cmd.args.rds DESCRIPTION extdata help html libs LICENSE Meta NAMESPACE R
4, I try a test run jba executable on provided toy data:
/rsrch3/home/itops/ryao/JaBbA/jba /rsrch3/home/itops/ryao/JaBbA/R-pkgs/JaBbA/extdata/junctions.vcf /rsrch3/home/itops/ryao/JaBbA/R-pkgs/JaBbA/extdata/coverage.txt
Did not find hets file setting to NULL
Did not find nseg file setting to NULL
(___ ) (
\ ( ) ( _ ) | | _ _ | (_) )| |_ | (_) | _ | | /'_
)| _ <'| '\ | _ | ( )_| |( (_| || (_) )| |_) )| | | |
_/'`_,)(___/'(,/'() ()(Junction Balance Analysis)
JaBbA 2023-11-09 11:56:16: Located junction file /rsrch3/home/itops/ryao/JaBbA/R-pkgs/JaBbA/extdata/junctions.vcf
JaBbA 2023-11-09 11:56:16: Located coverage file /rsrch3/home/itops/ryao/JaBbA/R-pkgs/JaBbA/extdata/coverage.txt
JaBbA 2023-11-09 11:56:16: Loading packages ...
Error in JaBbA(junctions = opt$junctions, coverage = opt$coverage, juncs.uf = opt$j.supp, :
could not find function "JaBbA"
Calls: suppressPackageStartupMessages -> withCallingHandlers
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘JaBbA’
Execution halted
Referring to JABBA_PATH=$(Rscript -e 'cat(paste0(installed.packages()["JaBbA", "LibPath"], "/JaBbA/extdata/"))')
I guess my question is how do I specify JABBA_PATH in step 4 in order to find customized R-pkgs?
Thank you for your help.
Rong Yao
The text was updated successfully, but these errors were encountered: