-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple-command.sh
executable file
·70 lines (49 loc) · 3.79 KB
/
simple-command.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!bin/bash
set -e
if [ -z "$1" ]
then
AWSACCESS=${AWS_ACCESS_KEY}
else
AWSACCESS=$1
fi
if [ -z "$2" ]
then
AWSSECRET=${AWS_SECRET_KEY}
else
AWSSECRET=$2
fi
if [ -z ${AWS_S3_BUCKET} ]
then
AWSBUCKET=agrjbrowse
else
AWSBUCKET=${AWS_S3_BUCKET}
fi
cd /jbrowse
wget http://zfin.org/downloads/E_antibody.gff3 2>&1; bin/flatfile-to-json.pl --gff E_antibody.gff3 --type protein_coding_gene --key "ZFIN Genes with Antibody Data" --trackType CanvasFeatures --trackLabel "ZFIN Genes with Antibody Data" --compress 2>&1
rm E_antibody.gff3
wget http://zfin.org/downloads/E_phenotype.gff3 2>&1; bin/flatfile-to-json.pl --gff E_phenotype.gff3 --type protein_coding_gene,lincRNA_gene,lncRNA_gene --key "ZFIN Genes with Phenotype" --trackType CanvasFeatures --trackLabel "ZFIN Genes with Phenotype" --compress 2>&1
rm E_phenotype.gff3
wget http://zfin.org/downloads/E_expression.gff3 2>&1; bin/flatfile-to-json.pl --gff E_expression.gff3 --type lincRNA_gene,protein_coding_gene,pseudogene --key "ZFIN Genes with Expression" --trackType CanvasFeatures --trackLabel "ZFIN Genes with Expression" --compress 2>&1
rm E_expression.gff3
wget http://zfin.org/downloads/zfin_genes.gff3 2>&1; bin/flatfile-to-json.pl --gff zfin_genes.gff3 --type gene,lincRNA_gene,lncRNA_gene,pseudogene,J_gene_segment --key "ZFIN Gene" --trackType CanvasFeatures --trackLabel "ZFIN Gene" --compress 2>&1
rm zfin_genes.gff3
wget http://zfin.org/downloads/zfin_tginsertion.gff3 2>&1; bin/flatfile-to-json.pl --gff zfin_tginsertion.gff3 --type Transgenic_insertion --key "Transgenic Insertion" --trackType CanvasFeatures --trackLabel "Transgenic Insertion" --compress 2>&1
rm zfin_tginsertion.gff3
wget http://zfin.org/downloads/E_full_zfin_clone.gff3 2>&1; bin/flatfile-to-json.pl --gff E_full_zfin_clone.gff3 --type contig,genomic_clone --key "Complete Assembly Clones" --trackType CanvasFeatures --trackLabel "Complete Assembly Clones" --compress 2>&1
rm E_full_zfin_clone.gff3
wget http://zfin.org/downloads/E_trim_zfin_clone.gff3 2>&1; bin/flatfile-to-json.pl --gff E_trim_zfin_clone.gff3 --type contig,tiling_path_clone --key "Assembly" --trackType CanvasFeatures --trackLabel "Assembly" --compress 2>&1
rm E_trim_zfin_clone.gff3
wget http://zfin.org/downloads/E_zfin_knockdown_reagents.gff3 2>&1; bin/flatfile-to-json.pl --gff E_zfin_knockdown_reagents.gff3 --type DNA_binding_site,morpholino_oligo,nuclease_binding_site --key "Knockdown Reagent" --trackType CanvasFeatures --trackLabel "Knockdown Reagent" --compress 2>&1
rm E_zfin_knockdown_reagents.gff3
wget http://zfin.org/downloads/additional_transcripts.gff3 2>&1; bin/flatfile-to-json.pl --gff additional_transcripts.gff3 --type V_gene_segment,C_gene_segment,D_gene_segment,J_gene_segment,lnc_RNA,miRNA,mRNA,ncRNA,pseudogenic_transcript,rRNA,scRNA,snoRNA,snRNA,tRNA,unconfirmed_transcript --key "Additional Transcripts" --trackType CanvasFeatures --trackLabel "Additional Transcripts" --compress 2>&1
rm additional_transcripts.gff3
wget http://zfin.org/downloads/zfin_zmp.gff3 2>&1; bin/flatfile-to-json.pl --gff zfin_zmp.gff3 --type sequence_alteration --key "Zebrafish Mutation Project" --trackType CanvasFeatures --trackLabel "Zebrafish Mutation Project" --compress 2>&1
rm zfin_zmp.gff3
wget http://zfin.org/downloads/zfin_mutants.gff3 2>&1; bin/flatfile-to-json.pl --gff zfin_mutants.gff3 --type sequence_alteration --key "ZFIN Features" --trackType CanvasFeatures --trackLabel "ZFIN Features" --compress 2>&1
rm zfin_mutants.gff3
echo "Running name indexer..."
bin/generate-names.pl --compress 2>&1
#the upload_to_S3.pl script is in the agr_jbrowse_config repo
#this command is run in a jbrowse directory
/agr_jbrowse_config/scripts/upload_to_S3.pl --bucket $AWSBUCKET --local data --remote MOD-jbrowses/zfin --skipseq --awsaccess $AWSACCESS --awssecret $AWSSECRET 2>&1
# s3://agrjbrowse/MOD-jbrowses/zfin/