Skip to content
Snippets Groups Projects
Commit 63d9ea90 authored by Holger Brandl's avatar Holger Brandl
Browse files

added warning if index already existis

parent 0cebbcb3
No related branches found
No related tags found
No related merge requests found
......@@ -414,6 +414,12 @@ dge_create_star_index(){
fi
export star_index="${igenome}/Sequence/StarIndex"
## stop if index exists already
if [ -d "$star_index" ]; then
echo "Error: Index directory ${star_index} already exists." >&2 ; return;
fi
chmod +w $(dirname ${star_index})
mailme "${project}: creating STAR index in ${star_index}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment