That makes a lot of sense and it should work; however it looks like it isn't.
I ran the command without the labels The output is a set of empty files and the following command line message:
You are using Cufflinks v2.2.1, which is the most recent release.
Then I ran the script without the paths or labels and got this error message:
You are using Cufflinks v2.2.1, which is the most recent release. open: No such file or directory Error: cannot open file TB1_alignment_sorted.sam for reading. Unrecognized file type
I think the files are sorted correctly though:
To convert SAM file (output of alignment) to a sorted BAM file: samtoools view -bS filename.sam | samtools sort -o filename
To convert the sorted BAM file back to a SAM file: samtools view -h filename.bam > filename.sam
Does it matter that I am not using a reference file in cufflinks or cuffdiff?
whats your exact command ?
cuffdiff c:/research/Cuffmerge/merged_asm/merged.gtf $T1 $N1
T1=c:/research/alignment_data/TB1_alignment_sorted.sam
N1=c:/research/alignment_data/NT1_alignment_sorted.sam
Where do you specify the output directory? such as this...
I just added cuffdiff_out and it produces empty output files within that folder. It seems like the data files aren't being picked up. How can I fix the command?
Can you clarify please: 1) you are getting output files but they contain no data or...2) You are getting no output files?
Also, can you copy and paste here the resulting terminal output.
Thanks.
I am getting output files that contain no data. The terminal output is one of the following (most often the first):
You are using Cufflinks v2.2.1, which is the most recent release.
OR
You are using Cufflinks v2.2.1, which is the most recent release. Error: cuffdiff requires at least 2 SAM files c:/research/alignment_data/TB1_alignment_sorted.sam: line 1: @HD: command not found c:/research/alignment_data/TB1_alignment_sorted.sam: line 2: @SQ: command not found c:/research/alignment_data/TB1_alignment_sorted.sam: line 3: @SQ: command not found
...
What can be going wrong?
Thank you.
Are you using
transcript.gtffile andgenome.fastafile for the same version of the genome? Is GTF file yourmerged.gtf? Did you use same version of thegenome.fastato generatesamfiles? Do you see output in cufflinks and cuffmerge?Both the transcript.gtf file and genome.fa file were included in the same reference genome download (mm10) so I am assuming it is the same version of the genome. I have run the script including both the merged.gtf and the reference transcript.gtf, but I also ran it with just the prior. I used the same fasta file in Hisat2 to create the reference index.
I am able to get an output from cufflinks and cuffmerge.
Does it make a difference that I didn't include any of the reference information while making the assemblies in cufflinks and that I only included the reference index (as opposed to including the gtf file as well) in the alignment?