Skip to content

Commit aa9e0db

Browse files
committed
Fixed order of setting up trans_fasta annotation
1 parent aa5eab9 commit aa9e0db

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

setup_references_hg38.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mkdir -p ref
66
cd ref
77

88
gmap_refdir=$PWD
9-
commands="genome_fasta trans_fasta tx_annotation ann_info tx2gene gmap_refdir gmap_genome"
9+
commands="genome_fasta tx_annotation trans_fasta ann_info tx2gene gmap_refdir gmap_genome"
1010

1111
function genome_fasta_setup {
1212
file=hg38.fa
@@ -26,16 +26,6 @@ function genome_fasta_setup {
2626
fi
2727
}
2828

29-
function trans_fasta_setup {
30-
file=chess2.2.fa
31-
wget --no-check-certificate http://ccb.jhu.edu/software/stringtie/dl/gffread-0.11.6.Linux_x86_64.tar.gz
32-
tar -xvzf gffread-0.11.6.Linux_x86_64.tar.gz && rm gffread-0.11.6.Linux_x86_64.tar.gz
33-
gffread-0.11.6.Linux_x86_64/gffread chess2.2.gtf -g hg38.fa -w $file
34-
if [ -s $file ]; then
35-
echo -e "$PWD/$file" > trans_fasta.success
36-
fi
37-
}
38-
3929
function tx_annotation_setup {
4030
file=chess2.2.gtf
4131
wget http://ccb.jhu.edu/chess/data/${file}.gz
@@ -47,6 +37,16 @@ function tx_annotation_setup {
4737
fi
4838
}
4939

40+
function trans_fasta_setup {
41+
file=chess2.2.fa
42+
wget --no-check-certificate http://ccb.jhu.edu/software/stringtie/dl/gffread-0.11.6.Linux_x86_64.tar.gz
43+
tar -xvzf gffread-0.11.6.Linux_x86_64.tar.gz && rm gffread-0.11.6.Linux_x86_64.tar.gz
44+
gffread-0.11.6.Linux_x86_64/gffread chess2.2.gtf -g hg38.fa -w $file
45+
if [ -s $file ]; then
46+
echo -e "$PWD/$file" > trans_fasta.success
47+
fi
48+
}
49+
5050
function ann_info_setup {
5151
file=chess2.2.info
5252
python ../util/make_exon_reference.py chess2.2.gtf

0 commit comments

Comments
 (0)