Commit 57049711 authored by Robin Erich Muench's avatar Robin Erich Muench
Browse files

Delete NewProject.sh

parent 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 "\nUsage: $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 "\nProject name is available. New project directory will be created here: $PROJECTPATH"
mkdir -p $directory/{cov,bestsplits,snpCaller,filtered/{pop,ind},distances}
else
echo -e "\nCAUTION: The directory '$PROJECTPATH' already exists.\n\t Use a uniq project name or delet the existing directory.\n"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment