Misleading show() method for XStringSet objects

オープン
#25 コメント 4 件 リアクション 1 件 担当者 1 名 GitHub で見る

@hpages がすでに取り組んでいます。

2019年7月2日 から。

評価

この issue はまだ評価されていません。

説明

This is a follow up of https://support.bioconductor.org/p/122340/#122400

The show() method for XStringSet objects currently suggests the existence of a seq() getter for these objects:

library(Biostrings)
library(drosophila2probe)
dna <- DNAStringSet(drosophila2probe)
dna
#   A DNAStringSet instance of length 265400
#          width seq
#      [1]    25 CCTGAATCCTGGCAATGTCATCATC
#      [2]    25 ATCCTGGCAATGTCATCATCAATGG
#      [3]    25 ATCAGTTGTCAACGGCTAATACGCG
#      [4]    25 ATCAATGGCGATTGCCGCGTCTGCA
#      [5]    25 CCGCGTCTGCAATGTGAGGGCCTAA
#      ...   ... ...
# [265396]    25 TACTACTTGAGCCACAACCATCTGA
# [265397]    25 AGGGACTAAAGAGGCCCCATGCTCT
# [265398]    25 CATGCTCTGTCTGGTGTCAGCGCTA
# [265399]    25 GTCAGCGCTACATGGTCCAGGACAA
# [265400]    25 CCAGGACAAGTATGGACTTCCCCAC

but there is no such getter.

Same issue with the show() method for XString objects:

dna[[1]]
#  25-letter "DNAString" instance
# seq: CCTGAATCCTGGCAATGTCATCATC

Also it would be good to make these show() methods more consistent with other show() methods in S4Vectors/IRanges/GenomicRanges:

library(IRanges)
IRanges(1:3, 10, names=LETTERS[1:3], score=runif(3))
# IRanges object with 3 ranges and 1 metadata column:
#         start       end     width |             score
#     <integer> <integer> <integer> |         <numeric>
#   A         1        10        10 | 0.267148569226265
#   B         2        10         9 | 0.106218574102968
#   C         3        10         8 | 0.649568639695644

In particular the names on a DNAStringSet object should be displayed on the left. Also its metadata columns should be displayed (right now they are not):

dna2 <- dna[1:3]
names(dna2) <- LETTERS[1:3]
mcols(dna2)$score <- runif(3)
dna2
#   A DNAStringSet instance of length 3
#     width seq                                               names               
# [1]    25 CCTGAATCCTGGCAATGTCATCATC                         A
# [2]    25 ATCCTGGCAATGTCATCATCAATGG                         B
# [3]    25 ATCAGTTGTCAACGGCTAATACGCG                         C
主要言語
R
スター
72
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Bioconductor/Biostrings のほかの issue

Bioconductor/Biostrings の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。