| 1 | [[PageOutline]] |
| 2 | = Installing and Setup WGSA in a local directory on Cypress = |
| 3 | Decide a folder dedicated for the pipeline, for example '/lustre/project/group/WGSA'. |
| 4 | |
| 5 | Setup an environment variable and create workspaces as |
| 6 | {{{ |
| 7 | export $WGSA_DIR=/lustre/project/group/WGSA |
| 8 | mkdir $WGSA_DIR |
| 9 | cd $WGSA_DIR |
| 10 | mkdir work |
| 11 | mkdir tmp |
| 12 | chmod 777 work |
| 13 | chmod 777 tmp |
| 14 | }}} |
| 15 | |
| 16 | Create a space for ANNOVAR, |
| 17 | |
| 18 | {{{ |
| 19 | mkdir $WGSA_DIR/annovar |
| 20 | }}} |
| 21 | |
| 22 | |
| 23 | Download the ANNOVAR main package from [http://download.openbioinformatics.org/annovar_download_form.php here]. |
| 24 | The package comes as annovar.latest.tar.gz, save it to $WGSA_DIR/annovar. Unzip it. |
| 25 | |
| 26 | |
| 27 | {{{ |
| 28 | cd $WGSA_DIR/annovar |
| 29 | tar -zxvf annovar.latest.tar.gz |
| 30 | }}} |
| 31 | |
| 32 | Download !RefSeq and !Ensembl gene models for ANNOVAR: |
| 33 | |
| 34 | {{{ |
| 35 | cd $WGSA_DIR/annovar/annovar |
| 36 | perl annotate_variation.pl -buildver hg19 -downdb -webfrom annovar refGene humandb/ |
| 37 | perl annotate_variation.pl -buildver hg19 -downdb -webfrom annovar ensGene humandb/ |
| 38 | perl annotate_variation.pl -buildver hg19 -downdb -webfrom annovar knownGene humandb/ |
| 39 | perl annotate_variation.pl -buildver hg38 -downdb -webfrom annovar refGene humandb/ |
| 40 | perl annotate_variation.pl -buildver hg38 -downdb -webfrom annovar ensGene humandb/ |
| 41 | perl annotate_variation.pl -buildver hg38 -downdb -webfrom annovar knownGene humandb/ |
| 42 | }}} |
| 43 | |
| 44 | Install !SnpEff (required for annotating indels with !SnpEff or annotating SNVs with !SnpEff on-the-fly) |
| 45 | Download !SnpEff v4.3t main package and save the zip file to $WGSA_DIR/snpeff: |
| 46 | |
| 47 | {{{ |
| 48 | mkdir $WGSA_DIR/snpeff |
| 49 | cd $WGSA_DIR/snpeff |
| 50 | wget http://sourceforge.net/projects/snpeff/files/snpEff_v4_3t_core.zip |
| 51 | unzip snpEff_v4_3t_core.zip |
| 52 | }}} |
| 53 | |
| 54 | Now you need a newer version of JavaSDK, to use it, you have to do on a computing node. |
| 55 | |
| 56 | Start a interactive session: |
| 57 | |
| 58 | {{{ |
| 59 | idev |
| 60 | }}} |
| 61 | |
| 62 | See [https://wiki.hpc.tulane.edu/trac/wiki/Workshops/IntroToHpc2015/using#SubmittingInteractiveJobs here] for more about 'idev'. |
| 63 | |
| 64 | Once you get to a computing node, make sure your corrent directory is $WGSA_DIR/snpeff |
| 65 | |
| 66 | Download !RefSeq and !Ensembl gene models for !SnpEff: |
| 67 | |
| 68 | {{{ |
| 69 | cd snpEff |
| 70 | java -jar snpEff.jar download -v hg19 |
| 71 | java -jar snpEff.jar download -v GRCh37.75 |
| 72 | java -jar snpEff.jar download -v hg38 |
| 73 | java -jar snpEff.jar download -v GRCh38.86 |
| 74 | }}} |
| 75 | |
| 76 | Exit from the computing node: |
| 77 | |
| 78 | {{{ |
| 79 | exit |
| 80 | }}} |
| 81 | |
| 82 | Install VEP (required for annotating indels with VEP or annotating SNVs with VEP on-the-fly) |
| 83 | |
| 84 | Download VEP 94 main package and save it to $WGSA_DIR/vep: |
| 85 | |
| 86 | {{{ |
| 87 | mkdir $WGSA_DIR/vep |
| 88 | cd $WGSA_DIR/vep |
| 89 | wget https://github.com/Ensembl/ensembl-vep/archive/release/94.zip |
| 90 | unzip 94.zip |
| 91 | }}} |
| 92 | |
| 93 | |