ori, thanks for the suggestion! I assembled the reads by SPAdes and the genes of my interest are heavily fragmented as I guess from blasting the assembly - I'm receiving relatively short hits from many assembled contigs for each query (reference transcript).
Mapping with bowtie 2 actually seems to work - the low coverage (generally 0-5) is obvious yet it should provide me enough sequence info for my task. The overall similarity between the reference and the reads is much higher than I was expecting - it might be close to 90% - which might explain why the assembly worked out. However I'm now struggling with extracting the consensus of the aligne reads. I used for that combination of samtools, bcfutils and vcfutils:
samtools mpileup -uf reference.nt mapping.bam | bcftools call -c | vcfutils.pl vcf2fq > consensus.fasta
However, the consensus I'm getting this way contains a substantial proportion of the reference sequence and I can't find parametres which could modify how the consensus is calculated to have there either Ns for the part of reference where no reads were mapped or the consensus of the mapped reads.
Yet another approach - extracting consensus using IGV viewer (option Copy consensus sequence) gives me exactly the consensus I'm looking for but there is apparently no way how to automatize this for hundreds of sequences.
In case you have any suggestions on extracting and fine-tuning the consensus from bam files I would be thankful for that!