Samtools depth input
1
0
Entering edit mode
6.7 years ago
Fatima ▴ 1000

Hello everyone,

I have a genebank file that I want to convert to bed to use as samtools depth input. I used this script: But start positions are actual start positions minus 1

start = feature.location.start.position stop = feature.location.end.position

for example if a gene starts from 350 to 2000 in gb file, in the bed format it's 349 to 2000, but again samtools depth results start from 350!

Is the converting script correct, or should I use start = feature.location.start.position+1

Thank you for your time.

RNA-Seq Samtools Bed • 1.7k views
ADD COMMENT
1
Entering edit mode

The output is simply 1-based, right?

ADD REPLY
1
Entering edit mode
6.7 years ago
GenoMax 141k

This should prove useful: Cheat Sheet For One-Based Vs Zero-Based Coordinate Systems

BED format is zero-based.

ADD COMMENT

Login before adding your answer.

Traffic: 2567 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