Dear ,
I am trying to run TransDecoder for the first time.
I used the following code:
perl C:\Users\Admin\Desktop\TransDecoder-TransDecoder-v5.5.0\TransDecoder.LongOrfs -t C:\Users\Admin\Desktop\Test.fasta
But, then I got the following error message:
Error, cannot mkdir C:/Users/Admin/C:Users/Admin/Test.fasta.trans.decoder_dir.__checkpoints_longorfs at C:/Users/Admin/Desktop/Transdecoder-TransDecoder-v.5.5.0/PerLib/Pipeliner.pm line 123.
Thus, it appears the Pipeliner.pm code, the working directory is pasted twice. Below I have copied the corresponding code of the Pipeliner.pm.
Do you have suggestions on how to solve this?
my $checkpoint_file = $cmd->get_checkpoint_file();
if ($checkpoint_file !~ m|^/|) {
if (my $checkpoint_dir = $self->get_checkpoint_dir()) {
$checkpoint_file = "$checkpoint_dir/$checkpoint_file";
$cmd->reset_checkpoint_file($checkpoint_file);
}
}
push (@{$self->{cmd_objs}}, $cmd);
}
return $self;
}
sub set_checkpoint_dir {
my $self = shift;
my ($checkpoint_dir) = @_;
$checkpoint_dir = &ensure_full_path($checkpoint_dir);
if (! -d $checkpoint_dir) {
mkdir($checkpoint_dir) or die "Error, cannot mkdir $checkpoint_dir";
}
$self->{checkpoint_dir} = $checkpoint_dir;