Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robin Erich Muench
metaSNV
Commits
57049711
Commit
57049711
authored
Jan 05, 2017
by
Robin Erich Muench
Browse files
Delete NewProject.sh
parent
859f6b02
Changes
1
Hide whitespace changes
Inline
Side-by-side
NewProject.sh
deleted
100755 → 0
View file @
859f6b02
#!/bin/bash
#########################################
# metaSNP v1.1 - Initiate New Project #
#########################################
#
# Helper script to initiate a new project file structure with a 'uniq_project_name'
# This code is part of the metagenomic SNP calling pipeline (metaSNP)
# Code is (c) Copyright ???
# This code is released under LICENSE
# Variables
# directory=results.$1
PROJECTPATH
=
$1
directory
=
$PROJECTPATH
#printf '%s\n' "${PROJECTPATH##*/}"
# Usage Message
display_usage
(){
echo
-e
"
\n
Usage:
$0
/path/2/project_dir
\n
"
}
# print error message if no PROJECTNAME argument is supplied
if
[
$#
-eq
0
]
then
display_usage
exit
1
fi
# Check if the Project Directory already exists.
if
[
!
-d
"
$directory
"
]
;
then
# If $DIRECTORY doesn't exist.
echo
-e
"
\n
Project name is available. New project directory will be created here:
$PROJECTPATH
"
mkdir
-p
$directory
/
{
cov,bestsplits,snpCaller,filtered/
{
pop,ind
}
,distances
}
else
echo
-e
"
\n
CAUTION: The directory '
$PROJECTPATH
' already exists.
\n\t
Use a uniq project name or delet the existing directory.
\n
"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment