I unpacked Samtools in Ubuntu using apt install make.
The directory is listed below and includes folders and files.
There is no index function.
I have bam file and am trying to make bai file, not sure what to do next?
I unpacked Samtools in Ubuntu using apt install make.
The directory is listed below and includes folders and files.
There is no index function.
I have bam file and am trying to make bai file, not sure what to do next?
There is a ready-made package for samtools, simply do
apt install samtools
Also, your screenshot shows you are using the root account. You should not do that, especially if you are not very sure about the commands you are issuing or are copy-pasting commands from the internet into your console. After you installed the package, the samtools index
command will be available for a normal user on the machine.
Thanks for comment on root. This is ubuntu running in windows and I had not yet set a user account (and added to sudoers) The error I get is "Unable to locate samtools package" After unpacking samtools-1.18.tar.bz2 I did not see a samtools package. Maybe I am starting in the wrong place? Where can I find that package?
I didn't know you were using WSL. Possibly the damage you can do with that is limited to the WSL environment and the worst thing that can happen is that you need to re-install Ubuntu. Still, it is a good idea not to work as root to get good habits. Also, I am trying not to include the sudo
part in the commands I give as examples, because users should make the decision themselves as to which privileges a command requires and whether to add the sudo or not.
See https://security.stackexchange.com/questions/113627/what-is-the-risk-of-copy-and-pasting-linux-commands-from-a-website-how-can-some and an example: https://thejh.net/misc/website-terminal-copy-paste
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
samtools index ran but returned
samtools index: failed to create or write index
I will look for solution to that
Progress made!!!
That's a tarball of the C source code you've just unpacked.
There's an "INSTALL" file with detailed instructions of how to compile the software, listing all the prerequisites needed.
If you don't want to compile it from source, just use the Ubuntu prebuilt package.