I fixed that
post you referenced, but I will not be able to adapt it to fungi and MED since I never worked with fungal ITS data :(
If your reads partially overlap, you should consider merging them instead of using only R1. Merging step will improve the quality dramatically. There are many ways to do quality filtering (and merging, too). I usually use this library here because I am most familiar with it, but I would strongly suggest you to explore other alternatives as well:
If you go with illumina-utils, here are some more suggestions;
If your reads are partially overlapping, you can use iu-merge-pairs, and work with the resulting FASTA file.
If your reads are not partially overlapping (or if you are not interested in that option), you can use iu-filter-quality-minoche to quality filter your paired-end reads, and then use only R1 for each sample. If you go with iu-filter-quality-minoche, I would suggest you to still trim the last 50 bases from resulting quality filtered reads anyway (you can use 'iu-trim-fastq -t 200' for that (for other parameters please see iu-trim-fastq -h)). Then you will need to convert each trimmed R1 FASTQ into FASTA files (iu-fastq-to-fasta), and merge all individual FASTA files into an MED compatible single FASTA file (this step will be a bit painful and will require some scripting, I apologize for that in advance, but if you come all the way down here and stuck, let me know and I can try to help with this step).
I hope this helps.
Best,