Closed seb-mueller closed 6 years ago
As for the mito/ribo names, I've implemented a pattern matching which matches "^mt-" to identify mito. This currently only works for Mouse. Human seems to match to capital, i.e. "^MT-". I'll try to adjust the code:
Justification:
> s <- c("mt-test","jiberish","MT-TEST")
> grep("^mt-", s, value=TRUE)
[1] "mt-test"
> grep("^MT-", s, value=TRUE)
[1] "MT-TEST"
> grep("^mt-|^mt-", s, value=TRUE)
[1] "mt-test"
> grep("^mt-|^MT-", s, value=TRUE)
[1] "mt-test" "MT-TEST"
> grep("^MT-", s, value=TRUE, ignore.case=TRUE)
[1] "mt-test" "MT-TEST"
I suppose
grep("^MT-", s, value=TRUE, ignore.case=TRUE)
will do the trick, therefore this PR. Same is true for rps and Rpl.
Another more general solution is to have a line in the config.yaml specifying the mito pattern(s). This could than be adjusted for whatever matches human mitos.
Fixed by ignoring capitalization. Same is true for Ribosomal RNA.