Closed 44314474 closed 7 months ago
Hi,
I had the same issue when using the command in that form because that is not the intended input. Run the command as calcDivergenceFromAlign.pl -s xyz.divsum xyz.align.gz
and works as intended, generating the divsum files you need for the createRepeatLandscape.pl script.
If you are using RepeatMasker version 4.0.4 and newer the man states:
"On newer RepeatMasker dataset that already contains the Kimura divergence line following each alignment:
./calcDivergenceFromAlign.pl -s example.divsum example.align.gz
./createRepeatLandscape.pl -div example.divsum >
/home/user/public_html/example.html
"
Hope that helps!
Hi,
I am getting the same error message when using calcDivergenceFromAlign.pl to calculate divergence from alignment.
RepeatMasker version 4.1.5
calcDivergenceFromAlign.pl -s genom.divsum -a genome.fna.align
Error: RepeatLandscape: Could not open for reading: No such file or directory
Any suggeison please?
TL;DR: run it without the -a
flag: calcDivergenceFromAlign.pl -s genom.divsum genome.fna.align
Looking into the perls script, that error should return a file name (lines 178-179):
open $searchResultsFH, "<$alignFile"
or die "RepeatLandscape: Could not open $alignFile for reading: $!\n";
This suggests to me that your command is not actually giving an input .align file.
alignFile
is set on line 158:
my $alignFile = $ARGV[ 0 ];
In the SYNOPSIS usage statement (Line 36-37) we see the problem:
calcDivergenceFromAlign.pl [-version] [-s <summary_file>] [-noCpGMod]
[-a <new_align_file>] *.align[.gz]
So the -a
flag is actually to generate a new .align file, the input align file is a positional argument not a flag.
Hope that helps!
My bad I was following the documentation - got it working!
May be good to update the documentation like -a
Thanks a lot for the instant response.
Thanks for the good pointers @Nicholas-Kron! Sorry for the sub-par documentation for this tool, I have updated it for the next release (4.1.6) to avoid this confusion. Indeed the "-a
Hi! I met a question when i used calcDivergenceFromAlign.pl to calculate divergence from align file which is generated by repeatmasker software -a parameter. My command is "perl calcDivergenceFromAlign.pl -a fastafa.align" and the error is "RepeatLandscape: Could not open for reading: No such file or directory" Thanks for your help!