Dear UCSC,
I had a question about what I should do in the case of a bigBedToBed executable file not running as well as a question about how I can feed in some sort of file into the bigBedToBed syntax containing information on chromosome number and position to see if there are recognized SNPs at that location.
For the first question, I tried using bigBedToBed to look at certain regions of chromosomes that might have various SNPs since you suggested not to download the whole file of SNPs across the genome due to the huge size and the risk it might truncate. I was able to click on the MacOS button and find the bigBedToBed file, download that, and turn the file into an executable as stated below…
http://hgdownload.soe.ucsc.edu/downloads.html#utilities_downloads

Here is an image of the executable file on my Desktop:

However, when I went to run the following command to test it out, the error message said that the command was not found…
https://genome.ucsc.edu/FAQ/FAQdownloads.html#snp

As for the second question, based on the above line of code is there a way to write it so that I can use a .txt file or a related file to search for multiple chromosome locations using the address in the code? I have a .txt file already that has chromosome number in one column and position in the other. I just want to check the database to see if these entries are SNPs or something other than a SNP.
Thanks,
Serena
Ph.D. Graduate Student
UMass Chan Medical School
Hello,
Thank you for using the UCSC Genome Browser and sending your inquiry.
Your problem is that the bigBedToBed utility is not defined in your PATH variable, so your system cannot find the program. If the directory containing the bigBedToBed utility is not defined inside of your PATH variable, you will have to specify the location of the tool before your system can run the program. You can learn more about the PATH variable for your Mac on the following StackOverflow post:
https://stackoverflow.com/questions/22465332/setting-path-environment-variable-in-osx-permanently
If your current working directory contains the bigBedToBed utility, then you can execute the utility by running the command with "./" appended to the name:
If the bigBedToBed utility is in a different directory, you must use the full path to the directory containing the bigBedToBed program.
For your second question, you must create a script to iterate through your file and parse the chromosome, start, and end values from your file. For example, the following bash command will iterate through a file named "coordinates.txt" and run the bigBedToBed command:
The command above assumes that the bigBedToBed utility and coordinates.txt are in the same working directory. If you require help creating scripts for your research, you may be interested in posting your question to other bioinformatic forums, such as BioStars (https://www.biostars.org/).
I hope this is helpful. If you have any further questions, please reply to gen...@soe.ucsc.edu.
All messages sent to that address are archived on a publicly accessible Google Groups forum.
If your question includes sensitive data, you may send it instead to genom...@soe.ucsc.edu.
Jairo Navarro
UCSC Genome Browser
--
---
You received this message because you are subscribed to the Google Groups "UCSC Genome Browser Public Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genome+un...@soe.ucsc.edu.
To view this discussion on the web visit https://groups.google.com/a/soe.ucsc.edu/d/msgid/genome/MN2PR10MB422205851E94D140D7638C6CDAC2A%40MN2PR10MB4222.namprd10.prod.outlook.com.