I have 2 fastq files for the same sample, Sample1, but each with different read length(75bp and 100bp)
zcat Sample1_TTAGGC_L001_R1_001.fastq.gz | head -8
# few lines from first file
@HWI-D00330:52:H7TTTADXX:1:1101:1097:2122 1:N:0:TTAGGC
TACAACTGGTGAGTTTTTCCTCCAGCCTCCCTGTGACCCCTCACAACCCACCCCAGACAATGCTTTTCCTTCCCT
+
@@@DFFFFGDFHDFHIJJJEGIGHIGGIGGIIGHIIHGGIIJEHGEIGJIIGIIHIGIGEHECEFCB>>CD;@CC
@HWI-D00330:52:H7TTTADXX:1:1101:1161:2171 1:N:0:TTAGGC
GAGTCCATCTAGCCCAACCCAGACCAAGGGATTCACCTGAATATTCTCTTCTCACCTTTCATCATAGCTAAGATT
+
CCCFFFFFHHHHHJJFHHIJJHIJJJJJIIJJJJJJJJJHIGJJJIIJJJJJJJJJJJJJJJJJJJJJJIJEHHH
zcat Sample1_TTAGGC_L1234_R1_001.fastq.gz | head -8
# few lines from second file
@HWI-ST332R:292:D2GD6ACXX:1:1101:1123:2179 1:N:0:TTAGGC
TTTACTTGGCCTATTAGTGCCCTTCAGAAACTAATGACTCTTTCTTTGACCAAATTTACTCTCTTCATGTCCCTGTCCTTTGCCCCATATCCCCATTCCC
+
BCCDFFFDGHHHHHJIJFIIIEHJJGJJJJJJIJJIGIIJIJJGIJJCDDGIJJIJJGFHIIJJJIJJIIJJJJIJGIJJJHHHHGFFBEFEEDECCE>@
@HWI-ST332R:292:D2GD6ACXX:1:1101:2304:2176 1:N:0:TTAGGC
GANACTCTGTCTCAAAAAAAAAAAAAAAAAAAAAAAAAAATTAAGGAAGAGTAAAGGGAAAATAATTTTTTTAAAAGTGTCTTTAAATTTGGAAAGGTTG
+
CC#4ADDFHFFHFIGIIIGIIJJJJJJHDDDDDDDB################################################################**
Took few reads from these 2 files and with the resultant file gave a bwa run and it did run w/o any error. Wanted to know whether it is OK to do so, would it impact the output(.sai file) after alignment ?
zcat Sample1_TTAGGC_L001_R1_001.fastq.gz | head -8 > f1.fastq
zcat Sample1_TTAGGC_L1234_R1_001.fastq.gz | head -8 > f2.fastq
cat f1.fastq f2.fastq > Out.fastq
gzip Out.fastq
bwa aln -t 4 hs37d5.fa Out.fastq.gz >Out.sai
Thanks, Tinu
That's fine. Having reads of different lengths would be totally normal after trimming.
Thank you for the answer
It would be good for posterity if you could add this comment as an answer, then the OP could "accept" it.
Yeah, I should have done that after ashutoshmits comments, but was hoping someone else might produce a highly descriptive answer :oP I'll throw something a little longer-winded together real quick as an answer.
I am closing this question as it has been answered.
?? Well... an answered question is not a reason to close it...
re-opened. Questions should only be closed when they're unanswerable, duplicates of previous questions, or break the guidelines in some other way.
Thanks. Got it. There should be a way that trivial questions that have already been answered should not appear on top. People may spend time reading the question only to find out in the end that it was a simple one and has been solved. I am not blaming the simplicity of the question but just don't want people to spend time on reading something that is easy and has already been solved.
Sure - If it's been asked and answered previously, then post a comment linking back to the old post that answers it, and close it up as a duplicate.