Bioconductor / txdbmaker

A set of tools for making TxDb objects from genomic annotations from various sources (e.g. UCSC, Ensembl, and GFF files)
2 stars 0 forks source link

Add 'genome' argument to makeTxDbFromGFF() #2

Open hpages opened 5 months ago

hpages commented 5 months ago

Right now (as of txdbmaker 0.99.7) makeTxDbFromGFF() produces a TxDb object that has an unspecified genome by default. To change this, one needs to explicitely set the genome on the TxDb object returned by makeTxDbFromGFF(), e.g. with genome(txdb) <- "T2T-CHM13v2.0" (it's important to use the official name of the assembly otherwise the seqlevelsStyle() setter won't be able to switch the sequence naming style to UCSC or RefSeq). Alternatively one can specify the genome at creation time with makeTxDbFromGFF(..., metadata=data.frame(name="Genome", value="T2T-CHM13v2.0")) but this is admitedly poorly documented and not very convenient.

So let's add a genome argument to makeTxDbFromGFF().