How to make a TxDb object for the T2T-CHM13v2.0 genome (telomere to telomere Human genome)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Documentation
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- r
- Domaine
- bioinformatics
Piste de recherche
The issue already documents a workaround using rtracklayer, GenomeInfoDb, and txdbmaker for the T2T-CHM13v2.0 GFF file. Review makeTxDbFromUCSC() and the existing package documentation to determine where this guidance or hs1 support belongs; done means users can follow a maintained path to create the TxDb object.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
[Moved from https://github.com/Bioconductor/GenomicFeatures/issues/65 on March 22, 2024]
Question: How to make a TxDb object for the T2T-CHM13v2.0 genome (telomere to telomere Human genome), a.k.a. the hs1 genome at UCSC.
Answer: Unfortunately, makeTxDbFromUCSC() doesn't support hs1 at the moment, so we're going to use the GFF file provided by NCBI.
-
Download
GCF_009914755.1_T2T-CHM13v2.0_genomic.gff.gzfrom https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/009/914/755/GCF_009914755.1_T2T-CHM13v2.0/ -
Import the GFF file as a GRanges object:
library(rtracklayer) ## Takes < 1 min, consumes about 7Gb of RAM gff <- import("GCF_009914755.1_T2T-CHM13v2.0_genomic.gff.gz") -
Note that the sequence names in the GRanges object are RefSeq accessions:
seqlevels(gff) # [1] "NC_060925.1" "NC_060926.1" "NC_060927.1" "NC_060928.1" "NC_060929.1" # [6] "NC_060930.1" "NC_060931.1" "NC_060932.1" "NC_060933.1" "NC_060934.1" # [11] "NC_060935.1" "NC_060936.1" "NC_060937.1" "NC_060938.1" "NC_060939.1" # [16] "NC_060940.1" "NC_060941.1" "NC_060942.1" "NC_060943.1" "NC_060944.1" # [21] "NC_060945.1" "NC_060946.1" "NC_060947.1" "NC_060948.1"Let's change them to the official chromosome names:
library(GenomeInfoDb) chrominfo <- getChromInfoFromNCBI("T2T-CHM13v2.0") seqlevels(gff) <- setNames(chrominfo$SequenceName, chrominfo$RefSeqAccn) seqlevels(gff) # [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" # [16] "16" "17" "18" "19" "20" "21" "22" "X" "Y" "MT" -
Add the complete sequence info to the GRanges object:
seqinfo(gff) <- Seqinfo(genome="T2T-CHM13v2.0") seqinfo(gff) # Seqinfo object with 25 sequences (1 circular) from T2T-CHM13v2.0 genome: # seqnames seqlengths isCircular genome # 1 248387328 FALSE T2T-CHM13v2.0 # 2 242696752 FALSE T2T-CHM13v2.0 # 3 201105948 FALSE T2T-CHM13v2.0 # 4 193574945 FALSE T2T-CHM13v2.0 # 5 182045439 FALSE T2T-CHM13v2.0 # ... ... ... ... # 21 45090682 FALSE T2T-CHM13v2.0 # 22 51324926 FALSE T2T-CHM13v2.0 # X 154259566 FALSE T2T-CHM13v2.0 # Y 62460029 FALSE T2T-CHM13v2.0 # MT 16569 TRUE T2T-CHM13v2.0 -
Use
makeTxDbFromGRanges()to make a TxDb object from the GRanges object:library(txdbmaker) ## This will emit 3 warnings that can be ignored. txdb <- makeTxDbFromGRanges(gff, taxonomyId=9606) txdb # TxDb object: ## Db type: TxDb ## Supporting package: GenomicFeatures ## Genome: T2T-CHM13v2.0 ## Organism: Homo sapiens ## Taxonomy ID: 9606 ## Nb of transcripts: 188205 ## Db created by: txdbmaker package from Bioconductor ## Creation time: 2024-03-22 16:56:52 -0700 (Fri, 22 Mar 2024) ## txdbmaker version at creation time: 0.99.7 ## RSQLite version at creation time: 2.3.5 ## DBSCHEMAVERSION: 1.2
Note that if you need the UCSC chromosome names instead of the NCBI ones, you can switch them with seqlevelsStyle():
seqlevelsStyle(txdb)
# [1] "NCBI"
seqlevelsStyle(txdb) <- "UCSC"
seqlevelsStyle(txdb)
# [1] "UCSC"
seqlevels(txdb)
# [1] "chr1" "chr2" "chr3" "chr4" "chr5" "chr6" "chr7" "chr8" "chr9"
# [10] "chr10" "chr11" "chr12" "chr13" "chr14" "chr15" "chr16" "chr17" "chr18"
# [19] "chr19" "chr20" "chr21" "chr22" "chrX" "chrY" "chrM"
H.
- Langage dominant
- R
- Étoiles
- 5
- Forks
- 2
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Bioconductor/txdbmaker
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Bioconductor/txdbmaker#21 ·
-
enhancement help wanted
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Bioconductor/txdbmaker#15 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
Bioconductor/txdbmaker#12 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
-
support transcripts with >1 CDS?Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Bioconductor/txdbmaker#3 · 3 commentaires ·
Toutes les issues de Bioconductor/txdbmaker
Issues similaires
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 66/100
nmfs-ost/stockplotr#518 ·
Les mainteneurs répondent en général sous 2 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
nf-core/ampliseq#1146 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
HelenaLC/spatialdataR#295 ·
-
R cheat sheetOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
KUBDatalab/R-PUFF-SEMS#170 ·
-
size-time-budget
Difficulté 2/5 1-3 heures Accessibilité débutants 69/100
kapelner/EDI#66 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour