Seems strange but when I do a simple command like
samtools view ../../Tophat/Results/B6Br1.bam
where the target is a symlink, I get:
open: No such file or directory
[main_samview] fail to open "../../Tophat/Results/B6Br1.bam" for reading.
The symlink exists:
ls -l ../../Tophat/Results/B6Br1.bam
lrwxrwxrwx 1 will bioinfo 39 May 13 09:37 ../../Tophat/Results/B6Br1.bam -> dirs/B6Br1/tophat_out/accepted_hits.bam
And when I run the same samtools command using the link target accepted_hits.bam, it works.
It's inconvenient because it means to reorganize a bunch of tophat outputs, which all have the same name, I have to physically copy them.
samtools view ../../Tophat/Results/B6Br1.bam
where the target is a symlink, I get:
open: No such file or directory
[main_samview] fail to open "../../Tophat/Results/B6Br1.bam" for reading.
The symlink exists:
ls -l ../../Tophat/Results/B6Br1.bam
lrwxrwxrwx 1 will bioinfo 39 May 13 09:37 ../../Tophat/Results/B6Br1.bam -> dirs/B6Br1/tophat_out/accepted_hits.bam
And when I run the same samtools command using the link target accepted_hits.bam, it works.
It's inconvenient because it means to reorganize a bunch of tophat outputs, which all have the same name, I have to physically copy them.
Comment