Skip to content

Commit

Permalink
Fixed order of setting up trans_fasta annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmero committed Sep 28, 2021
1 parent aa5eab9 commit aa9e0db
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions setup_references_hg38.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mkdir -p ref
cd ref

gmap_refdir=$PWD
commands="genome_fasta trans_fasta tx_annotation ann_info tx2gene gmap_refdir gmap_genome"
commands="genome_fasta tx_annotation trans_fasta ann_info tx2gene gmap_refdir gmap_genome"

function genome_fasta_setup {
file=hg38.fa
Expand All @@ -26,16 +26,6 @@ function genome_fasta_setup {
fi
}

function trans_fasta_setup {
file=chess2.2.fa
wget --no-check-certificate http://ccb.jhu.edu/software/stringtie/dl/gffread-0.11.6.Linux_x86_64.tar.gz
tar -xvzf gffread-0.11.6.Linux_x86_64.tar.gz && rm gffread-0.11.6.Linux_x86_64.tar.gz
gffread-0.11.6.Linux_x86_64/gffread chess2.2.gtf -g hg38.fa -w $file
if [ -s $file ]; then
echo -e "$PWD/$file" > trans_fasta.success
fi
}

function tx_annotation_setup {
file=chess2.2.gtf
wget http://ccb.jhu.edu/chess/data/${file}.gz
Expand All @@ -47,6 +37,16 @@ function tx_annotation_setup {
fi
}

function trans_fasta_setup {
file=chess2.2.fa
wget --no-check-certificate http://ccb.jhu.edu/software/stringtie/dl/gffread-0.11.6.Linux_x86_64.tar.gz
tar -xvzf gffread-0.11.6.Linux_x86_64.tar.gz && rm gffread-0.11.6.Linux_x86_64.tar.gz
gffread-0.11.6.Linux_x86_64/gffread chess2.2.gtf -g hg38.fa -w $file
if [ -s $file ]; then
echo -e "$PWD/$file" > trans_fasta.success
fi
}

function ann_info_setup {
file=chess2.2.info
python ../util/make_exon_reference.py chess2.2.gtf
Expand Down

0 comments on commit aa9e0db

Please sign in to comment.