shortRNAhub / shortRNA

short RNA-seq analysis package
GNU General Public License v3.0
1 stars 2 forks source link

findoverlaps function should return also non-overlapping #3

Closed plger closed 6 years ago

plger commented 6 years ago

@dktanwar Hi, we need to modify your function: right now, if a reads map to 2 locations but only one of the locations overlaps with a feature, it's unambiguously assigned to that feature because the other location doesn't show up in the results. After doing the overlap, I would take the sequences that are not in the overlap, and built a second table in the same format as the first, but setting (since there's no overlap): strandFeature=NA posInFeature=NA overlap=0 percentOverlap=0 transcript_id=NA gene_id=NA transcript_type=NA then we can rbind the two tables, order by sequence, and return the result.