-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy path0.2_bowtie_build_genome.sh
executable file
·22 lines (17 loc) · 1.33 KB
/
0.2_bowtie_build_genome.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#This should be flexible enough to get the commonly used genomes: human, mouse, fly, worm from ensembl, and have options to add genetic constructs that have been integrated into the system.
# Tallulah 07 April 2015 - added the option to just keep the GTF & Fasta files without running BOWTIE by setting the number of threads to 0 (for getting the genome & annotations for Cufflinks later).
# Tallulah 31 March 2015 - updated to check all 5/6 arguments (which are required) have been set.
# Tallulah 26 Mar 2015 Not so obvious whether it is more efficient to get genomes from internal ensembl mirror or to download from ensembl ftp website? -> since only doing this once per organism/experiment ftp/rsync is probably fine?
# All bits tested but not all at once
# Arguments:
# $1 = working directory on /lustre/
# $2 = striped genome directory on /lustre/
# $3 = number of threads to run on, # if 0 does not run star
# $4= readlength,
# $5 = organism [Hsap, Mmus, Dmel, Cele];
# $6 = directory with constructs to be added (optional)
FA=/lustre/scratch108/compgen/team218/TA/genomebuilding/Mus_musculus.GRCm38.dna.primary_assembly.fa
OUTDIR=/lustre/scratch108/compgen/team218/TA/STRIPED_GENOMES/bowtie2_build
BOWTIE=/nfs/users/nfs_t/ta6/RNASeqPipeline/software/bowtie2-2.2.6/bowtie2-build
echo "$BOWTIE --seed=10101 $FA $OUTDIR"