cp-r /dev/shm/*${temp}&&echo"brought the reads home"||echo"cannot bring home the reads"&&exit 1
exit 1
};export-f recoverTemp
...
...
@@ -58,7 +58,11 @@ else export threadCount="48" && ssec "defaulting to threadcount = 48"; fi
# check that modules, including picard, are available
module load samtools bedtools parallel java || die "cannot load one or more modules"# load module in a Gadi-specific manner
[-n"${SCRIPTPATH+set}"]||SCRIPTPATH="$(cd"$(dirname"$0")">/dev/null 2>&1 ;pwd-P)"|| die "cannot get script path";export SCRIPTPATH="${SCRIPTPATH}"# get the script path # taken from https://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
ssec "Output for already exists and was last modified at ${mergedWhippetFileModDate} --- Returning"
whippetStatus=1
fi
[${whippetStatus}-eq"1"]&&return 0
# ask whippet to make an index while recognizing splice junctions from our bam
# check we have a bamfile
[-f"${matureSamMerge}/unique.sorted.merged.bam"]|| die "could not find cytoplasmicBam for whippet index"
...
...
@@ -335,7 +354,7 @@ function makeWhippetIndex() {
cd${wptIdx}|| die "cannot access whippet index directory"
rm-rf${wptIdx}/*# clear the index
ssec "launching whippet"
julia ${whippetPath}/whippet-index.jl --fasta"${myFasta}"--bam"${matureSamMerge}/unique.sorted.merged.bam"--gtf"${myAnnotation}"--bam-min-reads 3 --index"${od}/whippetIndex/index_"|| die "canot make whippet index"
julia ${whippetPath}/whippet-index.jl --fasta"${myFasta}"--bam"${matureSamMerge}/unique.sorted.merged.bam"--gtf"${myAnnotation}"--bam-min-reads 3 --index"${od}/whippetIndex/index_mature"|| die "canot make whippet index"
ssec "succesfully build whippet index"
}
...
...
@@ -357,12 +376,20 @@ function generateSequence() {
bamNameTemp=${bam##*/}# trim bam path to filename only