Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
titleUntangle shuffled FASTQ file
seqtk seq -l0 Shuffled.fq > Shuffled_4line.fq
| gawk '{if ((NR-1) % 8 < 4) print >> "Separate_1.fq"; else print >> "Separate_2.fq"}' Shuffled_4line.fq

After some operations on separate R1 and R2 FASTQ files, paired-end records will no longer be matched, and you need to eliminate records that are no longer matched.

...

Code Block
titleWrite joined one-line FASTQ information to two FASTQ files
gawk '{printf($1"\n"$2"\n"$3"\n"$4"\n") >> "eIFiso4GSample_Smp1matched_R1.fq"; printf($1"\n"$5"\n"$6"\n"$7"\n") >> "eIFiso4GSample_Smp1matched_R2.fq"}' OG_DataSample_1-line_joined.tab