#Program to create the genomes for use in our standard pipelines. Assumes that you have already downloaded the GTF and dna.toplevel.fa files
#Program to create the genomes for use in our standard pipelines. Assumes that you have already downloaded the GTF or GFF3 and dna.toplevel.fa files, both gzip compressed. These should be the only two files in the run directory at launch.
#Setup universal variables
DIRECTORY=`pwd-P`;
THREADS=`nproc--all`;
#Create the required genome and gencode files
zcat *.dna.toplevel.fa.gz > genome.fa &
zcat *.gtf.gz > gencode.gtf &
#Checks to see if the files are already present
if[!-f genome.fa ];
then if[`ls*.dna.toplevel.fa.gz | wc-l`-lt 1 ];
then echo-e"Error: unable to locat genome files! Please download the dna.toplevel.fa.gz file from Ensembl.org and place it in this directory!";
exit 1;
else zcat *.dna.toplevel.fa.gz > genome.fa &
fi;
fi;
if[!-f gencode.gtf ];
then if[`ls*.gtf.gz | wc-l`-lt 1 ];
then if[`ls*.gff3.gz | wc-l`-lt 1 ];
then echo-e"Error: Unable to load a suitable gff3 or gtf gzipped file for annotations. Please download either the *.gtf.gz or *.gff3.gz file from Ensembl.org!";