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

Using "sam" alignments with "read_analysis.py" #20

Closed
npavlovikj opened this issue Sep 10, 2017 · 1 comment
Closed

Using "sam" alignments with "read_analysis.py" #20

npavlovikj opened this issue Sep 10, 2017 · 1 comment

Comments

@npavlovikj
Copy link

Hi,

I would like to use my own alignment file with "read_analysis.py" and skip the default alignment with LAST. However, the alignment file I have is in "sam" format, and "read_analysis.py" requires alignment file in "maf" format. I was wondering if it is possible to use "sam" alignments in this step, or if not, do you know how can I convert the "sam" files to "maf" ones ?

Thank you,
Natasha

@cheny19
Copy link
Collaborator

cheny19 commented Sep 11, 2017

Hi Natasha,

Here's how I convert sam to MAF:

First, I use a tool called sam2pairwise and convert sam to pairwise format. The github page is here: https://github.com/mlafave/sam2pairwise

Next, I wrote an script to convert pairwise to MAF. I just uploaded it to this repo. It should do the work, but I haven't fully tested the script yet, so it might break at some edge cases.

Let me know if you have any problems running it.

Thanks,
Chen

@cheny19 cheny19 closed this as completed Mar 9, 2018
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