This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How Do You Convert A Sam/Bam File To A Psl Or Axt Format?

I am trying to make a chain file to use in liftOver and these can be made using PSL or AXT files. My current data is in SAM/BAM. What's the best way to convert this to a psl or axt format?

samtools conversion

1 answer

Perhaps you could try passing the output from the sam2bed script to the bed2psl.py script. I'd take care to make sure coordinate indexing is correct at each step of the process.

where can you download the bed2psl.py? It seems that the sam2bed doesn't process the cigar string that is needed to generate the psl.

Log in to answer this question.