Entering edit mode
6.4 years ago
biogirl04
▴
10
Hi everyone,
I have the following error when using Tophat2:
readlink: illegal option -- f
usage: readlink [-n] [file ...]
[2018-07-06 11:36:32] Beginning TopHat run (v2.1.1)
-----------------------------------------------
[2018-07-06 11:36:32] Checking for Bowtie
Bowtie version: 2.3.4.1
[2018-07-06 11:36:32] Checking for Bowtie index files (genome)..
[2018-07-06 11:36:32] Checking for reference FASTA file
Warning: Could not find FASTA file readsindex/readsFASTA.fa
[2018-07-06 11:36:32] Reconstituting reference FASTA file from Bowtie index
Executing: /usr/local/bin/bowtie2-inspect readsindex/readsFASTA > orftp3_out/tmp/readsFASTA.fa
[2018-07-06 11:36:34] Generating SAM header for readsindex/readsFASTA
[2018-07-06 11:36:34] Preparing reads
left reads: min. length=75, max. length=10506, 15483 kept reads (0 discarded)
[2018-07-06 11:36:38] Mapping left_kept_reads to genome readsFASTA with Bowtie2
Error: could not open writer pipe gzip -cf - < orftp3_out/tmp/left_kept_reads_seg124.fq.z
Apparently the left_kept_reads_seg124.fq.z file is empty. How can I get around this? Also when I tried exported gzip to path:
$export PATH=$PATH:/gzip
$echo PATH
PATH
That is what happens. I don't know what's going on. Any help would be greatly appreciated!!
Thank you!!
There is a message (
readlink: illegal option -- f
) suggesting your command is wrong, but you didn'tshow us your command.This is essentially unreadable. Could you format the above snippet properly? And if the
$
preceding the commands are just the shell prompt, please remove it from the commands. The way it stands now, I don't know if you are issuingecho
or$echo
, orexport
or$export
- correct are without$
. When assigning a value to the variable you don't use the$
, but when referencing the variable, you do use the$
. So it is:Finally, what is
/gzip
inexport PATH=$PATH:/gzip
? ThePATH
variable should contain paths to where the executables are located, not the executables themselves.Thanks for your help!
This is the command that I had run:
For some reason, no matter what I do, I keep getting the same error as above. Any ideas?
How did you install tophat2?
I don't completely remember but I either did:
sudo apt-get install tophat
or I downloaded from https://ccb.jhu.edu/software/tophat/index.shtmlYou should know that the old 'Tuxedo' pipeline of Tophat(2) and Cufflinks is no longer the "advisable" tool for RNA-seq analysis. The software is deprecated/ in low maintenance and should be replaced by HISAT2, StringTie and ballgown. See this paper: Transcript-level expression analysis of RNA-seq experiments with HISAT, StringTie and Ballgown. There are also other alternatives, including alignment with STAR and bbmap, or pseudo-alignment using salmon followed by DESEq2 or edgeR.
Is the issue resolved?
Instead of $echo PATH
give $echo $PATH to get the path.
Have you solved this problem? I met the same problem,thanks for your help。