| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | usagescip-shell shell bbmap 39.20+dfsg-3 usage().(){ |
| 4 | echoscip-shell system . . echo. " |
| 5 | Written by Brian Bushnell |
| 6 | Last modified August 13, 2019 |
| 7 | |
| 8 | Description: Generates a GFF3 from a VCF. |
| 9 | |
| 10 | Usage: vcf2gff.sh in=<vcf file> out=<gff file> |
| 11 | |
| 12 | Parameters: |
| 13 | in=<file> Input VCF file. |
| 14 | out=<file> Output GFF file. |
| 15 | " |
| 16 | } |
| 17 | |
| 18 | #This block allows symlinked shellscripts to correctly set classpath. |
| 19 | pushd . > /dev/nullscip-shell filesystem . . `/dev/null`. |
| 20 | DIR="${BASH_SOURCE[0]}" |
| 21 | while [scip-shell system . . `[`. -h "$DIR" ]; do |
| 22 | cd "$(dirnamescip-shell system . . dirname. "$DIR")" |
| 23 | DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")" |
| 24 | done |
| 25 | cd "$(dirnamescip-shell system . . dirname. "$DIR")" |
| 26 | DIR="$(pwdscip-shell system . . pwd.)/" |
| 27 | popd > /dev/nullscip-shell filesystem . . `/dev/null`. |
| 28 | |
| 29 | #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" |
| 30 | CP="$DIR""current/" |
| 31 | |
| 32 | z="-Xmx200m" |
| 33 | set=0 |
| 34 | |
| 35 | if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then |
| 36 | usagescip-shell shell bbmap 39.20+dfsg-3 usage(). |
| 37 | exit |
| 38 | fi |
| 39 | |
| 40 | calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () { |
| 41 | source "$DIR""/calcmem.sh" |
| 42 | setEnvironment |
| 43 | parseXmx "$@" |
| 44 | } |
| 45 | calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@" |
| 46 | |
| 47 | gffscip-shell shell bbmap 39.20+dfsg-3 gff().() { |
| 48 | local CMD="java $EA $EOOM $z -cp $CP gff.GffLine $@" |
| 49 | # echo $CMD >&2 |
| 50 | eval $CMD |
| 51 | } |
| 52 | |
| 53 | gffscip-shell shell bbmap 39.20+dfsg-3 gff(). "$@" |