Skip to content
Snippets Groups Projects
Commit 9884800d authored by Ian Longden's avatar Ian Longden
Browse files

check directorys exist for the fasta file before continuing\n

parent 6a6f6ad4
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,13 @@ sub process_file {
$mapper->xref($xref);
if(defined($xref_hash{'dir'})){
$xref->dir($xref_hash{'dir'});
if(!-d $xref_hash{'dir'}){
die "directory ".$xref_hash{'dir'}." does not exist please create this\n";
}
}
else{
die "No directory specified for the xref fasta files\n";
}
}
else{
......@@ -222,7 +228,13 @@ sub process_file {
if(defined($species_hash{'dir'})){
$core->dir($species_hash{'dir'});
}
if(!-d $species_hash{'dir'}){
die "directory ".$species_hash{'dir'}." does not exist please create this\n";
}
}
else{
die "No directory specified for the ensembl fasta files\n";
}
$core->species($value);
}
......@@ -952,6 +964,7 @@ FSQL
#
# Now check for duplicate clone names as gene names.
# AND duplicate gene names now too.
#
......
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