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

Projection to the reference genome for reads #6

Open
tyomach opened this issue Mar 29, 2018 · 3 comments
Open

Projection to the reference genome for reads #6

tyomach opened this issue Mar 29, 2018 · 3 comments

Comments

@tyomach
Copy link

tyomach commented Mar 29, 2018

As I understand MEA performs projection to the reference genome for coverage data (bedgraph or bw). Is it also possible to do the same for read level files (bam)? What I would like to get is the number of reads mapped to allele1 or allele2 for each polymorphism in the reference genome coordinates.
Thanks foryour advice.

@julienrichardalbert
Copy link
Owner

You understanding is correct. Unfortunately there is no read-level projection compatibility to date.. We tried developing such a read-projection script for a few months but could not work out the various CIGAR string problems that arise.
Read count estimates can be inferred from coverage data if read lengths are standard and known, but it is just an approximation.
During our attempts to develop a bam-projection script, we made a decent bed projection script that I am happy to share. Converting a bam to bed, where each entry are the coordinates of the aligned read, then projecting the bed onto the reference and counting entries, would be another workaround.

@tyomach
Copy link
Author

tyomach commented Apr 5, 2018

This will be great. We can try to work with the bed projection.
Thanks!

@julienrichardalbert
Copy link
Owner

First, we use this to re-order chromosomes of the refmap file
$SortRefmap.sh ALT.refmap ALT.sort.refmap
Then, with the sorted refmap file, project bed script
$awk -f ProjectBed.awk ALT.sort.refmap file.bed > file.projected.bed
Scripts attached: projectBed.zip

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants