Hi everyone,
Im very new into Tophat and Bowtie RNA analysis. I had made a script for RNA raw data analysis but i got an error. It is very probably that the script have a lot of errors, but here is:
#TOPHAT & BOWTIE2 PROCEDURES
#STEP 1 - Set up
iDirectory="/home/lgts/Desktop/TopBow/Input"
oDirectory="/home/lgts/Desktop/TopBow/Output"
Temp="/home/lgts/Desktop/TopBow/Temp"
#Resources
Reference="/home/lgts/Desktop/TopBow/Reference/hg19"
GtfRefecence="/home/lgts/Desktop/TopBow/Reference/hg19_genes.gtf"
#Parameters
NumCores="8"
#Samples, one by line
mySamples="KG-1_Ch48h-23_9
KG-1_Ch48h-23_9"
#STEP 2- Run alignments
for i in $mySamples
do
tophat2 -p $NumCores -G $GtfReference --output-/home/lgts/Desktop/TopBow/Output $Temp/$i.out $Reference $iDirectory/${i}_1.fastq.gz $iDirectory/${i}_2.fastq.gz
done
I'd checked all the directories and they are ok.
The error message is at follows:
[2018-04-19 19:33:36] Beginning TopHat run (v2.1.0)
-----------------------------------------------
[2018-04-19 19:33:36] Checking for Bowtie
Bowtie version: 2.2.6.0
**Error: cannot find transcript file --output-/home/lgts/Desktop/TopBow/Output**
[2018-04-19 19:33:36] Beginning TopHat run (v2.1.0)
-----------------------------------------------
[2018-04-19 19:33:36] Checking for Bowtie
Bowtie version: 2.2.6.0
**Error: cannot find transcript file --output-/home/lgts/Desktop/TopBow/Output**
I really dont know how to solve this, so any help or insight into this will be very very appreciated.
NOTE: I have both tophat 1 & tophat2, and bowtie1 & bowtie2 installed. I dont know if this could be the origin of this error..
For new projects you should seriously consider using something other than TopHat suite. STAR/BBMap/HISAT2 are all excellent current alternatives.
Hi, i tried with --output-$oDirectory, but i got the same error..
I dont know what do you mean with --output-dir. dir= output directory?
Thank you.
That option needs to be
--output-dir $oDirectory
.