How to convert genomic position to transcript position?
1
0
Entering edit mode
8.1 years ago
biolab ★ 1.4k

Dear all,

I have a genome mapping bam file, which contains the start position of the mapped reads. I would like to convert the genomic position to transcript position, for example, gene A locates at chr1:200-400, read B starts at chr1: 300, then read B is at position 101 of transcript A. I am working on Arabidopsis that has GFF file. Is there any tools to do this job?

Thank you for any of your suggestions!

gff • 3.5k views
ADD COMMENT
0
Entering edit mode

I haven't used it directly, but map2gtf tool from Tophat seems to do the job (may be in the reversed way: transcript to genomic). If it does not do what you want, guess you have to write yourself a biopython script or bioconductor R script: https://support.bioconductor.org/p/62326/

ADD REPLY
0
Entering edit mode
8.1 years ago
fanli.gcb ▴ 730

I've used a modified version of the htseq-count utility from HTSeq in the past for this: https://github.com/fanli-gcb/Core.RNAseq/blob/master/sam2pos.py

Note that this requires the HTSeq module be installed.

ADD COMMENT

Login before adding your answer.

Traffic: 2370 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6