Mercurial > repos > jbrayet > peaks2bed_1_0_docker
view peaks2bed.sh @ 4:097e461dd5a0 draft default tip
Uploaded
| author | jbrayet |
|---|---|
| date | Tue, 09 Feb 2016 10:52:25 -0500 |
| parents | 3c5fd076f42b |
| children |
line wrap: on
line source
#!/bin/bash while getopts "f:t:o:g:n:r:" optionName; do case "$optionName" in f) inputfile="$OPTARG";; t) minHeight="$OPTARG";; o) output="$OPTARG";; g) BUILD="$OPTARG";; n) nameBed="$OPTARG";; r) ROOT_DIR="$OPTARG";; esac done local_path=/usr/bin/peakstobed DATABASE_PATH=$ROOT_DIR/database/files mkdir -p $DATABASE_PATH/nebulaAnnotations mkdir -p $DATABASE_PATH/nebulaAnnotations/$BUILD nebulaAnnotationPath=$DATABASE_PATH/nebulaAnnotations nebulaGenomePath=$DATABASE_PATH/nebulaAnnotations/$BUILD ############### Create annotations files ################ FAIFILE='n' LENFILE='n' DICTFILE='n' CHROFILE='n' MAPFILE='n' if [ ! -f $nebulaGenomePath/$BUILD.len ]; then FAIFILE='y' LENFILE='y' fi chrom_info_file=$nebulaGenomePath/$BUILD.len FILEPATH=$ROOT_DIR/tool-data bash /usr/bin/create_annotation_files.sh $FAIFILE $LENFILE $DICTFILE $CHROFILE $FILEPATH $BUILD $MAPFILE $nebulaGenomePath #################### END ANNOTATION FILES ########################### perl $local_path/peaks2bed.pl -f $inputfile -t $minHeight -o $output -g $chrom_info_file -n $nameBed
