Below is an outline of the steps I followed to create the Oryzias latipes Quickload:
1. Use wget to obtain the .2bit file from the UCSC Genome Bioinformatics website, then rename it
brew install wget
wget https:mv GCF_002234675.1.2bit O_latipes_Jul_2017.2bit
2. Create genome.txt
./twoBitInfo O_latipes_Jul_2017.2bit genome.txt
3. Use Oryzias latipes' taxID (8090) to get the information we need from gene2accession.gz and gene_info.gz to create the BED14 file in a later step
gunzip -c gene2accession.gz | grep '^8090\t' > 8090.gene2accession.txt
gunzip -c gene_info.gz | grep '^8090\t' > 8090.gene_info.txt
4. Set up Python2 (if not already done so) in order to run the script in the next step
brew install pyenv
pyenv install 2.7.18
In your .bash_profile (or zshell/zshrc) add the following:
##Set path for pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
Then run this:
5. Download the BED file from UCSC's table browser (Link: https://genome.ucsc.edu/cgi-bin/hgTables), then create the BED14 file using the following code:
cd ~/Documents/Repos/genomesource
./ucscToBedDetail.py -a ~/Downloads/8090.gene2accession.txt -g ~/Downloads/8090.gene_info.txt ~/Downloads/O_latipes_refGene.bed.gz ~/Downloads/O_latipes_Jul_2017_refGene.bed
6. Sort, gzip, and tabix the BED14 file
cd ~/Downloads/
sort -k1,1 -k2,2n O_latipes_Jul_2017_refGene.bed | bgzip > O_latipes_Jul_2017_refGene.bed.gz
tabix -0 -s 1 -b 2 -e 3 O_latipes_Jul_2017_refGene.bed.gz
7. Sanity check the .bed and .2bit files - Add the .2bit file as a reference, then drag/drop the .bed file into IGB. Confirm that gene models are present, labeled correctly, and the chromosomes listed are in a logical order. Also check that no error messages are present in the Log.
8. Create annots.xml, add O_latipes_Jul_2017 to contents.txt and .htaccess, and create HEADER.md
cd ~/Documents/Repos/quickload
svn mkdir O_latipes_Jul_2017
svn cp H_vulgaris_Apr_2024/annots.xml O_latipes_Jul_2017
nano O_latipes_Jul_2017/annots.xml
nano contents.txt
nano .htaccess
../genomesource/writeQuickLoadHeaderUCSC.py O_latipes_Jul_2017 > O_latipes_Jul_2017/HEADER.md
Tested following instructions above. Everything looks good.
Closing ticket.