Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amrfinder eliminate_amrs_by_size #16

Open
bdecato opened this issue Jul 30, 2014 · 3 comments
Open

amrfinder eliminate_amrs_by_size #16

bdecato opened this issue Jul 30, 2014 · 3 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@bdecato
Copy link
Member

bdecato commented Jul 30, 2014

Currently we arbitrarily remove AMRs that are less than half the gap limit in size. We reference this as a "hack that has produced excellent results" in the manual, but our conversation about hmr today got me thinking about size cutoffs.

Is it possible to implement something like hmr's size distribution/quantile cutoff approach in amrfinder? Would it be more appropriate?

@mengzhou
Copy link
Member

mengzhou commented Aug 5, 2014

I just realized that Fang has suggested a merging step for AMRs. She called those regions generated by amrfinder "partial AMRs" because they are very fragmented. Here's the command she sent me for merging AMRs.

awk '{if ($2 > 1000) {$2 -= 1000} else {$2 = 0} print $1,$2,$3 + 1000,$4,$5,$6}' sample.pamr | sortbed -c /dev/stdin | awk '{print $1,$2+1000,$3-1000,$4,$5,$6}' | awk '$3-$2 >= 200 && $3-$2 < 50000{print} ' > merged.amr

This command basically merges all regions that are within 1kb to each other and then filters by size >= 200bp.

@bdecato bdecato self-assigned this Oct 27, 2015
@andrewdavidsmith
Copy link
Collaborator

Should this issue be updated or close @bdecato

@bdecato
Copy link
Member Author

bdecato commented Jan 17, 2018

This is definitely something that should be standardized and hasn't been taken care of yet. @sarahsma when you are around next, let's talk about how it could be done.

@andrewdavidsmith andrewdavidsmith transferred this issue from smithlabcode/methpipe Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants