(this is a bit too long for a comment so adding it as an answer)
Judging also from your post in BioC it seems like you are interested in a sort non-standard analysis, or at least one that I am not familiar with. First things first.
Are piRNAs expressed in these cell lines?
A better way to answer this is question is to do a RIP of one or more of the core components of the piRNA pathways in humans ( Hiwi, Hili and Hiwi2?), followed by small RNA-seq and see if the profile of the small RNAs matches what is know:
- RNA length profile
- 1U and 10A bias
- ping-pong signal
I would use all mapped reads, and not a subset of those reads that match a database. To be fair you can already do this with the small RNA you have, but showing that there are indeed bound to a protein of the pathway is much more convincing in a new system.
If yes, could we check the relative expression in treated/untreated?
For this I would do the same piRNA characterization as about, normalizing to mapped reads, and see if the signal is better in the treated libraries. Not particularly quantitative but if the treatment really is effective in enriching for piRNAs, it will pass the eyeball test.
If you want to go down the route of using small RNA databases and DESeq2, then count each read only once (otherwise you are creating data that doesn't exist) and use the read counts for a fairly standard DESeq analysis. Two things to keep in mind:
- assuming the treatment is really effective the library composition will be biased and using only the table of piRNAs counts might (or) will violate a few assumptions of
DESeq2, specially that the majority of genes will not change with treatment. Using all small RNAs might be able to alleviate this global effect.
- This analysis will tell you which piRNAs change with treatment, but I don't know if you can say anything about enrichment of piRNAs in general, but maybe someone with a better knowledge of statistics can chime in on this.
So, I would keep it simple and normalize to mapped reads for general small RNA composition / properties analysis, though some people normalize to miRNAs or other class of small non-coding RNAs, and above all keep it simple and use tried and trusted analysis / tools (as suggested in a previous answer). If the results are promising and hold to some basic predictions and assumptions about piRNAs, explore a bit more.
edit:
Maybe I misunderstood, but does this mean that a read is counted more than once? Each read should be counted only once. If you want to use multi-mapping reads the best options are to randomly select a piRNA or weight it - read matches two piRNAs, each gets 0.5 counts.
No, you didn't misunderstand. I've also posted an informative example in Biostars . I don't want to choose randomly a piRNA because it may be misleading. Using weights is a possibility but what about a read that matches 5 piRNAs such as these:
piR-51199 TGCCAAACTAAGCAAGGTCACGTGTGA
piR-51200 TGCCAAACTAAGCAAGGTCACGTGTGAA
piR-51201 TGCCAAACTAAGCAAGGTCACGTGTGAAG
piR-51202 TGCCAAACTAAGCAAGGTCACGTGTGAAGA
piR-51203 TGCCAAACTAAGCAAGGTCACGTGTGAAGG
It's one will get 0.2 counts. Is it the correct way to "counter" multi-mapping?
First of all I would argue that you your read corresponds to only one of those piRNAs. It has a defined sequence and length, so it can only be an 100% reciprocal match with one of those 5 sequences:
read TGCCAAACTAAGCAAGGTCACGTGTGAA
piR-51199 TGCCAAACTAAGCAAGGTCACGTGTGA
piR-51200 TGCCAAACTAAGCAAGGTCACGTGTGAA
piR-51201 TGCCAAACTAAGCAAGGTCACGTGTGAAG
piR-51202 TGCCAAACTAAGCAAGGTCACGTGTGAAGA
piR-51203 TGCCAAACTAAGCAAGGTCACGTGTGAAGG
Yes it has a partial match with the others, but not a full match.
Now if we are talking about multimapping in terms of genomic location, in my opinion there is no "right" way* to solve the issue, since they all involve a compromise between sensitivity and specificity. For most of the things I do I don't care where a piRNA maps, as long as it maps to a location in the genome. So I pick __one location__ randomly. For some specific purposes, I need to know the exact mapping location and if can't get it, though luck, throw away all multimappers. I never used weights because I see little advantage in it, but it is an acceptable compromise.
*However there is a bad choice: using all mapped locations for a read. In the case you mention, one read mapping to multiple piRNAs your data will blow up from one RNA that was actually sequence to 5. If it maps to 100 different locations you are suddenly analysing hundreds of reads or RNAs that were not cloned at all.
I hope this helps a little.
What is the biological question, or comparison, you are interested in? Are there other conditions besides control vs treatment?
Well, the first question is "Are piRNAs expressed in these cell lines? If yes, could we check the relative expression in treated/untreated?". There are also other conditions but I cannot report them now.