`expand()` and non-standard rowRanges columns
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- r
- Domaine
- bioinformatics
Piste de recherche
Reproduisez l’exemple R fourni avec VariantAnnotation et comparez rowRanges(vcf) avant et après expand(vcf). Commencez par localiser l’implémentation de expand() pour CollapsedVCF ; le travail est terminé lorsque l’objet développé conserve les colonnes non standard de rowRanges, telles que SNP_name et num_alts, pour chaque ligne obtenue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
hi there,
is there a way to retain non-standard rowRanges columns when I use expand() on a CollapsedVCF object? Some demo code below.
If not, please can you consider this an enhancement request? thanks!
all the best,
Janet
library(VariantAnnotation)
vcf <- VCF(rowRanges = GRanges("chr1", IRanges(1:4*3, width=c(1, 2, 1, 1))))
alt(vcf) <- DNAStringSetList("A", c("TT"), c("G", "A"), c("TT", "C"))
ref(vcf) <- DNAStringSet(c("G", c("AA"), "T", "G"))
## add some non-standard columns to rowRanges
mcols(rowRanges(vcf))$SNP_name <- paste("SNP_", 1:length(vcf), sep="")
mcols(rowRanges(vcf))$num_alts <- elementNROWS(alt(vcf))
## take a look
rowRanges(vcf)
GRanges object with 4 ranges and 6 metadata columns:
seqnames ranges strand | SNP_name num_alts REF ALT QUAL
<Rle> <IRanges> <Rle> | <character> <integer> <DNAStringSet> <DNAStringSetList> <numeric>
[1] chr1 3 * | SNP_1 1 G A NA
[2] chr1 6-7 * | SNP_2 1 AA TT NA
[3] chr1 9 * | SNP_3 2 T G,A NA
[4] chr1 12 * | SNP_4 2 G TT,C NA
FILTER
<character>
[1] <NA>
[2] <NA>
[3] <NA>
[4] <NA>
-------
seqinfo: 1 sequence from an unspecified genome; no seqlengths
## those extra columns are lost when we expand
vcfLong <- expand(vcf)
rowRanges(vcfLong)
rowRanges(vcfLong)
GRanges object with 6 ranges and 4 metadata columns:
seqnames ranges strand | REF ALT QUAL FILTER
<Rle> <IRanges> <Rle> | <DNAStringSet> <DNAStringSet> <numeric> <character>
[1] chr1 3 * | G A NA <NA>
[2] chr1 6-7 * | AA TT NA <NA>
[3] chr1 9 * | T G NA <NA>
[4] chr1 9 * | T A NA <NA>
[5] chr1 12 * | G TT NA <NA>
[6] chr1 12 * | G C NA <NA>
-------
seqinfo: 1 sequence from an unspecified genome; no seqlengths
- Langage dominant
- R
- Étoiles
- 32
- Forks
- 21
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
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/VariantAnnotation
-
refactor the package Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Bioconductor/VariantAnnotation#115 · 4 commentaires ·
-
Bioconductor/VariantAnnotation#114 · 1 réaction · 2 personnes assignées ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Bioconductor/VariantAnnotation#113 · 2 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
-
ensemblVEP::parseCSQToGRanges Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
Bioconductor/VariantAnnotation#88 · 2 commentaires ·
Toutes les issues de Bioconductor/VariantAnnotation
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
easystats/performance#950 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
briandconnelly/airnow#9 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Copy cohorts to keep old cohorts Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
OHDSI/CohortConstructor#774 ·