Hi!
I'm trying to convert my .fastq files to .sam doing the alignment and continue pre-processing in order to obtain the read counts, but i've reiteratively received an error processing a .fastq of 4'27 GB and 107073636 lines.
the code is:
./bwa mem /path/to/Homo_sapiens.GRCh38.dna.primary_assembly.fa /path/to/.fastq > /path/to/.sam
and the error is:
[fputs] File too large
Thanks!
You can avoid the intermediate sam file to save space and write directly to bam:
bwa mem genome.fa reads.fastq | samtools sort -o alignment.bam
perfect, thank you!!