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

unable to call "samtools" #14

Open
ehjChun opened this issue Aug 24, 2021 · 2 comments
Open

unable to call "samtools" #14

ehjChun opened this issue Aug 24, 2021 · 2 comments

Comments

@ehjChun
Copy link

ehjChun commented Aug 24, 2021

Hello,

I am trying to run fragCounter to generate one of the required input files for JaBbA, i.e. coverage.txt.
I was able to install it successfully (I think), and tried to run it on your test data:
> ./bin/fragCounter-master/frag -b ./bin/fragCounter-master/inst/extdata/chr21.bam -d ./bin/fragCounter-master/inst/extdata/gcMAP21/ -w 200

One of the output messages was the following, which indicates that it cannot call the samtools:

Calling samtools view  -f 0x02 -F 0x10 ./bin/fragCounter-master/inst/extdata/chr21.bam -q 1 | cut -f "3,4,9"
sh: samtools: command not found

My samtools has indeed been installed, and is aliased in my bashrc file as below:

> which samtools
alias samtools='/user/bin/linux-x86_64/samtools-0.1.17/samtools'
	/user/bin/linux-x86_64/samtools-0.1.17/samtools

Would you be able to tell me what I need to do (e.g. modify in your code) in order for fragCounter to recognize my samtools executable?

Thanks very much for your help.

@mskilab
Copy link
Collaborator

mskilab commented Aug 24, 2021 via email

@ehjChun
Copy link
Author

ehjChun commented Aug 24, 2021

Ah, that indeed solved the problem - Thank you!

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

2 participants