Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
process_scripts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
NGS CLIA Lab
process_scripts
Commits
1f6c3efe
Commit
1f6c3efe
authored
6 years ago
by
Jonathan Gesell
Browse files
Options
Downloads
Patches
Plain Diff
Created branch and added the automated reference generator process to the programs
parent
7adcb10c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!4
Created branch and added the automated reference generator process to the programs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate_reference.sh
+49
-0
49 additions, 0 deletions
generate_reference.sh
with
49 additions
and
0 deletions
generate_reference.sh
0 → 100644
+
49
−
0
View file @
1f6c3efe
#!/bin/bash
#SBATCH --job-name=PrepareGenome
#SBATCH --partition=super
#SBATCH --output=build_chromesizes.%j.out
#SBATCH --error=build_chromesizes.%j.err
#SBATCH --mail-user=${USER}@utsouthwestern.edu
#SBATCH --mail-type=ALL
#Program to create the genomes for use in our standard pipelines. Assumes that you have already downloaded the GTF and dna.toplevel.fa files
#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 &
wait
;
#Load and run BWA to build index
module load BWA/0.7.5
;
bwa index
-a
bwtsw genome.fa
;
module
rm
BWA/0.7.5
;
#Run Hisat 2
module load hisat2/2.1.0-intel
;
mkdir
hisat_index
;
hisat2-build
-p
${
THREADS
}
genome.fa hisat_index/genome
;
module
rm
hisat2/2.1.0-intel
;
#Run Star
module load star
;
mkdir
star_index
;
STAR
--runMode
genomeGenerate
--genomeDir
star_index
--genomeFastaFiles
genome.fa
--sjdbGTFfile
gencode.gtf
--runThreadN
${
THREADS
}
;
rm
-rf
_STARtmp
;
module
rm
star/2.5.2b
;
#Get genoome sizes
module load samtools/gcc/1.6
;
samtools faidx genome.fa
&&
cut
-f1
,2 genome.fa.fai
>
sizes.genome
&&
module
rm
samtools/gcc/1.6 &
#Wait and build Bowtie2 Index
wait
;
module load bowtie2/2.2.8-intel
;
bowtie2-build
-f
genome.fa genome
;
#Exit
exit
0
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment