I am trying to use CuffDiff (from Cufflinks version 2.2.1) on 3 controls and 3 experimental samples. The variables used and the main section of code in a bash script is below:
The variables that are predefined:
bam_directory is the path to the 3 controls and 3 experimental .bam containing folder
output_directory is the path to the output folder
reference_genome path to the Danio_rerio GRCz11soft masked primary assembly fasta file (from Ensembl)
annotation_gtf is the path to the Danio_rerio GRCz11.110 gtf file (from Ensembl)
num_threads is set to an arbitrary number, I set it to 10 but it can be any other number
The main section of code that is giving the error:
control_bams=($(find "${bam_directory}" -type f -name "Control*.bam"))
experimental_bams=($(find "${bam_directory}" -type f -name "Experimental*.bam"))
cuffdiff -u "${annotation_gtf}" \
-o "${output_directory}" \
-b "${reference_genome}" \
-p "${num_threads}" \
--FDR 0.05 \
--verbose 2 \
-no-update-check \
--library-type fr-firststrand \
"${control_bams[*]}" \
"${experimental_bams[*]}"
Yet I keep getting the error:
open: No such file or directory Error: cannot open file 2 for reading. Unrecognized file type
The files are .bam files. The .gtf has been used before without any issues.The fasta has been used before without any issues why is it giving this error. The paths have be quadruple checked and I think they are correct.
cuffdiff
bash
cufflinks