Sorry friends,
I tried to convert a sam file produced by tophat2 to txt but the output txt file is empty...why?
[izadi@lbox161 tophat_out]$ cat accepted_hits.sam |grep -v ^@| awk '{print $3}' > accepted_hits.txt
Any suggestion please? I need the txt file for biophysconnector package
I also tried another command with bed file but the output txt is empty again
cat file.bed | awk '{print $1}' > file.txt
yes of course and the produced sam is not empty
the command:
do you know please how I can produce a txt file???? because I could display the average of reads by biophysconnector that needs two txt files from RNA-seq and ribo-seq and a bed file from ribo seq..then this package could extract the average of reads and show the graph...but I cant produce the txt file with sam nor bed
Providing there are actual alignments in your BAM file and TopHat didn't encounter errors you should be able to do the following:
This will give you a text file with the name of the reference sequence that your reads aligned to
thank you,
I tried your command but the txt file is empty again
just one column
so on
Can you show me a sample of your SAM file?