bbcf / bbcflib

Internal utility modules for the BBCF
http://bbcf.epfl.ch/bbcflib
GNU General Public License v3.0
7 stars 4 forks source link

Change numbering and naming standards with convert() #9

Closed xapple closed 13 years ago

xapple commented 13 years ago

Citing @jrougemo

When converting a Track to say bed format, we could have the option of choosing a different numbering/naming convention, for example use "ensembl" convention (1-based, all-inclusive numbering) with possibly different chromosome names (to be fetched from genrep).

xapple commented 13 years ago

Two new methods exist to convert between the different numbering conventions.

from bbcflib import track
with track.load('tracks/rp_genes.bed') as t:
   t.ucsc_to_ensembl()
   t.ensembl_to_ucsc()