Skip to content

Fix to readJunctionSeqCounts() countdata handling#22

Open
ALysaght wants to merge 1 commit intohartleys:masterfrom
ALysaght:patch-1
Open

Fix to readJunctionSeqCounts() countdata handling#22
ALysaght wants to merge 1 commit intohartleys:masterfrom
ALysaght:patch-1

Conversation

@ALysaght
Copy link
Copy Markdown

Formal countdata is expected to be a list of data.frames which is passed to lf in line 608. In line 611, the code segment x$V1 == lf[1]$V1 attempted to confirm that the order of all feature ids was the same in the current and first input data.frames. However, lf[1] returns a list containing 1 data.frame instead of the data.frame itself, so lf[1]$V1 returns NULL and throws the following warning:

> if (!all(sapply(lf[-1], function(x) all(x$V1 == lf[1]$V1)))) 
+     stop("Count files have differing gene ID column.")
Warning message:
In is.na(e2) : is.na() applied to non-(list or vector) of type 'NULL'

Formal `countdata` is expected to be a list of data.frames which is passed to `lf` in line 608. In line 611, the code segment `x$V1 == lf[1]$V1` attempted to confirm that the order of all feature ids was the same in the current and first input data.frames. However, `lf[1]` returns a list containing 1 data.frame instead of the data.frame itself, so `lf[1]$V1` returns `NULL` and throws the following warning:

```
> if (!all(sapply(lf[-1], function(x) all(x$V1 == lf[1]$V1)))) 
+     stop("Count files have differing gene ID column.")
Warning message:
In is.na(e2) : is.na() applied to non-(list or vector) of type 'NULL'
```
@hartleys
Copy link
Copy Markdown
Owner

hartleys commented May 19, 2017 via email

@ALysaght
Copy link
Copy Markdown
Author

ALysaght commented May 19, 2017 via email

@hartleys
Copy link
Copy Markdown
Owner

hartleys commented May 19, 2017 via email

@ALysaght
Copy link
Copy Markdown
Author

ALysaght commented May 20, 2017 via email

@hartleys
Copy link
Copy Markdown
Owner

hartleys commented May 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants