Hello brain trust, Thanks for reading, please help. I have 18 paired-end files (9 forward and 9 reverse, file extension is .fq, each has a unique name) and I am trying to align them using Rsubread. I am working through a hpc cluster, not in R directly. I slurm/sbatch to submit the R script.
If I align a set of paired-end files individually, everything works well. However, when I try to align the entire 18 files, I get an error message.
Here is my R script for the individual PE files: (this works fine)
align(index="mm10",readfile1="Control-1_R1_001_paired.fq",readfile2="Control-1_R2_001_paired.fq",input_format="FASTQ",output_file="rsubread.bam",output_format="BAM",nthreads=16)
Here is my R script for all of the files: (ps: I edited the path to the directory to "path to file" for de-identification reasons)
align(index="mm10",readfile1="/path to file/forward_reads_list",readfile2="/path to file/reverse_reads_list",input_format="FASTQ",output_file="rsubread.bam",output_format="BAM",nthreads=16)
The output_file "rsubread.bam" does not get listed in the working directory. For the slurm/sbatch, there is no error message as the .err file is empty. However, my output, .out is below: (Again, I edited the path to the directory to "path to file" for de-identification reasons).
Function : Read alignment (RNA-Seq) ||
|| Input file 1 : /path to file/forward_ ... ||
|| Input file 2 : /path to file/reverse_ ... ||
|| Output file : rsubread.bam (BAM) ||
|| Index name : mm10 ||
|| ||
|| ------------------------------------ ||
|| ||
|| Threads : 16 ||
|| Phred offset : 33 ||
|| # of extracted subreads : 10 ||
|| Min read1 vote : 3 ||
|| Min read2 vote : 1 ||
|| Max fragment size : 600 ||
|| Min fragment size : 50 ||
|| Maximum allowed mismatches : 3 ||
|| Maximum allowed indel bases : 5 ||
|| # of best alignments reported : 1 ||
|| Unique mapping : no ||
|| ||
\\===================== http://subread.sourceforge.net/ ======================//
//================ Running (22-Aug-2018 06:13:12, pid=36855) =================\\
|| ||
|| WARNING format issue in file '/path to file/ ... ||
|| The required format is : FASTQ or FASTA ||
|| The file format is unknown. ||
|| A wrong format may result in wrong results or crash the program. ||
|| Please refer to the manual for file format options. ||
|| If the file is in the correct format, please ignore this message. ||
|| ||
|| WARNING format issue in file '/path to file/ ... ||
|| The required format is : FASTQ or FASTA ||
|| The file format is unknown. ||
|| A wrong format may result in wrong results or crash the program. ||
|| Please refer to the manual for file format options. ||
|| If the file is in the correct format, please ignore this message.
If you are still reading at this point, thank you :). Any ideas on how to solve this?
Apologies for the delay. I was barred from responding because apparently their is a 5-post in 6 hours limit for newcomers. Had no idea. Here is my script. I slurm submit the script in unix, so it doesn't run on the command line directly.
Thanks.
Hello, when I run this script I get the ERROR: unable to open file 'NA'. File name might be incorrect, or you do not have the permission to read the file.
Any suggestions? Thanks!