maickrau / GraphAligner

MIT License
260 stars 32 forks source link

unmapped reads #86

Open asylvz opened 1 year ago

asylvz commented 1 year ago

Hello,

I'm wondering if there is an option to output unmapped reads?

Thank you, Arda

maickrau commented 1 year ago

There is no option but if you have alns.gaf and reads.fa then you can find the unmapped reads with:

cut -f 1 < alns.gaf | uniq | cat - <(grep '>' < reads.fa | tr -d '>') | sort | uniq -c | grep -P '^\s+1' | sed 's/^\s\+1\s//g'